diff --git a/meson.options b/meson.options index 1a054cfa..25860d47 100644 --- a/meson.options +++ b/meson.options @@ -10,14 +10,6 @@ option( value: 'default', description: 'The build profile for Fractal. One of "default", "beta", "development" or "hack".' ) -option( - 'sandboxed-build', - type : 'boolean', - value : false, - description: 'Whether the build happens in a sandbox.' + - 'When that is the case, cargo will not be able to download the dependencies during' + - 'the build so they are assumed to be in `{meson.project_source_root()}/cargo`.' -) option( 'disable-glycin-sandbox', type : 'boolean', diff --git a/src/meson.build b/src/meson.build index 5a30bab3..d9a0fde0 100644 --- a/src/meson.build +++ b/src/meson.build @@ -40,12 +40,7 @@ else message('Building in release mode') endif -if get_option('sandboxed-build') - # This is the path used by flatpak-cargo-generator in flatpak-builder-tools - cargo_env = [ 'CARGO_HOME=' + meson.project_source_root() / 'cargo' ] -else - cargo_env = [ 'CARGO_HOME=' + meson.project_build_root() / 'cargo-home' ] -endif +cargo_env = [ 'CARGO_HOME=' + meson.project_build_root() / 'cargo-home' ] custom_target( 'cargo-build',