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_CORE_BASE_SOURCES
30 ${WRT_SRC_DIR}/domain/widget_data_types.cpp
31 ${WRT_SRC_DIR}/domain/widget_deserialize_model.cpp
32 ${WRT_SRC_DIR}/domain/localization_setting.cpp
33 ${WRT_SRC_DIR}/domain/widget_model.cpp
34 ${WRT_SRC_DIR}/domain/main_thread.cpp
35 ${WRT_SRC_DIR}/domain/prepare_external_storage.cpp
39 ${WRT_SRC_DIR}/plugin-service
41 ${WRT_SRC_DIR}/profiling
45 SET(WRT_PLUGIN_LOADING_DIR
46 ${WRT_SRC_DIR}/plugin-service/plugin-loading/
50 SET(PLUGIN_LOADING_INCLUDES
51 ${WRT_PLUGIN_LOADING_DIR}
89 LIST(APPEND SYS_WRT_BASIC_DEP libprivilege-control)
94 PKG_CHECK_MODULES(SYS_WRT_ENGINE_DEPS
99 PKG_CHECK_MODULES(WRT_ENGINE_DEPS
104 SET(WRT_ENGINE_INCLUDE_DIRS
106 ${PLUGIN_LOADING_INCLUDES}
107 ${WRT_ENGINE_DEPS_INCLUDE_DIRS}
111 ADD_DEFINITIONS(${SYS_WRT_ENGINE_DEPS_CFLAGS})
112 ADD_DEFINITIONS(${SYS_WRT_ENGINE_DEPS_CFLAGS_OTHER})
113 ADD_DEFINITIONS(${WRT_ENGINE_DEPS_CFLAGS})
114 ADD_DEFINITIONS(${WRT_ENGINE_DEPS_CFLAGS_OTHER})
116 INCLUDE_DIRECTORIES(SYSTEM ${SYS_WRT_ENGINE_DEPS_INCLUDE_DIRS})
117 INCLUDE_DIRECTORIES(${WRT_ENGINE_INCLUDE_DIRS})
119 ADD_LIBRARY(${TARGET_WRT_ENGINE_STATIC} STATIC
120 ${WRT_CORE_BASE_SOURCES}
123 SET_TARGET_PROPERTIES(${TARGET_WRT_ENGINE_STATIC} PROPERTIES
124 SOVERSION ${PROJECT_API_VERSION}
125 VERSION ${PROJECT_VERSION})
127 SET_TARGET_PROPERTIES(${TARGET_WRT_ENGINE_STATIC} PROPERTIES
129 SET_TARGET_PROPERTIES(${TARGET_WRT_ENGINE_STATIC} PROPERTIES
130 COMPILE_FLAGS "-include profiling_util.h")
132 TARGET_LINK_LIBRARIES(${TARGET_WRT_ENGINE_STATIC}
133 ${TARGET_WRT_DAO_RW_LIB}
138 ${WRT_SRC_DIR}/domain/widget_model.h
139 DESTINATION include/${PROJECT_NAME}
143 ${WRT_SRC_DIR}/domain/widget_data_types.h
144 DESTINATION include/${PROJECT_NAME}
147 ADD_SUBDIRECTORY(api_new)
148 ADD_SUBDIRECTORY(wrt-client)
149 ADD_SUBDIRECTORY(wrt-launcher)
150 ADD_SUBDIRECTORY(plugin-service)
152 ADD_SUBDIRECTORY(profiling)
154 ADD_SUBDIRECTORY(wrt-launchpad-daemon)