# 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. # set(TARGET_NAME "wrt-plugins-w3c-widget-interface") pkg_search_module(webkit2 REQUIRED ewebkit2) pkg_search_module(plugin-types REQUIRED wrt-plugins-types) set(SRCS ${SRCS_COMMONS} JSWidget.cpp JSPreferences.cpp plugin_initializer.cpp plugin_config.cpp ) include_directories( ${API_WIDGET_PATH} ${webkit2_INCLUDE_DIRS} ${plugin-types_INCLUDE_DIRS} # ${API_STORAGE_EVENT_PATH} # ${API_LOCALSTORAGE_PATH} ) add_library(${TARGET_NAME} SHARED ${SRCS}) target_link_libraries(${TARGET_NAME} ${LIBS_COMMON} ${TARGET_COMMONS} ${TARGET_COMMONS_JAVASCRIPT} ${TARGET_JS_OVERLAY} wrt-plugins-widget wrt-plugins-localstorage wrt-plugins-storageevent ) INSTALL(TARGETS ${TARGET_NAME} LIBRARY DESTINATION /usr/lib/wrt-plugins/w3c-widget-interface)