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 SET(TARGET_INSTALLER "wrt-plugins-installer")
22 SET(TARGET_INSTALLER_STATIC "wrt-installer_static")
25 ${PROJECT_SOURCE_DIR}/src/plugins-installer
29 ${INSTALLER_SRC_DIR}/jobs
32 SET(INSTALLER_INCLUDES
34 ${INSTALLER_SRC_DIR}/logic
35 ${INSTALLER_SRC_DIR}/jobs
36 ${INSTALLER_SRC_DIR}/jobs/plugin_install
37 # ${INSTALLER_SRC_DIR}/jobs/widget_install
38 #${INSTALLER_SRC_DIR}/jobs/widget_uninstall
39 ${INSTALLER_SRC_DIR}/misc
40 ${INSTALLER_SRC_DIR}/configuration_parser
41 ${INSTALLER_SRC_DIR}/wrt-installer
42 ${INSTALLER_SRC_DIR}/commons
43 # ${INSTALLER_SRC_DIR}/pkg-manager
47 ${INSTALLER_JOBS}/job.cpp
48 ${INSTALLER_JOBS}/plugin_install/job_plugin_install.cpp
49 ${INSTALLER_JOBS}/plugin_install/plugin_install_task.cpp
50 ${INSTALLER_JOBS}/plugin_install/plugin_objects.cpp
51 ${INSTALLER_JOBS}/plugin_install/plugin_metafile_reader.cpp
52 ${INSTALLER_SRC_DIR}/logic/installer_logic.cpp
53 ${INSTALLER_SRC_DIR}/logic/installer_controller.cpp
54 ${INSTALLER_SRC_DIR}/misc/libxml_utils.cpp
57 PKG_CHECK_MODULES(INSTALLER_STATIC_DEP
67 ${INSTALLER_DEP_INCLUDES}
69 ${INSTALLER_STATIC_DEP_INCLUDE_DIRS}
70 ${PLUGINS_API_SUPPORT_DIRS}
73 ADD_LIBRARY(${TARGET_INSTALLER_STATIC} STATIC
77 ADD_DEFINITIONS(${INSTALLER_STATIC_DEP_CFLAGS})
78 ADD_DEFINITIONS(${INSTALLER_STATIC_DEP_CFLAGS_OTHERS})
80 TARGET_LINK_LIBRARIES(${TARGET_INSTALLER_STATIC}
81 ${INSTALLER_STATIC_DEP_LIBRARIES}
82 ${TARGET_PLUGINS_API_SUPPORT}
85 SET_TARGET_PROPERTIES(${TARGET_INSTALLER_STATIC} PROPERTIES
88 ADD_SUBDIRECTORY(wrt-installer)