Debian Codegraph @

test cases/failing/110 nonsensical bindgen/meson.build

raw
1 # SPDX-License-Identifier: Apache-2.0
2 # Copyright © 2021 Intel Corporation
3
4 project('rustmod bindgen', 'c')
5
6 if not add_languages('rust', required: false)
7 error('MESON_SKIP_TEST test requires rust compiler')
8 endif
9
10 prog_bindgen = find_program('bindgen', required : false)
11 if not prog_bindgen.found()
12 error('MESON_SKIP_TEST bindgen not found')
13 endif
14
15 c_lib = static_library('clib', 'src/source.c')
16
17 import('unstable-rust').bindgen(
18 input : c_lib,
19 output : 'header.rs',
20 )