First build
This commit is contained in:
parent
607b2032f9
commit
13d01dce14
6 changed files with 746 additions and 15 deletions
|
@ -23,14 +23,7 @@ run_command(
|
|||
cargo_options = [ '--manifest-path', meson.project_source_root() / 'Cargo.toml' ]
|
||||
cargo_options += [ '--target-dir', meson.project_build_root() / 'src' ]
|
||||
|
||||
if get_option('profile') == 'default'
|
||||
cargo_options += [ '--release' ]
|
||||
rust_target = 'release'
|
||||
message('Building in release mode')
|
||||
else
|
||||
rust_target = 'debug'
|
||||
message('Building in debug mode')
|
||||
endif
|
||||
rust_target = 'debug'
|
||||
|
||||
cargo_env = [ 'CARGO_HOME=' + meson.project_build_root() / 'cargo-home' ]
|
||||
|
||||
|
@ -42,7 +35,7 @@ custom_target(
|
|||
console: true,
|
||||
install: true,
|
||||
install_dir: bindir,
|
||||
depends: resources,
|
||||
# depends: resources,
|
||||
command: [
|
||||
'env',
|
||||
cargo_env,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue