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