1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
#
# Panel Service
#
set(UNITY_PANEL_SERVICE_DEPS
atk
atk-bridge-2.0
gio-2.0>=2.30.0
gobject-2.0
gthread-2.0
gtk+-3.0>=3.3
indicator3-0.4>=12.10.2
x11
libido3-0.1>=13.0.0
libupstart
)
pkg_check_modules(SERVICE_DEPS REQUIRED ${UNITY_PANEL_SERVICE_DEPS})
set(PANEL_SOURCES
panel-a11y.c
panel-a11y.h
panel-indicator-accessible.c
panel-indicator-accessible.h
panel-indicator-entry-accessible.c
panel-indicator-entry-accessible.h
panel-main.c
panel-root-accessible.c
panel-root-accessible.h
panel-service.c
panel-service.h
panel-util-accessible.c
panel-util-accessible.h)
set(CFLAGS
${SERVICE_DEPS_CFLAGS}
${SERVICE_DEPS_CFLAGS_OTHER}
"-Werror -Wall"
)
string (REPLACE ";" " " CFLAGS "${CFLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CFLAGS}")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${CFLAGS}")
include_directories(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_BINARY_DIR})
set(LIBS ${SERVICE_DEPS_LIBRARIES})
set(LIB_PATHS ${SERVICE_DEPS_LIBRARY_DIRS})
link_directories(${LIB_PATHS})
add_executable(unity-panel-service ${PANEL_SOURCES})
target_link_libraries(unity-panel-service ${LIBS})
install(TARGETS unity-panel-service DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/unity/)
configure_file(unity-panel-service.conf.in ${CMAKE_CURRENT_BINARY_DIR}/unity-panel-service.conf)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/unity-panel-service.conf DESTINATION ${CMAKE_INSTALL_PREFIX}/share/upstart/sessions)
configure_file(unity-panel-service-lockscreen.conf.in ${CMAKE_CURRENT_BINARY_DIR}/unity-panel-service-lockscreen.conf)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/unity-panel-service-lockscreen.conf DESTINATION ${CMAKE_INSTALL_PREFIX}/share/upstart/sessions)
|