diff options
author | Ted Gould <ted@gould.cx> | 2013-06-27 10:43:13 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2013-06-27 10:43:13 -0500 |
commit | 9daa9b7b0849a121309b5522ef7eb6d34c6712b2 (patch) | |
tree | bfbda0045e277cef9420d2b4fb6b2d04986ca541 /service | |
parent | 14b46999b69f8dac446e204604adf0981395449c (diff) | |
download | ayatana-greeter-session-broadcast-9daa9b7b0849a121309b5522ef7eb6d34c6712b2.tar.gz ayatana-greeter-session-broadcast-9daa9b7b0849a121309b5522ef7eb6d34c6712b2.tar.bz2 ayatana-greeter-session-broadcast-9daa9b7b0849a121309b5522ef7eb6d34c6712b2.zip |
Adding in a build system
Diffstat (limited to 'service')
-rw-r--r-- | service/CMakeLists.txt | 46 | ||||
-rw-r--r-- | service/service.c (renamed from service/unity-greeter-session-broadcast-service.c) | 0 |
2 files changed, 46 insertions, 0 deletions
diff --git a/service/CMakeLists.txt b/service/CMakeLists.txt new file mode 100644 index 0000000..12caadc --- /dev/null +++ b/service/CMakeLists.txt @@ -0,0 +1,46 @@ + +########################### +# Generated Lib +########################### + +set(SERVICE_GENERATED_HEADERS +service-iface.h +) + +set(SERVICE_GENERATED_SOURCES +service-iface.c +) + +add_gdbus_codegen( +OUTFILES SERVICE_GENERATED_SOURCES +NAME service-iface +PREFIX com.canonical.Unity.Greeter.Broadcast. +NAMESPACE ServiceIface +SERVICE_XML ${CMAKE_CURRENT_SOURCE_DIR}/../data/com.canonical.Unity.Greeter.Broadcast.xml +) + +add_library(service-generated STATIC ${HUD_SERVICE_GENERATED_SOURCES}) + +target_link_libraries(service-generated +${GLIB2_LIBRARIES} +${GOBJECT2_LIBRARIES} +) + +########################### +# Service Executable +########################### + +add_executable(service-exec service.c) + +set_target_properties(service-exec PROPERTIES OUTPUT_NAME "unity-greeter-session-broadcast-service") + +target_link_libraries(service-exec service-generated) + +########################### +# Installation +########################### + +install( + TARGETS service-exec + RUNTIME DESTINATION "${CMAKE_INSTALL_FULL_LIBEXECDIR}/unity-greeter-session-broadcast" +) diff --git a/service/unity-greeter-session-broadcast-service.c b/service/service.c index 7cd5cca..7cd5cca 100644 --- a/service/unity-greeter-session-broadcast-service.c +++ b/service/service.c |