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