# # Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # SET(SERVER_SRCS main.cpp server.cpp packman.cpp launchpad.cpp app-bundle.cpp manager.cpp app-proxy.cpp package-proxy.cpp ) SET(DEPENDENCY klay glib-2.0 gio-2.0 libxml-2.0 bundle aul appsvc pkgmgr pkgmgr-info libtzplatform-config capi-system-system-settings notification libgum cynara-client cynara-session auth-fw-admin ) SET(SERVER_NAME ${PROJECT_NAME}d) ADD_EXECUTABLE(${SERVER_NAME} ${SERVER_SRCS}) PKG_CHECK_MODULES(SERVER_DEPS REQUIRED ${DEPENDENCY}) INCLUDE_DIRECTORIES(SYSTEM ${SERVER_DEPS_INCLUDE_DIRS} ${KRATE_SERVER} ${PROJECT_SOURCE_DIR}) TARGET_LINK_LIBRARIES(${SERVER_NAME} ${SERVER_DEPS_LIBRARIES} pthread) SET_TARGET_PROPERTIES(${SERVER_NAME} PROPERTIES COMPILE_FLAGS "-fPIE") SET_TARGET_PROPERTIES(${SERVER_NAME} PROPERTIES LINK_FLAGS "-pie") TARGET_COMPILE_DEFINITIONS(${SERVER_NAME} PRIVATE RUN_PATH="${RUN_DIR}" ICON_PATH="${ICON_DIR}" ) CONFIGURE_FILE(systemd/krate.service.in systemd/krate.service) INSTALL(TARGETS ${SERVER_NAME} DESTINATION ${BIN_DIR}) INSTALL(FILES systemd/krate.service DESTINATION ${SYSTEMD_UNIT_DIR}) INSTALL(FILES ${KRATE_DATA}/indicator_icon.png DESTINATION ${ICON_DIR}) INSTALL(FILES ${KRATE_DATA}/notification_sub_icon.png DESTINATION ${ICON_DIR}) INSTALL(FILES ${KRATE_DATA}/shortcut_icon.png DESTINATION ${ICON_DIR})