22018c39e2af3d17931144dd0a3d339f28526f13
[osm/SO.git] / common / python / CMakeLists.txt
1 # Creation Date: 2016/1/12
2
3 #   Copyright 2016 RIFT.IO Inc
4 #
5 #   Licensed under the Apache License, Version 2.0 (the "License");
6 #   you may not use this file except in compliance with the License.
7 #   You may obtain a copy of the License at
8 #
9 #       http://www.apache.org/licenses/LICENSE-2.0
10 #
11 #   Unless required by applicable law or agreed to in writing, software
12 #   distributed under the License is distributed on an "AS IS" BASIS,
13 #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 #   See the License for the specific language governing permissions and
15 #   limitations under the License.
16 #
17
18 cmake_minimum_required(VERSION 2.8)
19
20
21 rift_python_install_tree(
22   FILES
23     rift/mano/__init__.py
24     rift/mano/ncclient.py
25   COMPONENT ${PKG_LONG_NAME}
26   PYTHON3_ONLY
27   )
28
29 rift_python_install_tree(
30   FILES
31     rift/mano/cloud/__init__.py
32     rift/mano/cloud/accounts.py
33     rift/mano/cloud/config.py
34     rift/mano/cloud/operdata.py
35   COMPONENT ${PKG_LONG_NAME}
36   PYTHON3_ONLY
37   )
38
39 rift_python_install_tree(
40   FILES
41     rift/mano/config_agent/operdata.py
42     rift/mano/config_agent/__init__.py
43     rift/mano/config_agent/config.py
44   COMPONENT ${PKG_LONG_NAME}
45   PYTHON3_ONLY
46   )
47
48
49 # Subscribers
50 rift_python_install_tree(
51   FILES
52     rift/mano/dts/__init__.py
53     rift/mano/dts/core.py
54     rift/mano/dts/subscriber/__init__.py
55     rift/mano/dts/subscriber/core.py
56     rift/mano/dts/subscriber/store.py
57     rift/mano/dts/subscriber/ns_subscriber.py
58     rift/mano/dts/subscriber/vnf_subscriber.py
59     rift/mano/dts/subscriber/ro_account.py
60   COMPONENT ${PKG_LONG_NAME}
61   PYTHON3_ONLY
62   )
63
64 # RPCs
65 rift_python_install_tree(
66   FILES
67     rift/mano/dts/rpc/__init__.py
68     rift/mano/dts/rpc/core.py
69   COMPONENT ${PKG_LONG_NAME}
70   PYTHON3_ONLY
71   )
72
73 # Downloaders
74 rift_python_install_tree(
75   FILES
76     rift/downloader/__init__.py
77     rift/downloader/base.py
78     rift/downloader/url.py
79   COMPONENT ${PKG_LONG_NAME}
80   PYTHON3_ONLY
81   )
82
83 rift_python_install_tree(
84   FILES
85     rift/mano/config_data/__init__.py
86     rift/mano/config_data/config.py
87   COMPONENT ${PKG_LONG_NAME}
88   PYTHON3_ONLY
89   )
90
91 rift_python_install_tree(
92   FILES
93     rift/mano/tosca_translator/__init__.py
94     rift/mano/tosca_translator/translator_logging.conf
95     rift/mano/tosca_translator/compare_desc.py
96     rift/mano/tosca_translator/shell.py
97     rift/mano/tosca_translator/rwmano/tosca_translator.py
98     rift/mano/tosca_translator/rwmano/translate_inputs.py
99     rift/mano/tosca_translator/rwmano/__init__.py
100     rift/mano/tosca_translator/rwmano/translate_outputs.py
101     rift/mano/tosca_translator/rwmano/translate_node_templates.py
102     rift/mano/tosca_translator/rwmano/syntax/mano_parameter.py
103     rift/mano/tosca_translator/rwmano/syntax/mano_resource.py
104     rift/mano/tosca_translator/rwmano/syntax/__init__.py
105     rift/mano/tosca_translator/rwmano/syntax/mano_template.py
106     rift/mano/tosca_translator/rwmano/syntax/mano_output.py
107     rift/mano/tosca_translator/rwmano/tosca/tosca_nfv_vnf.py
108     rift/mano/tosca_translator/rwmano/tosca/__init__.py
109     rift/mano/tosca_translator/rwmano/tosca/tosca_config_primitives.py
110     rift/mano/tosca_translator/rwmano/tosca/tosca_network_port.py
111     rift/mano/tosca_translator/rwmano/tosca/tosca_network_network.py
112     rift/mano/tosca_translator/rwmano/tosca/tosca_compute.py
113     rift/mano/tosca_translator/rwmano/tosca/tosca_scaling_group.py
114     rift/mano/tosca_translator/rwmano/tosca/tosca_initial_config.py
115     rift/mano/tosca_translator/common/__init__.py
116     rift/mano/tosca_translator/common/utils.py
117     rift/mano/tosca_translator/common/exception.py
118     rift/mano/tosca_translator/custom/__init__.py
119     rift/mano/tosca_translator/custom/rwmano/__init__.py
120     rift/mano/tosca_translator/conf/translator.conf
121     rift/mano/tosca_translator/conf/__init__.py
122     rift/mano/tosca_translator/conf/config.py
123   COMPONENT ${PKG_LONG_NAME}
124   PYTHON3_ONLY
125   )
126
127 rift_python_install_tree(
128   FILES
129     rift/mano/utils/__init.py__
130     rift/mano/utils/compare_desc.py
131     rift/mano/utils/juju_api.py
132     rift/mano/utils/short_name.py
133   COMPONENT ${PKG_LONG_NAME}
134   PYTHON3_ONLY
135   )
136
137 rift_python_install_tree(
138   FILES
139     rift/mano/yang_translator/__init__.py
140     rift/mano/yang_translator/translator_logging.conf
141     rift/mano/yang_translator/shell.py
142     rift/mano/yang_translator/compare_desc.py
143     rift/mano/yang_translator/conf/config.py
144     rift/mano/yang_translator/conf/translator.conf
145     rift/mano/yang_translator/conf/__init__.py
146     rift/mano/yang_translator/rwmano/yang_translator.py
147     rift/mano/yang_translator/rwmano/translate_descriptors.py
148     rift/mano/yang_translator/rwmano/__init__.py
149     rift/mano/yang_translator/rwmano/yang/yang_vld.py
150     rift/mano/yang_translator/rwmano/yang/yang_vdu.py
151     rift/mano/yang_translator/rwmano/yang/yang_vnfd.py
152     rift/mano/yang_translator/rwmano/yang/yang_nsd.py
153     rift/mano/yang_translator/rwmano/yang/__init__.py
154     rift/mano/yang_translator/rwmano/syntax/tosca_template.py
155     rift/mano/yang_translator/rwmano/syntax/tosca_resource.py
156     rift/mano/yang_translator/rwmano/syntax/__init__.py
157     rift/mano/yang_translator/custom/__init__.py
158     rift/mano/yang_translator/custom/rwmano/__init__.py
159     rift/mano/yang_translator/common/utils.py
160     rift/mano/yang_translator/common/exception.py
161     rift/mano/yang_translator/common/__init__.py
162   COMPONENT ${PKG_LONG_NAME}
163   PYTHON3_ONLY
164   )
165
166 set(TRANSLATOR_SCRIPTS
167   ${CMAKE_CURRENT_SOURCE_DIR}/rift/mano/tosca_translator/tosca-translator
168   ${CMAKE_CURRENT_SOURCE_DIR}/rift/mano/yang_translator/yang-translator)
169
170 install(
171   FILES ${TRANSLATOR_SCRIPTS}
172     DESTINATION
173       usr/bin
174     COMPONENT ${PKG_LONG_NAME}
175     )
176
177 set(subdirs
178   test
179   )
180
181 rift_add_subdirs(SUBDIR_LIST ${subdirs})