spot/meson.build

26 lines
564 B
Meson
Raw Permalink Normal View History

2024-11-13 16:41:51 +01:00
project(
'spot',
version: '0.5.0',
meson_version: '>= 0.59.0',
default_options: ['warning_level=2', 'buildtype=release'],
)
subdir('data')
subdir('po')
subdir('src')
flatpak_cargo_generator = find_program(meson.project_source_root() / 'build-aux/flatpak-cargo-generator.py')
cargo_sources = custom_target(
'cargo-update-sources',
build_by_default: false,
output: 'cargo-sources.json',
input: meson.project_source_root() / 'Cargo.lock',
command: [
flatpak_cargo_generator,
'@INPUT@',
'-o', '@SOURCE_ROOT@/cargo-sources.json'
]
)