Fix invalid licenses
[platform/framework/web/crosswalk-tizen.git] / src / bundle / CMakeLists.txt
1 #
2 # Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
3 #
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
7 #
8 #        http://www.apache.org/licenses/LICENSE-2.0
9 #
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.
15 #
16
17 # Dependencies
18 PKG_CHECK_MODULES(TARGET_INJECTED_BUNDLE_DEPS REQUIRED
19   dlog
20   glib-2.0
21   gio-2.0
22   uuid
23   elementary
24   chromium-efl
25 )
26
27 # Include Directories
28 SET(TARGET_INJECTED_BUNDLE_INCS
29   ${BASE_SRCDIR}
30   ${TARGET_INJECTED_BUNDLE_DEPS_INCLUDE_DIRS}
31 )
32
33 # Libraries
34 SET(TARGET_INJECTED_BUNDLE_LIBS
35   ${TARGET_INJECTED_BUNDLE_DEPS_LIBRARIES}
36 )
37
38 # Source Files
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
47 )
48
49 # Compiler Flags
50 SET(TARGET_INJECTED_BUNDLE_CFLAGS
51   "-fPIC"
52 )
53
54 # Linker Flags
55 SET(TARGET_INJECTED_BUNDLE_LDFLAGS
56   "-ldl"
57 )
58
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}
63 )
64 TARGET_LINK_LIBRARIES(${TARGET_INJECTED_BUNDLE}
65   ${TARGET_INJECTED_BUNDLE_LIBS}
66   ${TARGET_COMMON_STATIC}
67   ${TARGET_INJECTED_BUNDLE_LDFLAGS}
68 )
69
70 SET_TARGET_PROPERTIES(${TARGET_INJECTED_BUNDLE} PROPERTIES
71     COMPILE_FLAGS -fPIC)
72 SET_TARGET_PROPERTIES(${TARGET_INJECTED_BUNDLE} PROPERTIES
73     LINK_FLAGS "-Wl,--as-needed -Wl,--hash-style=both"
74     OUTPUT_NAME ${TARGET_INJECTED_BUNDLE}
75 )
76
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
81 )