603d8c01de9cd824949bd47699ea9467ac5c112c
[platform/framework/web/wrt.git] / src / api_new / 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
16 ADD_LIBRARY(${TARGET_CORE_MODULE_LIB} SHARED
17     ${PROJECT_SOURCE_DIR}/src/api_new/core_module.cpp
18     ${PROJECT_SOURCE_DIR}/src/api_new/runnable_widget_object.cpp
19     ${PROJECT_SOURCE_DIR}/src/api_new/runnable_widget_object_state.cpp
20 )
21
22 SET_TARGET_PROPERTIES(${TARGET_CORE_MODULE_LIB} PROPERTIES
23 #    COMPILE_FLAGS "-include profiling_util.h"
24     OUTPUT_NAME ${TARGET_CORE_MODULE_LIB}
25 )
26
27 PKG_CHECK_MODULES(CORE_MODULE_DEP
28     wrt-plugin-js-overlay
29     dpl-efl
30     security-wrt-ocsp
31     REQUIRED
32 )
33
34 PKG_CHECK_MODULES(SYS_CORE_MODULE_DEP
35     ewebkit2
36     libprivilege-control
37     REQUIRED
38 )
39
40 INCLUDE_DIRECTORIES(
41     ${CORE_MODULE_DEP_INCLUDE_DIRS}
42     ${CMAKE_CURRENT_SOURCE_DIR}
43 )
44
45 INCLUDE_DIRECTORIES( SYSTEM ${SYS_CORE_MODULE_DEP_INCLUDE_DIRS})
46
47 TARGET_LINK_LIBRARIES(${TARGET_CORE_MODULE_LIB}
48     ${TARGET_WRT_ENGINE_STATIC}
49     ${WRT_ENGINE_DEPS_LIBRARIES}
50     ${SYS_WRT_ENGINE_DEPS_LIBRARIES}
51     ${TARGET_VIEW_MODULE_LIB}
52     ${CORE_MODULE_DEP_LIBRARIES}
53     ${SYS_CORE_MODULE_DEP_LIBRARIES}
54 )
55
56 INSTALL(TARGETS ${TARGET_CORE_MODULE_LIB}
57     DESTINATION lib/
58     PERMISSIONS OWNER_READ OWNER_WRITE
59     GROUP_READ GROUP_EXECUTE WORLD_READ
60 )
61
62 INSTALL(FILES
63     ${PROJECT_SOURCE_DIR}/src/api_new/core_module.h
64     ${PROJECT_SOURCE_DIR}/src/api_new/i_runnable_widget_object.h
65     DESTINATION include/${PROJECT_NAME}
66 )