meson fmt
This commit is contained in:
parent
a8453e6e3d
commit
59eba426d2
2 changed files with 31 additions and 18 deletions
26
meson.build
26
meson.build
|
@ -54,16 +54,17 @@ endif
|
|||
cargo = find_program('cargo')
|
||||
cargo_env = environment()
|
||||
cargo_env.set('MESON_BUILD_ROOT', meson.project_build_root())
|
||||
cargo_env.append('RUSTFLAGS', '-L ' + fs.parent(audrey_c.full_path()), separator: ' ')
|
||||
cargo_env.append(
|
||||
'RUSTFLAGS',
|
||||
'-L ' + fs.parent(audrey_c.full_path()),
|
||||
separator: ' ',
|
||||
)
|
||||
|
||||
custom_target(
|
||||
'cargo-build',
|
||||
build_by_default: true,
|
||||
build_always_stale: true,
|
||||
depends: [
|
||||
audrey_c,
|
||||
blueprints,
|
||||
],
|
||||
depends: [audrey_c, blueprints],
|
||||
console: true,
|
||||
# means nothing (always stale and uncopied), we can't cp since env: drops the /bin/sh wrapper
|
||||
output: meson.project_name(),
|
||||
|
@ -71,17 +72,12 @@ custom_target(
|
|||
cargo,
|
||||
'build',
|
||||
rust_args,
|
||||
'--manifest-path', meson.project_source_root() / 'Cargo.toml',
|
||||
'--target-dir', meson.project_build_root() / 'cargo-target',
|
||||
'--manifest-path',
|
||||
meson.project_source_root() / 'Cargo.toml',
|
||||
'--target-dir',
|
||||
meson.project_build_root() / 'cargo-target',
|
||||
],
|
||||
env: cargo_env,
|
||||
)
|
||||
|
||||
run_target(
|
||||
'clippy',
|
||||
command: [
|
||||
cargo,
|
||||
'clippy',
|
||||
],
|
||||
env: cargo_env,
|
||||
)
|
||||
run_target('clippy', command: [cargo, 'clippy'], env: cargo_env)
|
||||
|
|
|
@ -1,7 +1,19 @@
|
|||
blueprints = custom_target(
|
||||
'blueprints',
|
||||
input: files('play_queue.blp', 'play_queue_song.blp', 'playbar.blp', 'setup.blp', 'window.blp'),
|
||||
output: ['play_queue.ui', 'play_queue_song.ui', 'playbar.ui', 'setup.ui', 'window.ui'],
|
||||
input: files(
|
||||
'play_queue.blp',
|
||||
'play_queue_song.blp',
|
||||
'playbar.blp',
|
||||
'setup.blp',
|
||||
'window.blp',
|
||||
),
|
||||
output: [
|
||||
'play_queue.ui',
|
||||
'play_queue_song.ui',
|
||||
'playbar.ui',
|
||||
'setup.ui',
|
||||
'window.ui',
|
||||
],
|
||||
command: [
|
||||
find_program('blueprint-compiler'),
|
||||
'batch-compile',
|
||||
|
@ -11,4 +23,9 @@ blueprints = custom_target(
|
|||
],
|
||||
)
|
||||
|
||||
removeme = gnome.compile_resources('audrey-resources', 'audrey.gresource.xml', c_name: 'audrey', dependencies: blueprints)
|
||||
removeme = gnome.compile_resources(
|
||||
'audrey-resources',
|
||||
'audrey.gresource.xml',
|
||||
c_name: 'audrey',
|
||||
dependencies: blueprints,
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue