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 ADD_DEFINITIONS("-DWRT_LOG")
23 # "smack-labeling-support-static" static library -------------------------------
24 SET(SMACK_LABELING_SUPPORT_STATIC "smack-labeling-support-static")
25 PKG_CHECK_MODULES(SMACK_LABELING_SUPPORT_DEPS
30 SET(SMACK_LABELING_SUPPORT_SOURCES
31 ${PROJECT_SOURCE_DIR}/src/wrt-client/process_pool/smack_labeling_support.cpp
33 SET(SMACK_LABELING_SUPPORT_INCLUDES
34 ${PROJECT_SOURCE_DIR}/src/wrt-client/process_pool/
37 ${SMACK_LABELING_SUPPORT_INCLUDES}
38 ${SMACK_LABELING_SUPPORT_DEPS_INCLUDE_DIRS}
40 ADD_LIBRARY(${SMACK_LABELING_SUPPORT_STATIC} STATIC
41 ${SMACK_LABELING_SUPPORT_SOURCES}
43 TARGET_LINK_LIBRARIES(${SMACK_LABELING_SUPPORT_STATIC}
44 ${SMACK_LABELING_SUPPORT_DEPS_LIBRARIES}
46 # ------------------------------------------------------------------------------
48 #it is here, so no INCLUDE_DIRS and DEFINITIONS are passed there
51 ${PROJECT_SOURCE_DIR}/src
54 SET(WRT_CORE_BASE_SOURCES
55 ${WRT_SRC_DIR}/domain/application_data.cpp
56 ${WRT_SRC_DIR}/domain/widget_data_types.cpp
57 ${WRT_SRC_DIR}/domain/widget_deserialize_model.cpp
58 ${WRT_SRC_DIR}/domain/localization_setting.cpp
59 ${WRT_SRC_DIR}/domain/widget_model.cpp
60 ${WRT_SRC_DIR}/domain/main_thread.cpp
61 ${WRT_SRC_DIR}/domain/prepare_external_storage.cpp
65 ${WRT_SRC_DIR}/plugin-service
67 ${WRT_SRC_DIR}/profiling
71 SET(WRT_PLUGIN_LOADING_DIR
72 ${WRT_SRC_DIR}/plugin-service/plugin-loading/
76 SET(PLUGIN_LOADING_INCLUDES
77 ${WRT_PLUGIN_LOADING_DIR}
112 capi-appfw-app-manager
116 LIST(APPEND SYS_WRT_BASIC_DEP libprivilege-control)
121 PKG_CHECK_MODULES(SYS_WRT_ENGINE_DEPS
126 PKG_CHECK_MODULES(WRT_ENGINE_DEPS
131 SET(WRT_ENGINE_INCLUDE_DIRS
133 ${PLUGIN_LOADING_INCLUDES}
134 ${WRT_ENGINE_DEPS_INCLUDE_DIRS}
138 ADD_DEFINITIONS(${SYS_WRT_ENGINE_DEPS_CFLAGS})
139 ADD_DEFINITIONS(${SYS_WRT_ENGINE_DEPS_CFLAGS_OTHER})
140 ADD_DEFINITIONS(${WRT_ENGINE_DEPS_CFLAGS})
141 ADD_DEFINITIONS(${WRT_ENGINE_DEPS_CFLAGS_OTHER})
143 INCLUDE_DIRECTORIES(SYSTEM ${SYS_WRT_ENGINE_DEPS_INCLUDE_DIRS})
144 INCLUDE_DIRECTORIES(${WRT_ENGINE_INCLUDE_DIRS})
146 ADD_LIBRARY(${TARGET_WRT_ENGINE_STATIC} STATIC
147 ${WRT_CORE_BASE_SOURCES}
150 SET_TARGET_PROPERTIES(${TARGET_WRT_ENGINE_STATIC} PROPERTIES
151 SOVERSION ${PROJECT_API_VERSION}
152 VERSION ${PROJECT_VERSION})
154 SET_TARGET_PROPERTIES(${TARGET_WRT_ENGINE_STATIC} PROPERTIES
156 SET_TARGET_PROPERTIES(${TARGET_WRT_ENGINE_STATIC} PROPERTIES
157 COMPILE_FLAGS "-include profiling_util.h")
159 TARGET_LINK_LIBRARIES(${TARGET_WRT_ENGINE_STATIC}
164 ${WRT_SRC_DIR}/domain/widget_model.h
165 DESTINATION include/${PROJECT_NAME}
169 ${WRT_SRC_DIR}/domain/widget_data_types.h
170 DESTINATION include/${PROJECT_NAME}
173 ADD_SUBDIRECTORY(view)
174 ADD_SUBDIRECTORY(api_new)
175 ADD_SUBDIRECTORY(wrt-client)
176 ADD_SUBDIRECTORY(wrt-launcher)
177 ADD_SUBDIRECTORY(plugin-service)
179 ADD_SUBDIRECTORY(profiling)
181 ADD_SUBDIRECTORY(wrt-launchpad-daemon)