Implementation of IPC Asynchronous Message Support.
[platform/framework/web/wrt-plugins-common.git] / src / standards / W3C / Widget / 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 set(TARGET_NAME "wrt-plugins-w3c-widget-interface")
16
17 pkg_search_module(webkit2 REQUIRED ewebkit2)
18 pkg_search_module(plugin-types REQUIRED wrt-plugins-types)
19
20 set(SRCS
21   ${SRCS_COMMONS}
22   JSWidget.cpp
23   JSPreferences.cpp
24   plugin_initializer.cpp
25   plugin_config.cpp
26 )
27
28 include_directories(
29   ${API_WIDGET_PATH}
30   ${webkit2_INCLUDE_DIRS}
31   ${plugin-types_INCLUDE_DIRS}
32   ${PLUGINS_IPC_MESSAGE_DIRS}
33 )
34
35 add_library(${TARGET_NAME} SHARED ${SRCS})
36 target_link_libraries(${TARGET_NAME}
37   ${LIBS_COMMON}
38   ${TARGET_COMMONS}
39   ${TARGET_COMMONS_JAVASCRIPT}
40   ${TARGET_JS_OVERLAY}
41   wrt-plugins-widget
42   wrt-plugins-localstorage
43   wrt-plugins-storageevent
44   wrt-dispatch-event
45   wrt-plugins-ipc-message
46 )
47
48 INSTALL(TARGETS ${TARGET_NAME} LIBRARY DESTINATION ${LIB_INSTALL_DIR}/wrt-plugins/w3c-widget-interface)