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