cbdfcd014de5fd3c6f9d5c7baf1875ff68a90452
[osm/SO.git] / rwlaunchpad / plugins / yang / CMakeLists.txt
1
2 #   Copyright 2016-2017 RIFT.IO Inc
3 #
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
7 #
8 #       http://www.apache.org/licenses/LICENSE-2.0
9 #
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.
15 #
16 # Author(s): Tom Seidenberg
17 # Creation Date: 2014/04/08
18
19
20 set(source_yang_files
21   rw-launchpad.yang
22   rw-monitor.yang
23   rw-nsm.yang
24   rw-resource-mgr.yang
25   rw-vnfm.yang
26   rw-vns.yang
27   rw-image-mgmt.yang
28   rw-pkg-mgmt.yang
29   rw-staging-mgmt.yang
30   rw-project-person-db.yang
31   )
32
33 ##
34 # Yang targets
35 ##
36 rift_generate_python_log_yang(
37     LOG_CATEGORY_NAME rw-mano-log
38     START_EVENT_ID 65000
39     OUT_YANG_FILE_VAR rw_mano_log_file
40     )
41
42 rift_generate_python_log_yang(
43     LOG_CATEGORY_NAME rw-monitor-log
44     START_EVENT_ID 64000
45     OUT_YANG_FILE_VAR rw_monitor_log_file
46     )
47
48 rift_generate_python_log_yang(
49     LOG_CATEGORY_NAME rw-mon-params-log
50     START_EVENT_ID 67000
51     OUT_YANG_FILE_VAR rw_mon_params_log_file
52     )
53
54 rift_generate_python_log_yang(
55     LOG_CATEGORY_NAME rw-resource-mgr-log
56     START_EVENT_ID 69000
57     OUT_YANG_FILE_VAR rw_resource_mgr_log_file
58     )
59
60 rift_add_yang_target(
61   TARGET rwlaunchpad_yang
62   YANG_FILES
63     ${source_yang_files}
64     ${rw_mano_log_file}
65     ${rw_monitor_log_file}
66     ${rw_mon_params_log_file}
67     ${rw_resource_mgr_log_file}
68   COMPONENT ${PKG_LONG_NAME}
69   LIBRARIES
70     mano_yang_gen
71     rwcloud_yang_gen
72     rw_conman_yang_gen
73     rwconfig_agent_yang_gen
74     mano-types_yang_gen
75     rwprojectmano_yang_gen
76   DEPENDS
77     mano_yang
78     rwcloud_yang
79     rw_conman_yang
80     rwconfig_agent_yang
81     mano-types_yang
82     rwprojectmano_yang
83 )