update from RIFT as of 696b75d2fe9fb046261b08c616f1bcf6c0b54a9b second try
[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   )
31
32 ##
33 # Yang targets
34 ##
35 rift_generate_python_log_yang(
36     LOG_CATEGORY_NAME rw-mano-log
37     START_EVENT_ID 65000
38     OUT_YANG_FILE_VAR rw_mano_log_file
39     )
40
41 rift_generate_python_log_yang(
42     LOG_CATEGORY_NAME rw-monitor-log
43     START_EVENT_ID 64000
44     OUT_YANG_FILE_VAR rw_monitor_log_file
45     )
46
47 rift_generate_python_log_yang(
48     LOG_CATEGORY_NAME rw-mon-params-log
49     START_EVENT_ID 67000
50     OUT_YANG_FILE_VAR rw_mon_params_log_file
51     )
52
53 rift_generate_python_log_yang(
54     LOG_CATEGORY_NAME rw-resource-mgr-log
55     START_EVENT_ID 69000
56     OUT_YANG_FILE_VAR rw_resource_mgr_log_file
57     )
58
59 rift_add_yang_target(
60   TARGET rwlaunchpad_yang
61   YANG_FILES
62     ${source_yang_files}
63     ${rw_mano_log_file}
64     ${rw_monitor_log_file}
65     ${rw_mon_params_log_file}
66     ${rw_resource_mgr_log_file}
67   COMPONENT ${INSTALL_COMPONENT}
68   LIBRARIES
69     mano_yang_gen
70     rwcloud_yang_gen
71     rwro_account_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     rwro_account_yang
80     rw_conman_yang
81     rwconfig_agent_yang
82     mano-types_yang
83     rwprojectmano_yang
84     # Added to make sure that the target is built,
85     # Not required b mano yang
86     rw_project_person_yang
87   ASSOCIATED_FILES
88     rw-pkg-mgmt.role.xml
89     rw-staging-mgmt.role.xml
90     rw-image-mgmt.role.xml
91 )
92
93 rift_add_yang_target(
94   TARGET rw_project_person_yang
95   YANG_FILES
96     rw-project-person-db.yang
97   COMPONENT ${INSTALL_COMPONENT}
98   LIBRARIES
99     rwprojectmano_yang_gen
100   DEPENDS
101     rwprojectmano_yang
102   ASSOCIATED_FILES
103     rw-launchpad.role.xml
104 )