1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# SPDX-License-Identifier: EUPL-1.2
# SPDX-FileCopyrightText: 2022 Alyssa Ross <hi@alyssa.is>
project('start-vm', 'rust', 'c',
default_options : ['rust_std=2018', 'warning_level=3'])
add_project_arguments('-D_GNU_SOURCE', language : 'c')
c_lib = static_library('start-vm-c', 'net.c', 'net-util.c')
executable('start-vm', 'start-vm.rs', link_with : c_lib, install : true)
test('Rust unit tests', executable('start-vm-test', 'start-vm.rs',
rust_args : ['--test'],
link_with : c_lib))
subdir('tests')
|