xref: /openbmc/phosphor-dbus-interfaces/gen/xyz/openbmc_project/Sensor/Threshold/meson.build (revision 0e78828ce927548b4dd679e06fdaf2f294983289)
1# Generated file; do not modify.
2subdir('Critical')
3subdir('HardShutdown')
4subdir('PerformanceLoss')
5subdir('SoftShutdown')
6subdir('Warning')
7
8sdbusplus_current_path = 'xyz/openbmc_project/Sensor/Threshold'
9
10generated_sources += custom_target(
11    'xyz/openbmc_project/Sensor/Threshold__cpp'.underscorify(),
12    input: [
13        '../../../../../yaml/xyz/openbmc_project/Sensor/Threshold.errors.yaml',
14        '../../../../../yaml/xyz/openbmc_project/Sensor/Threshold.events.yaml',
15    ],
16    output: ['error.cpp', 'error.hpp', 'event.cpp', 'event.hpp'],
17    depend_files: sdbusplusplus_depfiles,
18    command: [
19        sdbuspp_gen_meson_prog,
20        '--command',
21        'cpp',
22        '--output',
23        meson.current_build_dir(),
24        '--tool',
25        sdbusplusplus_prog,
26        '--directory',
27        meson.current_source_dir() / '../../../../../yaml',
28        'xyz/openbmc_project/Sensor/Threshold',
29    ],
30    install: should_generate_cpp,
31    install_dir: [
32        false,
33        get_option('includedir') / sdbusplus_current_path,
34        false,
35        get_option('includedir') / sdbusplus_current_path,
36    ],
37    build_by_default: should_generate_cpp,
38)
39
40generated_markdown += custom_target(
41    'xyz/openbmc_project/Sensor/Threshold/Critical__markdown'.underscorify(),
42    input: [
43        '../../../../../yaml/xyz/openbmc_project/Sensor/Threshold/Critical.interface.yaml',
44    ],
45    output: ['Critical.md'],
46    depend_files: sdbusplusplus_depfiles,
47    command: [
48        sdbuspp_gen_meson_prog,
49        '--command',
50        'markdown',
51        '--output',
52        meson.current_build_dir(),
53        '--tool',
54        sdbusplusplus_prog,
55        '--directory',
56        meson.current_source_dir() / '../../../../../yaml',
57        'xyz/openbmc_project/Sensor/Threshold/Critical',
58    ],
59    install: should_generate_markdown,
60    install_dir: [inst_markdown_dir / sdbusplus_current_path],
61    build_by_default: should_generate_markdown,
62)
63
64generated_markdown += custom_target(
65    'xyz/openbmc_project/Sensor/Threshold/HardShutdown__markdown'.underscorify(),
66    input: [
67        '../../../../../yaml/xyz/openbmc_project/Sensor/Threshold/HardShutdown.interface.yaml',
68    ],
69    output: ['HardShutdown.md'],
70    depend_files: sdbusplusplus_depfiles,
71    command: [
72        sdbuspp_gen_meson_prog,
73        '--command',
74        'markdown',
75        '--output',
76        meson.current_build_dir(),
77        '--tool',
78        sdbusplusplus_prog,
79        '--directory',
80        meson.current_source_dir() / '../../../../../yaml',
81        'xyz/openbmc_project/Sensor/Threshold/HardShutdown',
82    ],
83    install: should_generate_markdown,
84    install_dir: [inst_markdown_dir / sdbusplus_current_path],
85    build_by_default: should_generate_markdown,
86)
87
88generated_markdown += custom_target(
89    'xyz/openbmc_project/Sensor/Threshold/PerformanceLoss__markdown'.underscorify(),
90    input: [
91        '../../../../../yaml/xyz/openbmc_project/Sensor/Threshold/PerformanceLoss.interface.yaml',
92    ],
93    output: ['PerformanceLoss.md'],
94    depend_files: sdbusplusplus_depfiles,
95    command: [
96        sdbuspp_gen_meson_prog,
97        '--command',
98        'markdown',
99        '--output',
100        meson.current_build_dir(),
101        '--tool',
102        sdbusplusplus_prog,
103        '--directory',
104        meson.current_source_dir() / '../../../../../yaml',
105        'xyz/openbmc_project/Sensor/Threshold/PerformanceLoss',
106    ],
107    install: should_generate_markdown,
108    install_dir: [inst_markdown_dir / sdbusplus_current_path],
109    build_by_default: should_generate_markdown,
110)
111
112generated_markdown += custom_target(
113    'xyz/openbmc_project/Sensor/Threshold/SoftShutdown__markdown'.underscorify(),
114    input: [
115        '../../../../../yaml/xyz/openbmc_project/Sensor/Threshold/SoftShutdown.interface.yaml',
116    ],
117    output: ['SoftShutdown.md'],
118    depend_files: sdbusplusplus_depfiles,
119    command: [
120        sdbuspp_gen_meson_prog,
121        '--command',
122        'markdown',
123        '--output',
124        meson.current_build_dir(),
125        '--tool',
126        sdbusplusplus_prog,
127        '--directory',
128        meson.current_source_dir() / '../../../../../yaml',
129        'xyz/openbmc_project/Sensor/Threshold/SoftShutdown',
130    ],
131    install: should_generate_markdown,
132    install_dir: [inst_markdown_dir / sdbusplus_current_path],
133    build_by_default: should_generate_markdown,
134)
135
136generated_markdown += custom_target(
137    'xyz/openbmc_project/Sensor/Threshold/Warning__markdown'.underscorify(),
138    input: [
139        '../../../../../yaml/xyz/openbmc_project/Sensor/Threshold/Warning.interface.yaml',
140    ],
141    output: ['Warning.md'],
142    depend_files: sdbusplusplus_depfiles,
143    command: [
144        sdbuspp_gen_meson_prog,
145        '--command',
146        'markdown',
147        '--output',
148        meson.current_build_dir(),
149        '--tool',
150        sdbusplusplus_prog,
151        '--directory',
152        meson.current_source_dir() / '../../../../../yaml',
153        'xyz/openbmc_project/Sensor/Threshold/Warning',
154    ],
155    install: should_generate_markdown,
156    install_dir: [inst_markdown_dir / sdbusplus_current_path],
157    build_by_default: should_generate_markdown,
158)
159
160