1 # Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
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
7 # http://www.apache.org/licenses/LICENSE-2.0
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.
16 # @file CMakeLists.txt
17 # @author Lukasz Wrzosek (l.wrzosek@samsung.com)
22 ${PROJECT_SOURCE_DIR}/src
25 SET(WRT_VALIDATION_CORE_DIR
26 ${PROJECT_SOURCE_DIR}/vcore
29 SET(WRT_ACE_CLIENT_DIR
30 ${PROJECT_SOURCE_DIR}/ace_client
33 SET(WRT_CORE_BASE_SOURCES
34 ${WRT_SRC_DIR}/plugin-service/plugin_api.cpp
35 ${WRT_SRC_DIR}/plugin-service/plugin_api_controller.cpp
36 ${WRT_SRC_DIR}/plugin-service/plugin_api_logic.cpp
37 ${WRT_SRC_DIR}/common/force_stop.cpp
38 ${WRT_SRC_DIR}/API/wrt_config.cpp
39 ${WRT_SRC_DIR}/API/wrt_api.cpp
40 ${WRT_SRC_DIR}/API/api_callbacks_translate.cpp
41 ${WRT_SRC_DIR}/domain/application_launcher.cpp
42 ${WRT_SRC_DIR}/domain/global_context.cpp
43 ${WRT_SRC_DIR}/domain/user_agent_profile.cpp
44 ${WRT_SRC_DIR}/domain/user_callback_logic.cpp
45 ${WRT_SRC_DIR}/domain/widget_controller.cpp
46 ${WRT_SRC_DIR}/domain/widget_deserialize_model.cpp
47 ${WRT_SRC_DIR}/domain/widget_localize_model.cpp
48 ${WRT_SRC_DIR}/domain/widget_logic.cpp
49 ${WRT_SRC_DIR}/domain/widget_model.cpp
50 ${WRT_SRC_DIR}/domain/user_callback_controller.cpp
51 ${WRT_SRC_DIR}/domain/dnet/dnet.cpp
52 ${WRT_SRC_DIR}/domain/child_protection/child_protection_agent.cpp
53 ${WRT_SRC_DIR}/domain/powder/powder_syntax.cpp
54 ${WRT_SRC_DIR}/domain/popups_server.cpp
55 ${WRT_SRC_DIR}/domain/main_thread.cpp
56 ${WRT_SRC_DIR}/utils/youtubehd.cpp
57 ${WRT_SRC_DIR}/global_logic/global_logic.cpp
58 ${WRT_SRC_DIR}/global_logic/global_model.cpp
59 ${WRT_SRC_DIR}/rpc/ui-process/rpc_server.cpp
60 ${WRT_SRC_DIR}/rpc/ui-process/rpc_client.cpp
61 ${WRT_SRC_DIR}/rpc/ui-process/fake_rpc_connection.cpp
62 ${WRT_SRC_DIR}/rpc/security-daemon/api/ocsp_server_api.cpp
66 ${WRT_VALIDATION_CORE_DIR}/src
67 ${WRT_ACE_CLIENT_DIR}/include
68 ${WRT_SRC_DIR}/plugin-service
72 ${WRT_SRC_DIR}/access-control
73 ${WRT_SRC_DIR}/configuration
75 ${WRT_SRC_DIR}/rpc/security-daemon/api
76 ${WRT_SRC_DIR}/rpc/security-daemon
78 ${WRT_SRC_DIR}/domain/dnet
79 ${WRT_SRC_DIR}/domain/child_protection
80 ${WRT_SRC_DIR}/domain/powder
81 ${WRT_SRC_DIR}/localization
82 ${WRT_SRC_DIR}/framework
83 ${WRT_SRC_DIR}/profiling
84 ${WRT_SRC_DIR}/global_logic
88 ${WRT_SRC_DIR}/popup-process
92 ${WRT_SRC_DIR}/access-control/
95 SET(WRT_PLUGIN_LOADING_DIR
96 ${WRT_SRC_DIR}/plugin-service/plugin-loading/
100 ${WRT_SRC_DIR}/configuration/
111 SET(PLUGIN_LOADING_INCLUDES
112 ${WRT_PLUGIN_LOADING_DIR}
117 ${WRT_ACE_DIR}/common
119 ${WRT_ACE_DIR}/engine
120 ${WRT_ACE_DIR}/engine/UI
121 ${WRT_ACE_DIR}/engine/logic
122 ${WRT_ACE_DIR}/engine/xml
124 ${WRT_ACE_DIR}/server
125 ${WRT_ACE_DIR}/server/ipc
126 ${WRT_ACE_DIR}/server/null
128 ${WRT_SRC_DIR}/common
129 ${WRT_SRC_DIR}/configuration
130 ${WRT_SRC_DIR}/domain
131 ${WRT_SRC_DIR}/plugin-service
136 ${WRT_ACE_DIR}/configuration)
139 ${WRT_SRC_DIR}/domain/efl/evas_object.cpp
140 ${WRT_SRC_DIR}/domain/efl/view_logic.cpp
141 ${WRT_SRC_DIR}/domain/efl/view_logic_keys_support.cpp
142 ${WRT_SRC_DIR}/domain/efl/view_logic_security_support.cpp
143 ${WRT_SRC_DIR}/domain/efl/view_logic_scheme_support.cpp
144 ${WRT_SRC_DIR}/domain/efl/view_logic_uri_support.cpp
145 ${WRT_SRC_DIR}/domain/efl/view_logic_apps_support.cpp
146 ${WRT_SRC_DIR}/domain/efl/view_logic_storage_support.cpp
147 ${WRT_SRC_DIR}/domain/efl/view_logic_password_support.cpp
148 ${WRT_SRC_DIR}/domain/efl/roaming_agent.cpp
149 ${WRT_SRC_DIR}/domain/efl/CommunicationBox.cpp
150 ${WRT_SRC_DIR}/domain/efl/window_data.cpp
151 ${WRT_SRC_DIR}/domain/efl/combobox_picker.cpp
152 ${WRT_SRC_DIR}/domain/efl/AutoSavePopup.cpp
153 ${WRT_SRC_DIR}/domain/efl/vconf_browser_setting.cpp
154 ${WRT_SRC_DIR}/domain/efl/regular_browser_setting.cpp
157 ${WRT_SRC_DIR}/plugin-service/efl
158 ${WRT_SRC_DIR}/domain/efl
159 ${WRT_SRC_DIR}/wrt-client
204 LIST(APPEND WRT_BASIC_DEP libprivilege-control)
209 # WRT_ENGINE_INCLUDE_DIRS
211 PKG_CHECK_MODULES(WRT_ENGINE_DEPS
215 SET(WRT_ENGINE_SOURCES
219 ${WITH_ACE_SETTINGS_SERVER_SOURCES}
221 ${WRT_PERFORMANCE_SOURCES}
222 ${WRT_CORE_BASE_SOURCES}
226 SET(WRT_ENGINE_INCLUDE_DIRS
230 ${PLUGIN_LOADING_INCLUDES}
232 ${WRT_ENGINE_DEPS_INCLUDE_DIRS}
233 ${WRT_PERFORMANCE_INCLUDES}
238 ADD_DEFINITIONS(${WRT_ENGINE_DEPS_CFLAGS})
239 ADD_DEFINITIONS(${WRT_ENGINE_DEPS_CFLAGS_OTHER})
240 ADD_DEFINITIONS("-DSEPARATED_SINGLETON_IMPLEMENTATION")
241 INCLUDE_DIRECTORIES(${WRT_ENGINE_INCLUDE_DIRS})
243 ADD_LIBRARY(${TARGET_WRT_ENGINE_STATIC} STATIC
244 ${WRT_ENGINE_SOURCES}
247 TARGET_LINK_LIBRARIES(${TARGET_WRT_ENGINE_STATIC}
251 SET_TARGET_PROPERTIES(${TARGET_WRT_ENGINE_STATIC} PROPERTIES
252 SOVERSION ${PROJECT_VERSION})
254 SET_TARGET_PROPERTIES(${TARGET_WRT_ENGINE_STATIC} PROPERTIES
256 SET_TARGET_PROPERTIES(${TARGET_WRT_ENGINE_STATIC} PROPERTIES
257 COMPILE_FLAGS "-include profiling_util.h")
259 TARGET_LINK_LIBRARIES(${TARGET_WRT_ENGINE_STATIC}
261 ${TARGET_WRT_DAO_RW_LIB}
263 ${TARGET_ACE_CLIENT_LIB}
264 ${TARGET_PLUGIN_LOADING_LIB}
267 # adding engine dependencies for tests
268 WRT_INCLUDE_DIRECTORIES(${WRT_ENGINE_INCLUDE_DIRS})
269 WRT_LINK_DIRECTORIES(${WRT_ENGINE_DEPS_LIBRARY_DIRS})
270 WRT_TARGET_LINK_LIBRARIES(${WRT_ENGINE_DEPS_LIBRARIES})
272 ADD_SUBDIRECTORY(arch)
273 ADD_SUBDIRECTORY(wrt-client)
274 ADD_SUBDIRECTORY(wrt-launcher)
275 ADD_SUBDIRECTORY(plugin-service)
276 ADD_SUBDIRECTORY(popup-process)
277 ADD_SUBDIRECTORY(profiling)
278 ADD_SUBDIRECTORY(setting)