Merge "Bug 140"
[osm/SO.git] / rwlaunchpad / plugins / yang / CMakeLists.txt
1
2 #   Copyright 2016 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 ${PKG_LONG_NAME}
68   LIBRARIES
69     mano_yang_gen
70     rwcloud_yang_gen
71     rw_conman_yang_gen
72     rwconfig_agent_yang_gen
73     mano-types_yang_gen
74   DEPENDS
75     mano_yang
76     rwcloud_yang
77     rw_conman_yang
78     rwconfig_agent_yang
79     mano-types_yang
80 )
81