25 lines
564 B
Meson
25 lines
564 B
Meson
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'
|
|
]
|
|
)
|