Adriana Kobylak | 113492e | 2020-05-05 13:45:45 -0500 | [diff] [blame] | 1 | image_error_hpp = custom_target( |
| 2 | 'error.hpp', |
| 3 | capture: true, |
| 4 | command: [ |
Patrick Williams | 4026702 | 2021-08-26 16:48:42 -0500 | [diff] [blame] | 5 | sdbusplusplus_prog, |
Lei YU | 3d8ab81 | 2021-12-24 10:35:47 +0800 | [diff] [blame] | 6 | '-r', meson.project_source_root(), |
Adriana Kobylak | 113492e | 2020-05-05 13:45:45 -0500 | [diff] [blame] | 7 | 'error', |
| 8 | 'exception-header', |
| 9 | 'xyz.openbmc_project.Software.Image', |
| 10 | ], |
| 11 | input: '../Image.errors.yaml', |
| 12 | install: true, |
| 13 | install_dir: get_option('includedir') / 'xyz/openbmc_project/Software/Image', |
| 14 | output: 'error.hpp', |
| 15 | ) |
| 16 | |
| 17 | image_error_cpp = custom_target( |
| 18 | 'error.cpp', |
| 19 | capture: true, |
| 20 | command: [ |
Patrick Williams | 4026702 | 2021-08-26 16:48:42 -0500 | [diff] [blame] | 21 | sdbusplusplus_prog, |
Lei YU | 3d8ab81 | 2021-12-24 10:35:47 +0800 | [diff] [blame] | 22 | '-r', meson.project_source_root(), |
Adriana Kobylak | 113492e | 2020-05-05 13:45:45 -0500 | [diff] [blame] | 23 | 'error', |
| 24 | 'exception-cpp', |
| 25 | 'xyz.openbmc_project.Software.Image', |
| 26 | ], |
| 27 | input: '../Image.errors.yaml', |
| 28 | output: 'error.cpp', |
| 29 | ) |