xref: /openbmc/phosphor-dbus-interfaces/gen/xyz/openbmc_project/State/BMC/meson.build (revision 1adb43eea23e611696c00c757840f1ce22712d76)
1# Generated file; do not modify.
2subdir('Redundancy')
3
4sdbusplus_current_path = 'xyz/openbmc_project/State/BMC'
5
6generated_sources += custom_target(
7    'xyz/openbmc_project/State/BMC__cpp'.underscorify(),
8    input: [
9        '../../../../../yaml/xyz/openbmc_project/State/BMC.errors.yaml',
10        '../../../../../yaml/xyz/openbmc_project/State/BMC.interface.yaml',
11    ],
12    output: [
13        'error.cpp',
14        'error.hpp',
15        'common.hpp',
16        'server.hpp',
17        'server.cpp',
18        'aserver.hpp',
19        'client.hpp',
20    ],
21    depend_files: sdbusplusplus_depfiles,
22    command: [
23        sdbuspp_gen_meson_prog,
24        '--command',
25        'cpp',
26        '--output',
27        meson.current_build_dir(),
28        '--tool',
29        sdbusplusplus_prog,
30        '--directory',
31        meson.current_source_dir() / '../../../../../yaml',
32        'xyz/openbmc_project/State/BMC',
33    ],
34    install: should_generate_cpp,
35    install_dir: [
36        false,
37        get_option('includedir') / sdbusplus_current_path,
38        get_option('includedir') / sdbusplus_current_path,
39        get_option('includedir') / sdbusplus_current_path,
40        false,
41        get_option('includedir') / sdbusplus_current_path,
42        get_option('includedir') / sdbusplus_current_path,
43    ],
44    build_by_default: should_generate_cpp,
45)
46
47generated_markdown += custom_target(
48    'xyz/openbmc_project/State/BMC/Redundancy__markdown'.underscorify(),
49    input: [
50        '../../../../../yaml/xyz/openbmc_project/State/BMC/Redundancy.interface.yaml',
51    ],
52    output: ['Redundancy.md'],
53    depend_files: sdbusplusplus_depfiles,
54    command: [
55        sdbuspp_gen_meson_prog,
56        '--command',
57        'markdown',
58        '--output',
59        meson.current_build_dir(),
60        '--tool',
61        sdbusplusplus_prog,
62        '--directory',
63        meson.current_source_dir() / '../../../../../yaml',
64        'xyz/openbmc_project/State/BMC/Redundancy',
65    ],
66    install: should_generate_markdown,
67    install_dir: [inst_markdown_dir / sdbusplus_current_path],
68    build_by_default: should_generate_markdown,
69)
70
71