2 # Copyright 2016 RIFT.IO Inc
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.
16 # Author(s): Anil Gunturu
17 # Creation Date: 03/26/2014
22 # The submodule dependencies must be specified in the
23 # .gitmodules.dep file at the top level (supermodule) directory
24 # If this submodule depends other submodules remember to update
28 cmake_minimum_required(VERSION 2.8)
30 message(CMAKE_MODULE_PATH=${CMAKE_MODULE_PATH})
33 # DO NOT add any code before this and DO NOT
34 # include this file anywhere else
36 include(rift_submodule NO_POLICY_SCOPE)
40 # Submodule specific includes will go here,
41 # These are specified here, since these variables are accessed
42 # from multiple sub directories. If the variable is subdirectory
43 # specific it must be declared in the subdirectory.
47 set(INSTALL_COMPONENT mano)
49 option(PRODUCT "Control the details of the build" OSM)
51 if (PRODUCT STREQUAL "RIFTWARE")
52 set(INCLUDE_EXAMPLES ON)
54 set(INCLUDE_EXAMPLES OFF)
70 if (NOT RIFT_AGENT_BUILD STREQUAL "XML_ONLY")
71 list(APPEND subdirs confd_client)
75 message("Including examples")
76 list(APPEND subdirs examples)
78 message("NOT including examples")
81 rift_add_subdirs(SUBDIR_LIST ${subdirs})
83 install(FILES BUILD.sh DESTINATION bin COMPONENT installer)
86 # Set up package details
89 rift_set_component_package_fields(
91 DESCRIPTION "RIFT.ware MANO"
94 rift_set_component_package_fields(
96 DESCRIPTION "RIFT.ware AWS plugin"
99 rift_set_component_package_fields(
100 "rwcal-plugin-cloudsim"
101 DESCRIPTION "RIFT.ware cloudsim plugin"
104 rift_set_component_package_fields(
105 "rwcal-plugin-cloudsimproxy"
106 DESCRIPTION "RIFT.ware cloudsimproxy plugin"
109 rift_set_component_package_fields(
110 "rwcal-plugin-openmano-vimconnector"
111 DESCRIPTION "RIFT.ware vimconnector plugin"
114 rift_set_component_package_fields(
115 "rwcal-plugin-openstack"
116 DESCRIPTION "RIFT.ware openstack plugin"
119 rift_set_component_package_fields(
120 "rwcal-plugin-brocade"
121 DESCRIPTION "RIFT.ware brocade plugin"
124 rift_set_component_package_fields(
126 DESCRIPTION "RIFT.ware mock plugin"
130 # This macro adds targets for documentaion, unittests, code coverage and packaging
132 rift_add_submodule_targets(SUBMODULE_PACKAGE_NAME "rw.core.mano")
134 # Workaround whatever mess rw.package is doing as it can't seem
135 # to figure out that it should make a directory -before- making
137 set(dir usr/lib64/python${RIFT_PYTHON3}/site-packages/gi/overrides)
139 ${CMAKE_CURRENT_SOURCE_DIR}/.cpack-workaround
142 if (RIFT_SUPPORT_PYTHON2)
143 set(dir usr/lib64/python${RIFT_PYTHON2}/site-packages/gi/overrides)
146 ${CMAKE_CURRENT_SOURCE_DIR}/.cpack-workaround