2 # Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
18 PKG_CHECK_MODULES(TARGET_INJECTED_BUNDLE_DEPS REQUIRED
28 SET(TARGET_INJECTED_BUNDLE_INCS
30 ${TARGET_INJECTED_BUNDLE_DEPS_INCLUDE_DIRS}
34 SET(TARGET_INJECTED_BUNDLE_LIBS
35 ${TARGET_INJECTED_BUNDLE_DEPS_LIBRARIES}
39 SET(TARGET_INJECTED_BUNDLE_SRCS
40 ${BASE_SRCDIR}/bundle/injected_bundle.cc
41 ${BASE_SRCDIR}/bundle/extension_renderer_controller.cc
42 ${BASE_SRCDIR}/bundle/extension_client.cc
43 ${BASE_SRCDIR}/bundle/extension_module.cc
44 ${BASE_SRCDIR}/bundle/module_system.cc
45 ${BASE_SRCDIR}/bundle/runtime_ipc_client.cc
46 ${BASE_SRCDIR}/bundle/xwalk_v8tools_module.cc
50 SET(TARGET_INJECTED_BUNDLE_CFLAGS
55 SET(TARGET_INJECTED_BUNDLE_LDFLAGS
59 INCLUDE_DIRECTORIES(${TARGET_INJECTED_BUNDLE_INCS})
60 ADD_DEFINITIONS(${TARGET_INJECTED_BUNDLE_CFLAGS})
61 ADD_LIBRARY(${TARGET_INJECTED_BUNDLE} SHARED
62 ${TARGET_INJECTED_BUNDLE_SRCS}
64 TARGET_LINK_LIBRARIES(${TARGET_INJECTED_BUNDLE}
65 ${TARGET_INJECTED_BUNDLE_LIBS}
66 ${TARGET_COMMON_STATIC}
67 ${TARGET_INJECTED_BUNDLE_LDFLAGS}
70 SET_TARGET_PROPERTIES(${TARGET_INJECTED_BUNDLE} PROPERTIES
72 SET_TARGET_PROPERTIES(${TARGET_INJECTED_BUNDLE} PROPERTIES
73 LINK_FLAGS "-Wl,--as-needed -Wl,--hash-style=both"
74 OUTPUT_NAME ${TARGET_INJECTED_BUNDLE}
77 INSTALL(TARGETS ${TARGET_INJECTED_BUNDLE}
78 DESTINATION ${LIB_INSTALL_DIR}
79 PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE
80 GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE