# Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # @file src/view/webkit/CMakeLists.txt # @author Pawel Sikorski (p.sikorski@samsung.com) # webkit2 include(FindPkgConfig) PKG_CHECK_MODULES(VIEW_MODULE_DEP security-client appsvc dpl-dbus-efl dpl-popup-efl dpl-utils-efl dpl-wrt-dao-ro eina ewebkit2 wrt-plugin-js-overlay security-core REQUIRED ) SET(VIEW_MODULE_SOURCES ${PROJECT_SOURCE_DIR}/src/global_logic/global_logic.cpp #TODO this should be moved to separate module ${PROJECT_SOURCE_DIR}/src/global_logic/global_model.cpp #TODO this should be moved to separate module ${PROJECT_SOURCE_DIR}/src/domain/user_callback_controller.cpp #TODO this should be moved to separate module ${PROJECT_SOURCE_DIR}/src/domain/user_callback_logic.cpp #TODO this should be moved to separate module ${PROJECT_SOURCE_DIR}/src/view/webkit/view_logic.cpp ${PROJECT_SOURCE_DIR}/src/view/webkit/view_logic_filesystem_support.cpp ${PROJECT_SOURCE_DIR}/src/view/webkit/view_logic_scheme_support.cpp ${PROJECT_SOURCE_DIR}/src/view/webkit/view_logic_geolocation_support_webkit2.cpp ${PROJECT_SOURCE_DIR}/src/view/webkit/bundles/plugin_module_support.cpp ${VIEW_MODULE_SOURCES} ) SET(VIEW_MODULE_INCLUDES ${PROJECT_SOURCE_DIR}/src/api_new ${PROJECT_SOURCE_DIR}/src/common ${PROJECT_SOURCE_DIR}/src/domain ${PROJECT_SOURCE_DIR}/src/global_logic ${PROJECT_SOURCE_DIR}/src/popup-process ${PROJECT_SOURCE_DIR}/src/profiling ${PROJECT_SOURCE_DIR}/src/utils ${PROJECT_SOURCE_DIR}/src/view ${PROJECT_SOURCE_DIR}/src/view/webkit ${PROJECT_SOURCE_DIR}/src/plugin-service ${PROJECT_SOURCE_DIR}/src/plugin-service/plugin-loading ${VIEW_MODULE_DEP_INCLUDE_DIRS} ) # Needed for use of visibility functions of webkit2 ADD_DEFINITIONS("-DENABLE_TIZEN_PAGE_VISIBILITY_API") ADD_DEFINITIONS("-DBUILDING_EFL__") ADD_DEFINITIONS(${VIEW_MODULE_DEP_CFLAGS}) INCLUDE_DIRECTORIES(${VIEW_MODULE_INCLUDES}) ADD_LIBRARY(${TARGET_VIEW_MODULE_LIB} STATIC ${VIEW_MODULE_SOURCES} ) TARGET_LINK_LIBRARIES(${TARGET_VIEW_MODULE_LIB} ${VIEW_COMMON_LIB_STATIC} ${VIEW_MODULE_DEP_LIBRARIES} ${PROF_LIB} # ${TARGET_PLUGIN_MODULE_LIB} ) SET_TARGET_PROPERTIES(${TARGET_VIEW_MODULE_LIB} PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_API_VERSION}) SET_TARGET_PROPERTIES(${TARGET_VIEW_MODULE_LIB} PROPERTIES COMPILE_FLAGS "-include profiling_util.h" OUTPUT_NAME ${TARGET_VIEW_MODULE_LIB} ) ADD_SUBDIRECTORY(bundles)