blob: f2d2c452dc735fd9acfdf19f0b949c0aad013536 [file] [log] [blame]
Ramesh Iyyarbb410df2020-08-03 03:13:04 -05001# SPDX-License-Identifier: Apache-2.0
2
Patrick Williamsb8556162023-04-27 11:13:17 -05003common_hpp = custom_target(
4 'common.hpp',
5 command : [
6 sdbusplusplus_prog, '-r', meson.project_source_root(),
7 'interface',
8 'common-header',
9 'xyz.openbmc_project.Dump.Internal.Create',
10 ],
11 input : '../Create.interface.yaml',
12 capture : true,
13 output : 'common.hpp',
14 install : true,
15 install_dir: get_option('includedir') / 'xyz/openbmc_project/Dump/Internal/Create'
16 )
17
Ramesh Iyyarbb410df2020-08-03 03:13:04 -050018server_hpp = custom_target(
19 'server.hpp',
20 command : [
Patrick Williamsce836882021-10-01 16:09:35 -050021 sdbusplusplus_prog, '-r', meson.project_source_root(),
Ramesh Iyyarbb410df2020-08-03 03:13:04 -050022 'interface',
23 'server-header',
24 'xyz.openbmc_project.Dump.Internal.Create',
25 ],
26 input : '../Create.interface.yaml',
Patrick Williamsb8556162023-04-27 11:13:17 -050027 depends: common_hpp,
Ramesh Iyyarbb410df2020-08-03 03:13:04 -050028 capture : true,
29 output : 'server.hpp',
30 install : true,
31 install_dir: get_option('includedir') / 'xyz/openbmc_project/Dump/Internal/Create'
32 )
33
34server_cpp = custom_target(
35 'server.cpp',
36 command : [
Patrick Williamsce836882021-10-01 16:09:35 -050037 sdbusplusplus_prog, '-r', meson.project_source_root(),
Ramesh Iyyarbb410df2020-08-03 03:13:04 -050038 'interface',
39 'server-cpp',
40 'xyz.openbmc_project.Dump.Internal.Create'
41 ],
42 input : '../Create.interface.yaml',
43 depends : server_hpp,
44 capture : true,
45 output : 'server.cpp'
46 )