~pete-woods/unity-scopes-api/add-system-session-files

« back to all changes in this revision

Viewing changes to data/CMakeLists.txt

  • Committer: Pete Woods
  • Date: 2017-02-22 15:16:23 UTC
  • Revision ID: pete.woods@canonical.com-20170222151623-uda8ybf65a829do2
Add SystemD session files

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
configure_file(scope-registry.conf.in scope-registry.conf @ONLY)
15
15
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/scope-registry.conf DESTINATION ${CMAKE_INSTALL_DATADIR}/upstart/sessions)
16
16
 
 
17
# systemd config for smart scopes proxy
 
18
configure_file(smart-scopes-proxy.service.in smart-scopes-proxy.service @ONLY)
 
19
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/smart-scopes-proxy.service DESTINATION lib/systemd/user)
 
20
 
 
21
# systemd config for scope registry
 
22
configure_file(scope-registry.service.in scope-registry.service @ONLY)
 
23
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/scope-registry.service DESTINATION lib/systemd/user)
 
24
 
 
25
# transitional upstart override files to avoid running twice when upstart runs under systemd
 
26
install(
 
27
  FILES
 
28
    smart-scopes-proxy.override
 
29
    scope-registry.override
 
30
  DESTINATION
 
31
    ${CMAKE_INSTALL_DATADIR}/upstart/systemd-session/upstart
 
32
)
 
33
 
17
34
# apport package hook
18
35
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/libunity-scopes.py libunity-scopes${UNITY_SCOPES_SOVERSION}.py COPYONLY)
19
36
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libunity-scopes${UNITY_SCOPES_SOVERSION}.py