Initialize Tizen 2.3
[framework/web/wrt-plugins-common.git] / src_wearable / 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 # Includes CMake configuration file (*.cmake), preserving appropriate paths.
16
17 ADD_DEFINITIONS("-DWRT_PLUGINS_COMMON_LOG")
18
19 macro(include_config_file INCLUDED_CONFIG_FILE_PATH)
20   get_filename_component(CURRENT_CONFIG_FILE_PATH ${CMAKE_CURRENT_LIST_FILE} PATH)
21   include(${CURRENT_CONFIG_FILE_PATH}/${INCLUDED_CONFIG_FILE_PATH}/${CONFIG_FILE_NAME} OPTIONAL)
22 endmacro()
23
24 # Gets actual path for CMake configuration file (*.cmake).
25 # By default, if no argument is passed, current path will be set to variable
26 # named CURRENT_PATH.
27 # @param [Optional] Name of the variable to set with current path.
28 macro(get_current_path)
29   set(VARIABLE "CURRENT_PATH")
30   if (${ARGC} GREATER 0)
31     set(VARIABLE ${ARGV0})
32   endif ()
33   get_filename_component(${VARIABLE} ${CMAKE_CURRENT_LIST_FILE} PATH)
34 endmacro()
35
36 set(HOST_ARCH $ENV{DEB_HOST_ARCH})
37 if("${HOST_ARCH}" MATCHES "armel")
38     set(HOST_ARCH "armel")
39 endif()
40
41 #target names
42 set(TARGET_PLUGIN_LOADING_LIB "wrt-plugin-loading")
43 set(TARGET_COMMONS "wrt-plugins-commons")
44 set(TARGET_COMMONS_JAVASCRIPT "wrt-plugins-commons-javascript")
45 set(TARGET_JS_OVERLAY "wrt-plugins-js-overlay")
46 SET(TARGET_POPUP_ACE "wrt-popup-ace-runtime")
47 SET(TARGET_POPUP_ACE_RUNNER_LIB "wrt-popup-ace-runner")
48 SET(TARGET_POPUP_WRT "wrt-popup-wrt-runtime")
49 SET(TARGET_POPUP_WRT_RUNNER_LIB "wrt-popup-wrt-runner")
50 set(TARGET_PLUGINS_API_SUPPORT "wrt-plugins-api-support")
51 set(TARGET_PLUGINS_IPC_MESSAGE_LIB "wrt-plugins-ipc-message")
52
53 set(PLUGIN_LOADING_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/plugin-loading)
54 set(PLUGINS_API_SUPPORT_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/plugins-api-support)
55 set(PLUGINS_IPC_MESSAGE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/plugins-ipc-message)
56
57 add_subdirectory(plugins-api-support)
58 add_subdirectory(plugin-loading)
59 add_subdirectory(js-overlay)
60 add_subdirectory(Commons)
61 add_subdirectory(CommonsJavaScript)
62 add_subdirectory(dispatch-event)
63 add_subdirectory(modules)
64 add_subdirectory(standards)
65 add_subdirectory(wrt-popup)
66 add_subdirectory(plugins-installer)
67 add_subdirectory(plugins-ipc-message)