diff options
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 |