upload tizen1.0 source
[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(webkit REQUIRED ewebkit>=0.1.0)
18 pkg_search_module(wrt-plugin-api REQUIRED wrt-plugin-api>=0.7.0)
19
20 set(SRCS
21   ${SRCS_COMMONS}
22   JSWidget.cpp
23   JSPreferences.cpp
24   JSStorageEvent.cpp
25   plugin_initializer.cpp
26   IFrameSupport.cpp
27   AddEventListenerSupport.cpp
28 )
29
30 IF(W3C_TEST)
31 set(SRCS
32   ${SRCS}
33   JSTest.cpp
34   Test.cpp
35 )
36 ENDIF(W3C_TEST)
37
38 include_directories( ${API_WIDGET_PATH}
39 #  ${API_STORAGE_EVENT_PATH}
40 #  ${API_LOCALSTORAGE_PATH}
41   ${webkit_INCLUDE_DIRS}
42   ${wrt-plugin-api_INCLUDE_DIRS}
43 )
44
45 add_library(${TARGET_NAME} SHARED ${SRCS})
46 target_link_libraries(${TARGET_NAME}
47   ${LIBS_COMMON}
48   ${TARGET_COMMONS}
49   ${TARGET_COMMONS_JAVASCRIPT}
50   wrt-plugins-widget
51   wrt-plugins-localstorage
52   wrt-plugins-storageevent
53 )
54
55 INSTALL(TARGETS ${TARGET_NAME} LIBRARY DESTINATION ${STANDARD_FILE_DESTINATION}/w3c-widget-interface)
56 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/config.xml DESTINATION ${STANDARD_FILE_DESTINATION}/w3c-widget-interface)