feat: update user configuration example and add development package support
- Enhanced the user.depot.toml.example file with additional comments and options for user-local preferences. - Bumped version from 0.35.0 to 0.35.1 in meson.build. - Introduced a new option for DEPOT_DEVELOPMENT_PACKAGE in meson_options.txt. - Added functions to handle the requested development package in build_options.rs. - Updated various builder files (autotools.rs, cmake.rs, custom.rs, meson.rs, perl.rs) to support passing build flags. - Implemented checks for the required development package during source builds in commands.rs and commands/build_cmd.rs. - Added tests to ensure the correct behavior of development package requirements and source build warnings. - Modified manual source handling in source/mod.rs to validate local manual sources before proceeding with builds. - Updated cargo build and test scripts to accept a new development package argument. - Added VSCode settings to disable automatic configuration on open.
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
if [ "$#" -ne 15 ]; then
|
||||
echo "usage: $0 <cargo> <src_root> <build_root> <profile> <release_flag> <build_static> <autotools_pkg> <cmake_pkg> <meson_pkg> <perl_pkg> <custom_pkg> <python_pkg> <rust_pkg> <makefile_pkg> <output>" >&2
|
||||
if [ "$#" -ne 16 ]; then
|
||||
echo "usage: $0 <cargo> <src_root> <build_root> <profile> <release_flag> <build_static> <autotools_pkg> <cmake_pkg> <meson_pkg> <perl_pkg> <custom_pkg> <python_pkg> <rust_pkg> <makefile_pkg> <development_pkg> <output>" >&2
|
||||
exit 2
|
||||
fi
|
||||
|
||||
@@ -20,7 +20,8 @@ custom_pkg="${11}"
|
||||
python_pkg="${12}"
|
||||
rust_pkg="${13}"
|
||||
makefile_pkg="${14}"
|
||||
output="${15}"
|
||||
development_pkg="${15}"
|
||||
output="${16}"
|
||||
|
||||
cargo_home="$build_root/cargo-home"
|
||||
cargo_target_dir="$build_root/cargo-target"
|
||||
@@ -38,6 +39,7 @@ export DEPOT_CUSTOM_PACKAGE="$custom_pkg"
|
||||
export DEPOT_PYTHON_PACKAGE="$python_pkg"
|
||||
export DEPOT_RUST_PACKAGE="$rust_pkg"
|
||||
export DEPOT_MAKEFILE_PACKAGE="$makefile_pkg"
|
||||
export DEPOT_DEVELOPMENT_PACKAGE="$development_pkg"
|
||||
|
||||
if [ "$release_flag" = "1" ]; then
|
||||
"$cargo_bin" build --locked --manifest-path "$src_root/Cargo.toml" --release
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
if [ "$#" -ne 14 ]; then
|
||||
echo "usage: $0 <cargo> <src_root> <build_root> <profile> <release_flag> <build_static> <autotools_pkg> <cmake_pkg> <meson_pkg> <perl_pkg> <custom_pkg> <python_pkg> <rust_pkg> <makefile_pkg>" >&2
|
||||
if [ "$#" -ne 15 ]; then
|
||||
echo "usage: $0 <cargo> <src_root> <build_root> <profile> <release_flag> <build_static> <autotools_pkg> <cmake_pkg> <meson_pkg> <perl_pkg> <custom_pkg> <python_pkg> <rust_pkg> <makefile_pkg> <development_pkg>" >&2
|
||||
exit 2
|
||||
fi
|
||||
|
||||
@@ -20,6 +20,7 @@ custom_pkg="${11}"
|
||||
python_pkg="${12}"
|
||||
rust_pkg="${13}"
|
||||
makefile_pkg="${14}"
|
||||
development_pkg="${15}"
|
||||
|
||||
cargo_home="$build_root/cargo-home"
|
||||
cargo_target_dir="$build_root/cargo-target"
|
||||
@@ -37,6 +38,7 @@ export DEPOT_CUSTOM_PACKAGE="$custom_pkg"
|
||||
export DEPOT_PYTHON_PACKAGE="$python_pkg"
|
||||
export DEPOT_RUST_PACKAGE="$rust_pkg"
|
||||
export DEPOT_MAKEFILE_PACKAGE="$makefile_pkg"
|
||||
export DEPOT_DEVELOPMENT_PACKAGE="$development_pkg"
|
||||
|
||||
if [ "$release_flag" = "1" ]; then
|
||||
exec "$cargo_bin" test --locked --manifest-path "$src_root/Cargo.toml" --profile "$profile"
|
||||
|
||||
Reference in New Issue
Block a user