xref: /openbmc/phosphor-dbus-interfaces/gen/xyz/openbmc_project/State/BMC/meson.build (revision 4c5876f0f69c06b47c931e3224c1c34b126623b5)
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.events.yaml',
11        '../../../../../yaml/xyz/openbmc_project/State/BMC.interface.yaml',
12    ],
13    output: [
14        'error.cpp',
15        'error.hpp',
16        'event.cpp',
17        'event.hpp',
18        'common.hpp',
19        'server.hpp',
20        'server.cpp',
21        'aserver.hpp',
22        'client.hpp',
23    ],
24    depend_files: sdbusplusplus_depfiles,
25    command: [
26        sdbuspp_gen_meson_prog,
27        '--command',
28        'cpp',
29        '--output',
30        meson.current_build_dir(),
31        '--tool',
32        sdbusplusplus_prog,
33        '--directory',
34        meson.current_source_dir() / '../../../../../yaml',
35        'xyz/openbmc_project/State/BMC',
36    ],
37    install: should_generate_cpp,
38    install_dir: [
39        false,
40        get_option('includedir') / sdbusplus_current_path,
41        false,
42        get_option('includedir') / sdbusplus_current_path,
43        get_option('includedir') / sdbusplus_current_path,
44        get_option('includedir') / sdbusplus_current_path,
45        false,
46        get_option('includedir') / sdbusplus_current_path,
47        get_option('includedir') / sdbusplus_current_path,
48    ],
49    build_by_default: should_generate_cpp,
50)
51
52generated_markdown += custom_target(
53    'xyz/openbmc_project/State/BMC/Redundancy__markdown'.underscorify(),
54    input: [
55        '../../../../../yaml/xyz/openbmc_project/State/BMC/Redundancy.interface.yaml',
56    ],
57    output: ['Redundancy.md'],
58    depend_files: sdbusplusplus_depfiles,
59    command: [
60        sdbuspp_gen_meson_prog,
61        '--command',
62        'markdown',
63        '--output',
64        meson.current_build_dir(),
65        '--tool',
66        sdbusplusplus_prog,
67        '--directory',
68        meson.current_source_dir() / '../../../../../yaml',
69        'xyz/openbmc_project/State/BMC/Redundancy',
70    ],
71    install: should_generate_markdown,
72    install_dir: [inst_markdown_dir / sdbusplus_current_path],
73    build_by_default: should_generate_markdown,
74)
75
76