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