~townsend/unity/fix-lp1301394-trusty

3144.4.4 by Marco Trevisan (Treviño)
ShutdownView: first draft implementation
1
set(UNITY_SRC ../plugins/unityshell/src)
2
3
set (CFLAGS
4
     ${CACHED_UNITY_DEPS_CFLAGS}
5
     ${CACHED_UNITY_DEPS_CFLAGS_OTHER}
6
     ${PIC_FLAGS}
7
     )
8
9
string (REPLACE ";" " " CFLAGS "${CFLAGS}")
10
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CFLAGS}")
11
12
set (LIBS ${CACHED_UNITY_DEPS_LDFLAGS} ${UNITY_STANDALONE_LADD})
13
14
include_directories (.. ../services ../UnityCore ${UNITY_SRC} ${CMAKE_BINARY_DIR})
15
16
#
17
# Headers & Sources
18
#
19
set (SHUTDOWN_SOURCES
3144.4.42 by Marco Trevisan (Treviño)
SessionButton: extract it from the SessionView
20
     SessionButton.cpp
3144.4.4 by Marco Trevisan (Treviño)
ShutdownView: first draft implementation
21
     SessionController.cpp
3695.4.51 by Marco Trevisan (Treviño)
SessionDBusManager: add new dbus server to reply to session controlling requests
22
     SessionDBusManager.cpp
3144.4.4 by Marco Trevisan (Treviño)
ShutdownView: first draft implementation
23
     SessionView.cpp
24
     )
25
26
add_library (shutdown-lib STATIC ${SHUTDOWN_SOURCES})
27
add_dependencies (shutdown-lib unity-core-${UNITY_API_VERSION} unity-shared)
28
add_pch(pch/shutdown_pch.hh shutdown-lib)
29
30
#
31
# Standalone variant
32
#
33
add_executable (shutdown StandaloneSession.cpp)
3144.4.25 by Marco Trevisan (Treviño)
ShutdownController: grab the pointer and keyboard when embedded
34
target_link_libraries (shutdown shutdown-lib unity-shared unity-shared-standalone)