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 src/view/webkit/bundles/CMakeLists.txt
17 # @author Lukasz Wrzosek (l.wrzosek@samsung.com)
21 include(FindPkgConfig)
23 PKG_CHECK_MODULES(BUNDLES_DEP
35 ${PROJECT_SOURCE_DIR}/src/view/webkit/bundles/wrt-wk2-bundle.cpp
36 ${PROJECT_SOURCE_DIR}/src/view/webkit/bundles/bundle_uri_handling.cpp
37 ${PROJECT_SOURCE_DIR}/src/view/common/scheme.cpp
41 ${BUNDLES_DEP_INCLUDE_DIRS}
42 ${PROJECT_SOURCE_DIR}/src/plugin-service
43 ${PROJECT_SOURCE_DIR}/src/view/common
46 ADD_DEFINITIONS(${BUNDLES_DEP_CFLAGS})
47 INCLUDE_DIRECTORIES(${BUNDLES_INCLUDES})
49 ADD_LIBRARY(${TARGET_BUNDLES_LIB} SHARED
53 TARGET_LINK_LIBRARIES(${TARGET_BUNDLES_LIB}
54 ${BUNDLES_DEP_LIBRARIES}
55 ${TARGET_PLUGIN_MODULE_LIB}
56 ${TARGET_CORE_MODULE_LIB}
60 SET_TARGET_PROPERTIES(${TARGET_BUNDLES_LIB} PROPERTIES
61 VERSION ${PROJECT_VERSION}
62 SOVERSION ${PROJECT_API_VERSION})
63 SET_TARGET_PROPERTIES(${TARGET_BUNDLES_LIB} PROPERTIES
65 SET_TARGET_PROPERTIES(${TARGET_BUNDLES_LIB} PROPERTIES
66 LINK_FLAGS "-Wl,--as-needed -Wl,--hash-style=both"
67 OUTPUT_NAME ${TARGET_BUNDLES_LIB}
70 INSTALL(TARGETS ${TARGET_BUNDLES_LIB}
71 DESTINATION lib/wrt-wk2-bundles/
72 PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE
73 GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE