1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
Description: Allow build with debian crates
Author: Matthias Geiger <werdahias@debian.org>
Forwarded: not-needed
Last-Update: 2025-04-10
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -8,3 +8,7 @@
value: 'default',
description: 'The build profile for Bustle. One of "default" or "development".'
)
+option(
+ 'host_arch',
+ type: 'string',
+)
--- a/src/meson.build
+++ b/src/meson.build
@@ -30,7 +30,6 @@
message('Building in debug mode')
endif
-cargo_env = [ 'CARGO_HOME=' + meson.project_build_root() / 'cargo-home' ]
cargo_build = custom_target(
'cargo-build',
@@ -43,10 +42,9 @@
depends: resources,
command: [
'env',
- cargo_env,
cargo, 'build',
cargo_options,
'&&',
- 'cp', 'src' / rust_target / meson.project_name(), '@OUTPUT@',
+ 'cp', 'src' / get_option('host_arch') / 'release' / meson.project_name(), '@OUTPUT@',
]
)
|