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)
21 #it is here, so no INCLUDE_DIRS and DEFINITIONS are passed there
22 ADD_SUBDIRECTORY(view)
26 ${PROJECT_SOURCE_DIR}/src
29 SET(WRT_VALIDATION_CORE_DIR
30 ${PROJECT_SOURCE_DIR}/vcore
33 SET(WRT_ACE_CLIENT_DIR
34 ${PROJECT_SOURCE_DIR}/ace_client
37 SET(WRT_CORE_BASE_SOURCES
38 ${WRT_SRC_DIR}/common/force_stop.cpp
39 ${WRT_SRC_DIR}/API/wrt_api.cpp
40 ${WRT_SRC_DIR}/API/api_callbacks_translate.cpp
41 ${WRT_SRC_DIR}/domain/global_context.cpp
42 ${WRT_SRC_DIR}/domain/widget_controller.cpp
43 ${WRT_SRC_DIR}/domain/widget_deserialize_model.cpp
44 ${WRT_SRC_DIR}/domain/widget_localize_model.cpp
45 ${WRT_SRC_DIR}/domain/widget_logic.cpp
46 ${WRT_SRC_DIR}/domain/widget_model.cpp
47 ${WRT_SRC_DIR}/domain/main_thread.cpp
48 ${WRT_SRC_DIR}/domain/popups_server.cpp
49 ${WRT_SRC_DIR}/popup-process/CommunicationBox.cpp # TODO remove it
53 ${WRT_VALIDATION_CORE_DIR}/src
54 ${WRT_ACE_CLIENT_DIR}/include
55 ${WRT_SRC_DIR}/plugin-service
59 ${WRT_SRC_DIR}/access-control
60 ${WRT_SRC_DIR}/configuration
63 ${WRT_SRC_DIR}/localization
64 ${WRT_SRC_DIR}/framework
65 ${WRT_SRC_DIR}/profiling
66 ${WRT_SRC_DIR}/global_logic
70 ${WRT_SRC_DIR}/popup-process
75 ${WRT_SRC_DIR}/access-control/
78 SET(WRT_PLUGIN_LOADING_DIR
79 ${WRT_SRC_DIR}/plugin-service/plugin-loading/
83 ${WRT_SRC_DIR}/configuration/
94 SET(PLUGIN_LOADING_INCLUDES
95 ${WRT_PLUGIN_LOADING_DIR}
100 ${WRT_ACE_DIR}/common
102 ${WRT_ACE_DIR}/engine
103 ${WRT_ACE_DIR}/engine/UI
104 ${WRT_ACE_DIR}/engine/logic
105 ${WRT_ACE_DIR}/engine/xml
107 ${WRT_ACE_DIR}/server
108 ${WRT_ACE_DIR}/server/ipc
109 ${WRT_ACE_DIR}/server/null
111 ${WRT_SRC_DIR}/common
112 ${WRT_SRC_DIR}/configuration
113 ${WRT_SRC_DIR}/domain
118 ${WRT_ACE_DIR}/configuration)
159 LIST(APPEND WRT_BASIC_DEP libprivilege-control)
164 # WRT_ENGINE_INCLUDE_DIRS
166 PKG_CHECK_MODULES(WRT_ENGINE_DEPS
170 SET(WRT_ENGINE_SOURCES
173 ${WITH_ACE_SETTINGS_SERVER_SOURCES}
175 ${WRT_PERFORMANCE_SOURCES}
176 ${WRT_CORE_BASE_SOURCES}
179 SET(WRT_ENGINE_INCLUDE_DIRS
182 ${PLUGIN_LOADING_INCLUDES}
184 ${WRT_ENGINE_DEPS_INCLUDE_DIRS}
185 ${WRT_PERFORMANCE_INCLUDES}
189 ADD_DEFINITIONS(${WRT_ENGINE_DEPS_CFLAGS})
190 ADD_DEFINITIONS(${WRT_ENGINE_DEPS_CFLAGS_OTHER})
191 INCLUDE_DIRECTORIES(${WRT_ENGINE_INCLUDE_DIRS})
193 ADD_LIBRARY(${TARGET_WRT_ENGINE_STATIC} STATIC
194 ${WRT_ENGINE_SOURCES}
197 TARGET_LINK_LIBRARIES(${TARGET_WRT_ENGINE_STATIC}
201 SET_TARGET_PROPERTIES(${TARGET_WRT_ENGINE_STATIC} PROPERTIES
202 SOVERSION ${PROJECT_API_VERSION}
203 VERSION ${PROJECT_VERSION})
205 SET_TARGET_PROPERTIES(${TARGET_WRT_ENGINE_STATIC} PROPERTIES
207 SET_TARGET_PROPERTIES(${TARGET_WRT_ENGINE_STATIC} PROPERTIES
208 COMPILE_FLAGS "-include profiling_util.h")
210 TARGET_LINK_LIBRARIES(${TARGET_WRT_ENGINE_STATIC}
211 ${TARGET_ACE_LIB} #TODO is it needed here?
212 ${TARGET_WRT_DAO_RW_LIB}
216 # adding engine dependencies for tests
217 WRT_INCLUDE_DIRECTORIES(${WRT_ENGINE_INCLUDE_DIRS})
218 WRT_LINK_DIRECTORIES(${WRT_ENGINE_DEPS_LIBRARY_DIRS})
219 WRT_TARGET_LINK_LIBRARIES(${WRT_ENGINE_DEPS_LIBRARIES})
221 ADD_SUBDIRECTORY(arch)
222 ADD_SUBDIRECTORY(wrt-client)
223 ADD_SUBDIRECTORY(wrt-launcher)
224 ADD_SUBDIRECTORY(plugin-service)
225 #ADD_SUBDIRECTORY(popup-process)
226 ADD_SUBDIRECTORY(profiling)