[Release] wrt_0.8.180
[platform/framework/web/wrt.git] / src / view / webkit / 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     src/view/webkit/CMakeLists.txt
17 # @author   Pawel Sikorski (p.sikorski@samsung.com)
18
19 # webkit2
20
21 include(FindPkgConfig)
22
23 PKG_CHECK_MODULES(VIEW_MODULE_DEP
24     dpl-dbus-efl
25     dpl-utils-efl
26     dpl-wrt-dao-ro
27     notification
28     wrt-commons-custom-handler-dao-rw
29     wrt-plugin-js-overlay
30     wrt-popup-wrt-runner
31     security-core
32     security-client
33     haptic
34     sysman
35     REQUIRED
36 )
37
38 PKG_CHECK_MODULES(SYS_VIEW_MODULE_DEP
39     appsvc
40     eina
41     ewebkit2
42     REQUIRED
43 )
44
45 SET(VIEW_MODULE_SOURCES
46     ${PROJECT_SOURCE_DIR}/src/view/webkit/view_logic.cpp
47     ${PROJECT_SOURCE_DIR}/src/view/webkit/view_logic_authentication_challenge_support.cpp
48     ${PROJECT_SOURCE_DIR}/src/view/webkit/view_logic_scheme_support.cpp
49     ${PROJECT_SOURCE_DIR}/src/view/webkit/view_logic_service_support.cpp
50     ${PROJECT_SOURCE_DIR}/src/view/webkit/view_logic_geolocation_support.cpp
51     ${PROJECT_SOURCE_DIR}/src/view/webkit/view_logic_usermedia_support.cpp
52     ${PROJECT_SOURCE_DIR}/src/view/webkit/view_logic_web_notification_support.cpp
53     ${PROJECT_SOURCE_DIR}/src/view/webkit/bundles/plugin_module_support.cpp
54     ${PROJECT_SOURCE_DIR}/src/view/webkit/view_logic_certificate_confirm_support.cpp
55     ${VIEW_MODULE_SOURCES}
56 )
57
58 SET(VIEW_MODULE_INCLUDES
59     ${PROJECT_SOURCE_DIR}/src/api_new
60     ${PROJECT_SOURCE_DIR}/src/common
61     ${PROJECT_SOURCE_DIR}/src/domain
62     ${PROJECT_SOURCE_DIR}/src/global_logic
63     ${PROJECT_SOURCE_DIR}/src/popup-process
64     ${PROJECT_SOURCE_DIR}/src/profiling
65     ${PROJECT_SOURCE_DIR}/src/utils
66     ${PROJECT_SOURCE_DIR}/src/view
67     ${PROJECT_SOURCE_DIR}/src/view/webkit
68     ${PROJECT_SOURCE_DIR}/src/plugin-service
69     ${PROJECT_SOURCE_DIR}/src/plugin-service/plugin-loading
70     ${VIEW_MODULE_DEP_INCLUDE_DIRS}
71 )
72
73 # Needed for use of visibility functions of webkit2
74 ADD_DEFINITIONS("-DENABLE_TIZEN_PAGE_VISIBILITY_API")
75 ADD_DEFINITIONS("-DBUILDING_EFL__")
76 ADD_DEFINITIONS(${VIEW_MODULE_DEP_CFLAGS})
77
78 INCLUDE_DIRECTORIES(${VIEW_MODULE_INCLUDES})
79 INCLUDE_DIRECTORIES(SYSTEM ${SYS_VIEW_MODULE_DEP_INCLUDE_DIRS})
80
81 ADD_LIBRARY(${TARGET_VIEW_MODULE_LIB} STATIC
82     ${VIEW_MODULE_SOURCES}
83 )
84
85 TARGET_LINK_LIBRARIES(${TARGET_VIEW_MODULE_LIB}
86     ${VIEW_COMMON_LIB_STATIC}
87     ${VIEW_MODULE_DEP_LIBRARIES}
88     ${PROF_LIB}
89 #    ${TARGET_PLUGIN_MODULE_LIB}
90 )
91
92 SET_TARGET_PROPERTIES(${TARGET_VIEW_MODULE_LIB} PROPERTIES
93     VERSION ${PROJECT_VERSION}
94     SOVERSION ${PROJECT_API_VERSION})
95 SET_TARGET_PROPERTIES(${TARGET_VIEW_MODULE_LIB} PROPERTIES
96     COMPILE_FLAGS "-include profiling_util.h"
97     OUTPUT_NAME ${TARGET_VIEW_MODULE_LIB}
98 )
99
100 ADD_SUBDIRECTORY(bundles)