mirror of
https://github.com/13hannes11/toolbx-tuner.git
synced 2024-09-03 23:21:00 +02:00
add meson build options to build for flathub
This commit is contained in:
@@ -3,6 +3,7 @@ option(
|
||||
type: 'combo',
|
||||
choices: [
|
||||
'default',
|
||||
'flathub',
|
||||
'development'
|
||||
],
|
||||
value: 'default',
|
||||
|
||||
@@ -25,12 +25,19 @@ if get_option('profile') == 'default'
|
||||
cargo_options += [ '--release' ]
|
||||
rust_target = 'release'
|
||||
message('Building in release mode')
|
||||
else
|
||||
cargo_env = [ 'CARGO_HOME=' + meson.project_build_root() / 'cargo-home' ]
|
||||
endif
|
||||
if get_option('profile') == 'flathub'
|
||||
cargo_options += [ '--release', '--offline' ]
|
||||
rust_target = 'release'
|
||||
message('Building in flathub release mode')
|
||||
cargo_env = [ 'CARGO_HOME=/run/build/toolbx-tuner/cargo' ]
|
||||
endif
|
||||
if get_option('profile') == 'development'
|
||||
rust_target = 'debug'
|
||||
message('Building in debug mode')
|
||||
endif
|
||||
|
||||
cargo_env = [ 'CARGO_HOME=' + meson.project_build_root() / 'cargo-home' ]
|
||||
endif
|
||||
|
||||
cargo_build = custom_target(
|
||||
'cargo-build',
|
||||
|
||||
Reference in New Issue
Block a user