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