mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-30 18:13:53 +01:00
[fontations] Pass meson buildtype to cargo
This commit is contained in:
1 parent
1705723d7e
commit
f400d8b30c
1 file changed
+8
-1
@@ -10,6 +10,13 @@ hb_rs = rust.bindgen(
|
||||
|
||||
cargo = find_program('cargo')
|
||||
|
||||
buildtype = get_option('buildtype')
|
||||
if buildtype == 'release'
|
||||
cargo_args = ['--release']
|
||||
else
|
||||
cargo_args = []
|
||||
endif
|
||||
|
||||
harfbuzz_fontations = custom_target(
|
||||
'harfbuzz_fontations',
|
||||
input: ['lib.rs'],
|
||||
@@ -18,7 +25,7 @@ harfbuzz_fontations = custom_target(
|
||||
env: ['OUT_DIR=' + meson.current_build_dir()],
|
||||
command: [
|
||||
cargo, 'build',
|
||||
#'--release',
|
||||
] + cargo_args + [
|
||||
'--lib',
|
||||
'--target-dir', meson.current_build_dir(),
|
||||
'-Z', 'unstable-options',
|
||||
|
||||
Reference in new issue
Block a user