Initialize Tizen 2.3
[framework/web/wrt-plugins-common.git] / src_wearable / 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
16 ADD_DEFINITIONS("-DWRT_PLUGINS_WIDGET_LOG")
17
18 set(TARGET_NAME "wrt-plugins-w3c-widget-interface")
19
20 pkg_search_module(webkit2 REQUIRED ewebkit2)
21 pkg_search_module(plugin-types REQUIRED wrt-plugins-types)
22
23 set(SRCS
24   ${SRCS_COMMONS}
25   JSWidget.cpp
26   JSPreferences.cpp
27   plugin_initializer.cpp
28   plugin_config.cpp
29 )
30
31 include_directories(
32   ${API_WIDGET_PATH}
33   ${webkit2_INCLUDE_DIRS}
34   ${plugin-types_INCLUDE_DIRS}
35   ${PLUGINS_API_SUPPORT_DIRS}
36 )
37
38 add_library(${TARGET_NAME} SHARED ${SRCS})
39 target_link_libraries(${TARGET_NAME}
40   ${LIBS_COMMON}
41   ${TARGET_COMMONS}
42   ${TARGET_COMMONS_JAVASCRIPT}
43   ${TARGET_JS_OVERLAY}
44   ${TARGET_PLUGINS_API_SUPPORT}
45   wrt-plugins-widget
46   wrt-plugins-localstorage
47   wrt-plugins-storageevent
48   wrt-dispatch-event
49 )
50
51 INSTALL(TARGETS ${TARGET_NAME} LIBRARY DESTINATION /usr/lib/wrt-plugins/w3c-widget-interface)