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 Marek (l.marek@samsung.com)
21 pkg_search_module(plugin-types REQUIRED wrt-plugins-types)
22 pkg_search_module(dpl REQUIRED dpl-efl)
23 pkg_search_module(dpl-event REQUIRED dpl-event-efl)
24 pkg_search_module(dpl-wrt-dao-ro REQUIRED dpl-wrt-dao-ro)
25 pkg_search_module(webkit2 REQUIRED ewebkit2)
27 set(PLUGIN_LOADING_SOURCES
28 ${PLUGIN_LOADING_DIRS}/plugin_logic.cpp
29 ${PLUGIN_LOADING_DIRS}/plugin.cpp
30 ${PLUGIN_LOADING_DIRS}/plugin_model.cpp
31 ${PLUGIN_LOADING_DIRS}/explorer.cpp
32 ${PLUGIN_LOADING_DIRS}/plugin_iframe_support.cpp
33 ${PLUGIN_LOADING_DIRS}/plugin_container_support.cpp
34 ${PLUGIN_LOADING_DIRS}/plugin_property_support.cpp
35 ${PLUGIN_LOADING_DIRS}/javascript_interface.cpp
36 ${PLUGIN_LOADING_DIRS}/js_page_session.cpp
40 ${PLUGIN_MODULE_SRC_DIR}
41 ${PLUGIN_LOADING_DIRS}
42 ${webkit2_INCLUDE_DIRS}
43 ${plugin-types_INCLUDE_DIRS}
46 ADD_LIBRARY(${TARGET_PLUGIN_LOADING_LIB} SHARED
47 ${PLUGIN_LOADING_SOURCES}
50 SET_TARGET_PROPERTIES(${TARGET_PLUGIN_LOADING_LIB} PROPERTIES
52 LINK_FLAGS "-Wl,--as-needed -Wl,--hash-style=both"
55 SET_TARGET_PROPERTIES(${TARGET_PLUGIN_LOADING_LIB} PROPERTIES
56 SOVERSION ${CMAKE_PROJECT_API_VERSION}
57 VERSION ${CMAKE_PROJECT_VERSION}
60 target_link_libraries(${TARGET_PLUGIN_LOADING_LIB}
62 ${dpl-event_LIBRARIES}
63 ${dpl-wrt-dao-ro_LIBRARIES}
66 wrt-plugins-tizen-service-event # static lib
67 wrt-plugins-softkeyboardchange-event # static lib
70 INSTALL(TARGETS ${TARGET_PLUGIN_LOADING_LIB}
72 PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE
73 GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
78 ${PLUGIN_LOADING_DIRS}/plugin_logic.h
79 ${PLUGIN_LOADING_DIRS}/js_types.h
80 DESTINATION include/wrt-plugin-loading)