Ramesh Iyyar | bb410df | 2020-08-03 03:13:04 -0500 | [diff] [blame^] | 1 | # SPDX-License-Identifier: Apache-2.0 |
| 2 | |
| 3 | sdbuscpp = find_program('sdbus++') |
| 4 | |
| 5 | server_hpp = custom_target( |
| 6 | 'server.hpp', |
| 7 | command : [ |
| 8 | sdbuscpp, '-r', meson.source_root(), |
| 9 | 'interface', |
| 10 | 'server-header', |
| 11 | 'xyz.openbmc_project.Dump.Internal.Create', |
| 12 | ], |
| 13 | input : '../Create.interface.yaml', |
| 14 | capture : true, |
| 15 | output : 'server.hpp', |
| 16 | install : true, |
| 17 | install_dir: get_option('includedir') / 'xyz/openbmc_project/Dump/Internal/Create' |
| 18 | ) |
| 19 | |
| 20 | server_cpp = custom_target( |
| 21 | 'server.cpp', |
| 22 | command : [ |
| 23 | sdbuscpp, '-r', meson.source_root(), |
| 24 | 'interface', |
| 25 | 'server-cpp', |
| 26 | 'xyz.openbmc_project.Dump.Internal.Create' |
| 27 | ], |
| 28 | input : '../Create.interface.yaml', |
| 29 | depends : server_hpp, |
| 30 | capture : true, |
| 31 | output : 'server.cpp' |
| 32 | ) |