meson: build tests, bins and examples

Best to build as much as possible so we can detect build breakage
earlier and we won't have to build tests when running them.
This commit is contained in:
Guillaume Desmottes 2020-01-15 12:36:32 +05:30
parent 7a4fea8669
commit d98e76529d

View file

@ -29,8 +29,9 @@ env['PKG_CONFIG_PATH'] = ':'.join(pkg_config_path)
if command == 'build':
# cargo build
ext = sys.argv[7]
cargo_cmd = ['cargo', 'build', '--manifest-path',
os.path.join(meson_current_source_dir, 'Cargo.toml'),
cargo_cmd = ['cargo', 'build', '--all-targets',
'--manifest-path', os.path.join(
meson_current_source_dir, 'Cargo.toml'),
'--workspace']
if target == 'release':
cargo_cmd.append('--release')