xref: /openbmc/phosphor-dbus-interfaces/gen/xyz/openbmc_project/Sensor/Threshold/meson.build (revision 7f154004885f4e98bd8d0aa6f66259c117b95a4c)
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: [
17        'error.cpp',
18        'error.hpp',
19        'event.cpp',
20        'event.hpp',
21    ],
22    depend_files: sdbusplusplus_depfiles,
23    command: [
24        sdbuspp_gen_meson_prog, '--command', 'cpp',
25        '--output', meson.current_build_dir(),
26        '--tool', sdbusplusplus_prog,
27        '--directory', 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: [ '../../../../../yaml/xyz/openbmc_project/Sensor/Threshold/Critical.interface.yaml',  ],
43    output: [ 'Critical.md' ],
44    depend_files: sdbusplusplus_depfiles,
45    command: [
46        sdbuspp_gen_meson_prog, '--command', 'markdown',
47        '--output', meson.current_build_dir(),
48        '--tool', sdbusplusplus_prog,
49        '--directory', meson.current_source_dir() / '../../../../../yaml',
50        'xyz/openbmc_project/Sensor/Threshold/Critical',
51    ],
52    install: should_generate_markdown,
53    install_dir: [inst_markdown_dir / sdbusplus_current_path],
54    build_by_default: should_generate_markdown,
55)
56
57generated_markdown += custom_target(
58    'xyz/openbmc_project/Sensor/Threshold/HardShutdown__markdown'.underscorify(),
59    input: [ '../../../../../yaml/xyz/openbmc_project/Sensor/Threshold/HardShutdown.interface.yaml',  ],
60    output: [ 'HardShutdown.md' ],
61    depend_files: sdbusplusplus_depfiles,
62    command: [
63        sdbuspp_gen_meson_prog, '--command', 'markdown',
64        '--output', meson.current_build_dir(),
65        '--tool', sdbusplusplus_prog,
66        '--directory', meson.current_source_dir() / '../../../../../yaml',
67        'xyz/openbmc_project/Sensor/Threshold/HardShutdown',
68    ],
69    install: should_generate_markdown,
70    install_dir: [inst_markdown_dir / sdbusplus_current_path],
71    build_by_default: should_generate_markdown,
72)
73
74generated_markdown += custom_target(
75    'xyz/openbmc_project/Sensor/Threshold/PerformanceLoss__markdown'.underscorify(),
76    input: [ '../../../../../yaml/xyz/openbmc_project/Sensor/Threshold/PerformanceLoss.interface.yaml',  ],
77    output: [ 'PerformanceLoss.md' ],
78    depend_files: sdbusplusplus_depfiles,
79    command: [
80        sdbuspp_gen_meson_prog, '--command', 'markdown',
81        '--output', meson.current_build_dir(),
82        '--tool', sdbusplusplus_prog,
83        '--directory', meson.current_source_dir() / '../../../../../yaml',
84        'xyz/openbmc_project/Sensor/Threshold/PerformanceLoss',
85    ],
86    install: should_generate_markdown,
87    install_dir: [inst_markdown_dir / sdbusplus_current_path],
88    build_by_default: should_generate_markdown,
89)
90
91generated_markdown += custom_target(
92    'xyz/openbmc_project/Sensor/Threshold/SoftShutdown__markdown'.underscorify(),
93    input: [ '../../../../../yaml/xyz/openbmc_project/Sensor/Threshold/SoftShutdown.interface.yaml',  ],
94    output: [ 'SoftShutdown.md' ],
95    depend_files: sdbusplusplus_depfiles,
96    command: [
97        sdbuspp_gen_meson_prog, '--command', 'markdown',
98        '--output', meson.current_build_dir(),
99        '--tool', sdbusplusplus_prog,
100        '--directory', meson.current_source_dir() / '../../../../../yaml',
101        'xyz/openbmc_project/Sensor/Threshold/SoftShutdown',
102    ],
103    install: should_generate_markdown,
104    install_dir: [inst_markdown_dir / sdbusplus_current_path],
105    build_by_default: should_generate_markdown,
106)
107
108generated_markdown += custom_target(
109    'xyz/openbmc_project/Sensor/Threshold/Warning__markdown'.underscorify(),
110    input: [ '../../../../../yaml/xyz/openbmc_project/Sensor/Threshold/Warning.interface.yaml',  ],
111    output: [ 'Warning.md' ],
112    depend_files: sdbusplusplus_depfiles,
113    command: [
114        sdbuspp_gen_meson_prog, '--command', 'markdown',
115        '--output', meson.current_build_dir(),
116        '--tool', sdbusplusplus_prog,
117        '--directory', meson.current_source_dir() / '../../../../../yaml',
118        'xyz/openbmc_project/Sensor/Threshold/Warning',
119    ],
120    install: should_generate_markdown,
121    install_dir: [inst_markdown_dir / sdbusplus_current_path],
122    build_by_default: should_generate_markdown,
123)
124
125