3343119235c79b90926a398d1fb38adcb607f54e
[osm/SO.git] / common / python / CMakeLists.txt
1 # Creation Date: 2016/1/12
2 # RIFT_IO_STANDARD_CMAKE_COPYRIGHT_HEADER(END)
3
4 cmake_minimum_required(VERSION 2.8)
5
6
7 rift_python_install_tree(
8   FILES
9     rift/mano/__init__.py
10     rift/mano/ncclient.py
11   COMPONENT ${PKG_LONG_NAME}
12   PYTHON3_ONLY
13   )
14
15 rift_python_install_tree(
16   FILES
17     rift/mano/cloud/__init__.py
18     rift/mano/cloud/accounts.py
19     rift/mano/cloud/config.py
20     rift/mano/cloud/operdata.py
21   COMPONENT ${PKG_LONG_NAME}
22   PYTHON3_ONLY
23   )
24
25 rift_python_install_tree(
26   FILES
27     rift/mano/config_agent/operdata.py
28     rift/mano/config_agent/__init__.py
29     rift/mano/config_agent/config.py
30   COMPONENT ${PKG_LONG_NAME}
31   PYTHON3_ONLY
32   )
33
34
35 # Subscribers
36 rift_python_install_tree(
37   FILES
38     rift/mano/dts/__init__.py
39     rift/mano/dts/core.py
40     rift/mano/dts/subscriber/__init__.py
41     rift/mano/dts/subscriber/core.py
42     rift/mano/dts/subscriber/store.py
43     rift/mano/dts/subscriber/ns_subscriber.py
44     rift/mano/dts/subscriber/vnf_subscriber.py
45     rift/mano/dts/subscriber/ro_account.py
46   COMPONENT ${PKG_LONG_NAME}
47   PYTHON3_ONLY
48   )
49
50 # RPCs
51 rift_python_install_tree(
52   FILES
53     rift/mano/dts/rpc/__init__.py
54     rift/mano/dts/rpc/core.py
55   COMPONENT ${PKG_LONG_NAME}
56   PYTHON3_ONLY
57   )
58
59 # Downloaders
60 rift_python_install_tree(
61   FILES
62     rift/downloader/__init__.py
63     rift/downloader/base.py
64     rift/downloader/url.py
65   COMPONENT ${PKG_LONG_NAME}
66   PYTHON3_ONLY
67   )
68
69 rift_python_install_tree(
70   FILES
71     rift/mano/config_data/__init__.py
72     rift/mano/config_data/config.py
73   COMPONENT ${PKG_LONG_NAME}
74   PYTHON3_ONLY
75   )
76
77 rift_python_install_tree(
78   FILES
79     rift/mano/tosca_translator/__init__.py
80     rift/mano/tosca_translator/translator_logging.conf
81     rift/mano/tosca_translator/compare_desc.py
82     rift/mano/tosca_translator/shell.py
83     rift/mano/tosca_translator/rwmano/tosca_translator.py
84     rift/mano/tosca_translator/rwmano/translate_inputs.py
85     rift/mano/tosca_translator/rwmano/__init__.py
86     rift/mano/tosca_translator/rwmano/translate_outputs.py
87     rift/mano/tosca_translator/rwmano/translate_node_templates.py
88     rift/mano/tosca_translator/rwmano/syntax/mano_parameter.py
89     rift/mano/tosca_translator/rwmano/syntax/mano_resource.py
90     rift/mano/tosca_translator/rwmano/syntax/__init__.py
91     rift/mano/tosca_translator/rwmano/syntax/mano_template.py
92     rift/mano/tosca_translator/rwmano/syntax/mano_output.py
93     rift/mano/tosca_translator/rwmano/tosca/tosca_nfv_vnf.py
94     rift/mano/tosca_translator/rwmano/tosca/__init__.py
95     rift/mano/tosca_translator/rwmano/tosca/tosca_config_primitives.py
96     rift/mano/tosca_translator/rwmano/tosca/tosca_network_port.py
97     rift/mano/tosca_translator/rwmano/tosca/tosca_network_network.py
98     rift/mano/tosca_translator/rwmano/tosca/tosca_compute.py
99     rift/mano/tosca_translator/rwmano/tosca/tosca_scaling_group.py
100     rift/mano/tosca_translator/rwmano/tosca/tosca_initial_config.py
101     rift/mano/tosca_translator/common/__init__.py
102     rift/mano/tosca_translator/common/utils.py
103     rift/mano/tosca_translator/common/exception.py
104     rift/mano/tosca_translator/custom/__init__.py
105     rift/mano/tosca_translator/custom/rwmano/__init__.py
106     rift/mano/tosca_translator/conf/translator.conf
107     rift/mano/tosca_translator/conf/__init__.py
108     rift/mano/tosca_translator/conf/config.py
109   COMPONENT ${PKG_LONG_NAME}
110   PYTHON3_ONLY
111   )
112
113 rift_python_install_tree(
114   FILES
115     rift/mano/utils/__init.py__
116     rift/mano/utils/compare_desc.py
117     rift/mano/utils/juju_api.py
118   COMPONENT ${PKG_LONG_NAME}
119   PYTHON3_ONLY
120   )
121
122 rift_python_install_tree(
123   FILES
124     rift/mano/yang_translator/__init__.py
125     rift/mano/yang_translator/translator_logging.conf
126     rift/mano/yang_translator/shell.py
127     rift/mano/yang_translator/compare_desc.py
128     rift/mano/yang_translator/conf/config.py
129     rift/mano/yang_translator/conf/translator.conf
130     rift/mano/yang_translator/conf/__init__.py
131     rift/mano/yang_translator/rwmano/yang_translator.py
132     rift/mano/yang_translator/rwmano/translate_descriptors.py
133     rift/mano/yang_translator/rwmano/__init__.py
134     rift/mano/yang_translator/rwmano/yang/yang_vld.py
135     rift/mano/yang_translator/rwmano/yang/yang_vdu.py
136     rift/mano/yang_translator/rwmano/yang/yang_vnfd.py
137     rift/mano/yang_translator/rwmano/yang/yang_nsd.py
138     rift/mano/yang_translator/rwmano/yang/__init__.py
139     rift/mano/yang_translator/rwmano/syntax/tosca_template.py
140     rift/mano/yang_translator/rwmano/syntax/tosca_resource.py
141     rift/mano/yang_translator/rwmano/syntax/__init__.py
142     rift/mano/yang_translator/custom/__init__.py
143     rift/mano/yang_translator/custom/rwmano/__init__.py
144     rift/mano/yang_translator/common/utils.py
145     rift/mano/yang_translator/common/exception.py
146     rift/mano/yang_translator/common/__init__.py
147   COMPONENT ${PKG_LONG_NAME}
148   PYTHON3_ONLY
149   )
150
151 set(TRANSLATOR_SCRIPTS
152   ${CMAKE_CURRENT_SOURCE_DIR}/rift/mano/tosca_translator/tosca-translator
153   ${CMAKE_CURRENT_SOURCE_DIR}/rift/mano/yang_translator/yang-translator)
154
155 install(
156   FILES ${TRANSLATOR_SCRIPTS}
157     DESTINATION
158       usr/bin
159     COMPONENT ${PKG_LONG_NAME}
160     )
161
162 set(subdirs
163   test
164   )
165
166 rift_add_subdirs(SUBDIR_LIST ${subdirs})