Update wrt-plugins-common_0.3.60
[platform/framework/web/wrt-plugins-common.git] / src / plugins-installer / CMakeLists.txt
1 # Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
2 #
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
6 #
7 #        http://www.apache.org/licenses/LICENSE-2.0
8 #
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.
14 #
15 #
16 # @file     CMakeLists.txt
17 # @author   Lukasz Wrzosek (l.wrzosek@samsung.com)
18 # @version     1.0
19 #
20
21 SET(TARGET_INSTALLER "wrt-plugins-installer")
22 SET(TARGET_INSTALLER_STATIC "wrt-installer_static")
23
24 SET(INSTALLER_SRC_DIR
25     ${PROJECT_SOURCE_DIR}/src/plugins-installer
26     )
27
28 SET(INSTALLER_JOBS
29     ${INSTALLER_SRC_DIR}/jobs
30     )
31
32 SET(INSTALLER_INCLUDES
33     ${INSTALLER_SRC_DIR}
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
44 )
45
46 SET(INSTALLER_SOURCES
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
55     )
56
57 PKG_CHECK_MODULES(INSTALLER_STATIC_DEP
58     libxml-2.0
59     cert-svc-vcore
60     dpl-event-efl
61     dpl-wrt-dao-rw
62     libpcrecpp
63     REQUIRED
64     )
65
66 INCLUDE_DIRECTORIES(
67     ${INSTALLER_DEP_INCLUDES}
68     ${INSTALLER_INCLUDES}
69     ${INSTALLER_STATIC_DEP_INCLUDE_DIRS}
70     ${PLUGINS_API_SUPPORT_DIRS}
71     )
72
73 ADD_LIBRARY(${TARGET_INSTALLER_STATIC} STATIC
74     ${INSTALLER_SOURCES}
75     )
76
77 ADD_DEFINITIONS(${INSTALLER_STATIC_DEP_CFLAGS})
78 ADD_DEFINITIONS(${INSTALLER_STATIC_DEP_CFLAGS_OTHERS})
79
80 TARGET_LINK_LIBRARIES(${TARGET_INSTALLER_STATIC}
81     ${INSTALLER_STATIC_DEP_LIBRARIES}
82     ${TARGET_PLUGINS_API_SUPPORT}
83     )
84
85 SET_TARGET_PROPERTIES(${TARGET_INSTALLER_STATIC} PROPERTIES
86         COMPILE_FLAGS -fPIC)
87
88 ADD_SUBDIRECTORY(wrt-installer)