~townsend/unity/fix-lp1301394-trusty

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
set(UNITY_SRC ../plugins/unityshell/src)

set (CFLAGS
     ${CACHED_UNITY_DEPS_CFLAGS}
     ${CACHED_UNITY_DEPS_CFLAGS_OTHER}
     ${PIC_FLAGS}
     )

string (REPLACE ";" " " CFLAGS "${CFLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CFLAGS}")

set (LIBS ${CACHED_UNITY_DEPS_LDFLAGS} ${UNITY_STANDALONE_LADD})

include_directories (.. ../services ../UnityCore ${UNITY_SRC} ${CMAKE_BINARY_DIR})

#
# Headers & Sources
#
set (SHUTDOWN_SOURCES
     SessionButton.cpp
     SessionController.cpp
     SessionDBusManager.cpp
     SessionView.cpp
     )

add_library (shutdown-lib STATIC ${SHUTDOWN_SOURCES})
add_dependencies (shutdown-lib unity-core-${UNITY_API_VERSION} unity-shared)
add_pch(pch/shutdown_pch.hh shutdown-lib)

#
# Standalone variant
#
add_executable (shutdown StandaloneSession.cpp)
target_link_libraries (shutdown shutdown-lib unity-shared unity-shared-standalone)