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 src/view/webkit/CMakeLists.txt
17 # @author Pawel Sikorski (p.sikorski@samsung.com)
21 include(FindPkgConfig)
23 PKG_CHECK_MODULES(VIEW_MODULE_DEP
28 wrt-commons-custom-handler-dao-rw
38 PKG_CHECK_MODULES(SYS_VIEW_MODULE_DEP
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}
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}
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})
78 INCLUDE_DIRECTORIES(${VIEW_MODULE_INCLUDES})
79 INCLUDE_DIRECTORIES(SYSTEM ${SYS_VIEW_MODULE_DEP_INCLUDE_DIRS})
81 ADD_LIBRARY(${TARGET_VIEW_MODULE_LIB} STATIC
82 ${VIEW_MODULE_SOURCES}
85 TARGET_LINK_LIBRARIES(${TARGET_VIEW_MODULE_LIB}
86 ${VIEW_COMMON_LIB_STATIC}
87 ${VIEW_MODULE_DEP_LIBRARIES}
89 # ${TARGET_PLUGIN_MODULE_LIB}
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}
100 ADD_SUBDIRECTORY(bundles)