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