test cases/rust/12 bindgen/cpp/meson.build
raw| 1 | # SPDX-License-Identifier: Apache-2.0 |
| 2 | # Copyright © 2021-2023 Intel Corporation |
| 3 | |
| 4 | fs = import('fs') |
| 5 | |
| 6 | cpp_header = fs.copyfile('../src/header.hpp', 'cpp_header.h') |
| 7 | |
| 8 | cpp_bind_override = rust.bindgen( |
| 9 | input : cpp_header, |
| 10 | output : 'generated-cpp.rs', |
| 11 | language : 'cpp', |
| 12 | ) |
| 13 | |
| 14 | cpp_exe2 = executable( |
| 15 | 'cpp_exe2', |
| 16 | structured_sources(['../src/cpp.rs', cpp_bind_override]), |
| 17 | link_with : cpp_lib, |
| 18 | ) |
| 19 | test('cpp-forced', cpp_exe2) |