| 1 |
|
| 2 |
########### sources ############### |
| 3 |
|
| 4 |
SET(cd-logout_LIB_SRCS |
| 5 |
applet-init.c applet-init.h |
| 6 |
applet-config.c applet-config.h |
| 7 |
applet-notifications.c applet-notifications.h |
| 8 |
applet-logout.c applet-logout.h |
| 9 |
applet-reboot-required.c applet-reboot-required.h |
| 10 |
applet-timer.c applet-timer.h |
| 11 |
applet-struct.h |
| 12 |
) |
| 13 |
|
| 14 |
add_library(${PACKAGE_LOGOUT} SHARED ${cd-logout_LIB_SRCS}) |
| 15 |
|
| 16 |
########### compil ############### |
| 17 |
add_definitions (-DMY_APPLET_SHARE_DATA_DIR="${logoutdatadir}") |
| 18 |
add_definitions (-DMY_APPLET_PREVIEW_FILE="preview.jpg") |
| 19 |
add_definitions (-DMY_APPLET_CONF_FILE="logout.conf") |
| 20 |
add_definitions (-DMY_APPLET_USER_DATA_DIR="logout") |
| 21 |
add_definitions (-DMY_APPLET_VERSION="${VERSION_LOGOUT}") |
| 22 |
add_definitions (-DMY_APPLET_GETTEXT_DOMAIN="${GETTEXT_LOGOUT}") |
| 23 |
add_definitions (-DMY_APPLET_DOCK_VERSION="${dock_version}") |
| 24 |
add_definitions (-DMY_APPLET_ICON_FILE="icon.svg") |
| 25 |
if (DEBIAN_PKG_MANAGERS) |
| 26 |
add_definitions (-DEND_INSTALLATION_PID="${DEBIAN_PKG_MANAGERS}") |
| 27 |
endif() |
| 28 |
|
| 29 |
|
| 30 |
if (UPOWER_SUPPORTS_SUSPEND_HIBERNATE) |
| 31 |
add_definitions (-DCD_UPOWER_AVAILABLE="1") |
| 32 |
|
| 33 |
include_directories ( |
| 34 |
${UPOWER_INCLUDE_DIRS} |
| 35 |
${PACKAGE_INCLUDE_DIRS}) |
| 36 |
|
| 37 |
link_directories ( |
| 38 |
${UPOWER_LIBRARY_DIRS} |
| 39 |
${PACKAGE_LIBRARY_DIRS}) |
| 40 |
|
| 41 |
target_link_libraries (${PACKAGE_LOGOUT} |
| 42 |
${UPOWER_LIBRARIES} |
| 43 |
${PACKAGE_LIBRARIES}) |
| 44 |
else() |
| 45 |
include_directories (${PACKAGE_INCLUDE_DIRS}) |
| 46 |
|
| 47 |
link_directories (${PACKAGE_LIBRARY_DIRS}) |
| 48 |
|
| 49 |
target_link_libraries (${PACKAGE_LOGOUT} |
| 50 |
${PACKAGE_LIBRARIES}) |
| 51 |
endif() |
| 52 |
|
| 53 |
########### install files ############### |
| 54 |
|
| 55 |
install(TARGETS ${PACKAGE_LOGOUT} DESTINATION ${pluginsdir}) |