Ramesh Iyyar | bb410df | 2020-08-03 03:13:04 -0500 | [diff] [blame] | 1 | # SPDX-License-Identifier: Apache-2.0 |
| 2 | |
Patrick Williams | b855616 | 2023-04-27 11:13:17 -0500 | [diff] [blame] | 3 | common_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 Iyyar | bb410df | 2020-08-03 03:13:04 -0500 | [diff] [blame] | 18 | server_hpp = custom_target( |
| 19 | 'server.hpp', |
| 20 | command : [ |
Patrick Williams | ce83688 | 2021-10-01 16:09:35 -0500 | [diff] [blame] | 21 | sdbusplusplus_prog, '-r', meson.project_source_root(), |
Ramesh Iyyar | bb410df | 2020-08-03 03:13:04 -0500 | [diff] [blame] | 22 | 'interface', |
| 23 | 'server-header', |
| 24 | 'xyz.openbmc_project.Dump.Internal.Create', |
| 25 | ], |
| 26 | input : '../Create.interface.yaml', |
Patrick Williams | b855616 | 2023-04-27 11:13:17 -0500 | [diff] [blame] | 27 | depends: common_hpp, |
Ramesh Iyyar | bb410df | 2020-08-03 03:13:04 -0500 | [diff] [blame] | 28 | capture : true, |
| 29 | output : 'server.hpp', |
| 30 | install : true, |
| 31 | install_dir: get_option('includedir') / 'xyz/openbmc_project/Dump/Internal/Create' |
| 32 | ) |
| 33 | |
| 34 | server_cpp = custom_target( |
| 35 | 'server.cpp', |
| 36 | command : [ |
Patrick Williams | ce83688 | 2021-10-01 16:09:35 -0500 | [diff] [blame] | 37 | sdbusplusplus_prog, '-r', meson.project_source_root(), |
Ramesh Iyyar | bb410df | 2020-08-03 03:13:04 -0500 | [diff] [blame] | 38 | '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 | ) |