From 00579a56c6fab1564f9719a899ea11805c3a36d6 Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Mon, 11 Dec 2017 09:14:49 +0100 Subject: [PATCH] Build dbus-run-session on non Windows platforms with cmake dbus-run-session is the prefered way to run a dbus session with native applications on android. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=104022 Signed-off-by: Ralf Habacker --- cmake/tools/CMakeLists.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cmake/tools/CMakeLists.txt b/cmake/tools/CMakeLists.txt index c05ced43..b687afea 100644 --- a/cmake/tools/CMakeLists.txt +++ b/cmake/tools/CMakeLists.txt @@ -54,6 +54,10 @@ set (dbus_cleanup_sockets_SOURCES ../../tools/dbus-cleanup-sockets.c ) +set (dbus_run_session_SOURCES + ../../tools/dbus-run-session.c +) + add_executable(dbus-send ${dbus_send_SOURCES}) target_link_libraries(dbus-send ${DBUS_LIBRARIES}) install(TARGETS dbus-send ${INSTALL_TARGETS_DEFAULT_ARGS}) @@ -86,5 +90,11 @@ add_executable(dbus-monitor ${dbus_monitor_SOURCES}) target_link_libraries(dbus-monitor ${DBUS_LIBRARIES}) install(TARGETS dbus-monitor ${INSTALL_TARGETS_DEFAULT_ARGS}) +if(NOT WIN32) + add_executable(dbus-run-session ${dbus_run_session_SOURCES}) + target_link_libraries(dbus-run-session ${DBUS_LIBRARIES}) + install(TARGETS dbus-run-session ${INSTALL_TARGETS_DEFAULT_ARGS}) +endif() + # create the /var/lib/dbus directory for dbus-uuidgen install(DIRECTORY DESTINATION var/lib/dbus) -- 2.12.3