[Release] wrt_0.8.274
[platform/framework/web/wrt.git] / src / wrt-client / CMakeLists.txt
1 # Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
2 #
3 #    Licensed under the Apache License, Version 2.0 (the "License");
4 #    you may not use this file except in compliance with the License.
5 #    You may obtain a copy of the License at
6 #
7 #        http://www.apache.org/licenses/LICENSE-2.0
8 #
9 #    Unless required by applicable law or agreed to in writing, software
10 #    distributed under the License is distributed on an "AS IS" BASIS,
11 #    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 #    See the License for the specific language governing permissions and
13 #    limitations under the License.
14 #
15
16 SET(TARGET_WRT_CLIENT "wrt-client")
17
18 SET(WRT_CLIENT_SRCS
19     ${PROJECT_SOURCE_DIR}/src/wrt-client/window_data.cpp
20     ${PROJECT_SOURCE_DIR}/src/wrt-client/client_command_line_parser.cpp
21     ${PROJECT_SOURCE_DIR}/src/wrt-client/client_ide_support.cpp
22     ${PROJECT_SOURCE_DIR}/src/wrt-client/client_service_support.cpp
23     ${PROJECT_SOURCE_DIR}/src/wrt-client/client_submode_support.cpp
24     ${PROJECT_SOURCE_DIR}/src/wrt-client/splash_screen_support.cpp
25     ${PROJECT_SOURCE_DIR}/src/wrt-client/wrt-client.cpp
26     ${PROJECT_SOURCE_DIR}/src/wrt-client/auto_rotation_support.cpp
27     ${PROJECT_SOURCE_DIR}/src/wrt-launchpad-daemon/src/process_pool.c
28 )
29
30 PKG_CHECK_MODULES(CLIENT_DEP
31     appcore-efl
32     capi-appfw-application
33     dpl-wrt-dao-ro
34     wrt-popup-wrt-runner
35     appsvc
36     efl-assist
37     libsystemd-daemon
38     REQUIRED
39 )
40
41 INCLUDE_DIRECTORIES(
42     ${PROJECT_SOURCE_DIR}/src/wrt-client
43     ${PROJECT_SOURCE_DIR}/src/api_new
44     ${PROJECT_SOURCE_DIR}/src/domain
45     ${PROJECT_SOURCE_DIR}/src/wrt-launchpad-daemon/include
46     ${CLIENT_DEP_INCLUDE_DIRS}
47     ${SMACK_LABELING_SUPPORT_INCLUDES}
48 )
49
50 ADD_EXECUTABLE(${TARGET_WRT_CLIENT}
51     ${WRT_CLIENT_SRCS}
52 )
53
54 TARGET_LINK_LIBRARIES(${TARGET_WRT_CLIENT}
55     ${CLIENT_DEP_LIBRARIES}
56     ${TARGET_CORE_MODULE_LIB}
57     ${SMACK_LABELING_SUPPORT_STATIC}
58     "-pie"
59 )
60
61 SET_TARGET_PROPERTIES(${TARGET_WRT_CLIENT} PROPERTIES
62     LINK_FLAGS "-Wl,--as-needed -Wl,--hash-style=both -Wl,--version-script=${PROJECT_SOURCE_DIR}/wrt-engine.map"
63     BUILD_WITH_INSTALL_RPATH ON
64     INSTALL_RPATH_USE_LINK_PATH ON
65 )
66
67 SET_TARGET_PROPERTIES(${TARGET_WRT_CLIENT} PROPERTIES
68     COMPILE_FLAGS "-include profiling_util.h" )
69
70 INSTALL(TARGETS ${TARGET_WRT_CLIENT} DESTINATION bin)
71