summaryrefslogtreecommitdiff
path: root/cmake/bus
diff options
context:
space:
mode:
authorFrank Osterfeld <frank@kdab.net>2009-04-27 21:21:02 +0200
committerunknown <Administrator@.(none)>2009-11-30 11:09:25 +0100
commit7ce953f0388ea8b1e30ccd5ba24ee9aefe077d3e (patch)
tree85c9b385dde2e65a0027b0ab7ce4562701856da0 /cmake/bus
parent6e8fcdf889bf783425907dd116a142b6ab2d6f93 (diff)
downloaddbus-7ce953f0388ea8b1e30ccd5ba24ee9aefe077d3e.tar.gz
build dbus-daemon-launch-helper-test and friends set all TEST vars needed for the .in files (cherry picked from commit fcd9ba392927b0433e5e037d393230774edae303)
Diffstat (limited to 'cmake/bus')
-rw-r--r--cmake/bus/CMakeLists.txt20
1 files changed, 20 insertions, 0 deletions
diff --git a/cmake/bus/CMakeLists.txt b/cmake/bus/CMakeLists.txt
index 4d7e8a11..6be12356 100644
--- a/cmake/bus/CMakeLists.txt
+++ b/cmake/bus/CMakeLists.txt
@@ -151,6 +151,26 @@ endif(MSVC)
##install_file(${configdir}/system.d FILE
+set(LAUNCH_HELPER_SOURCES ${XML_SOURCES}
+ ${BUS_DIR}/config-parser-common.c
+ ${BUS_DIR}/config-parser-trivial.c
+ ${BUS_DIR}/desktop-file.c
+ ${BUS_DIR}/utils.c
+ ${BUS_DIR}/activation-helper.c
+
+)
+
+add_executable(dbus-daemon-launch-helper ${LAUNCH_HELPER_SOURCES} ${BUS_DIR}/activation-helper-bin.c )
+target_link_libraries(dbus-daemon-launch-helper ${DBUS_1} ${LIBS} )
+
+add_executable(dbus-daemon-launch-helper-test ${LAUNCH_HELPER_SOURCES} ${BUS_DIR}/activation-helper-bin.c)
+set_target_properties(dbus-daemon-launch-helper-test PROPERTIES COMPILE_FLAGS "-DACTIVATION_LAUNCHER_TEST")
+target_link_libraries(dbus-daemon-launch-helper-test ${DBUS_1} ${LIBS} )
+
+add_executable(bus-test-launch-helper ${LAUNCH_HELPER_SOURCES} ${BUS_DIR}/test-launch-helper.c)
+set_target_properties(bus-test-launch-helper PROPERTIES COMPILE_FLAGS "-DACTIVATION_LAUNCHER_TEST -DACTIVATION_LAUNCHER_DO_OOM")
+
+target_link_libraries(bus-test-launch-helper ${DBUS_1} ${LIBS} )
#### Init scripts fun
#SCRIPT_IN_FILES=messagebus.in