@@ -4,10 +4,10 @@ VCPKG_DEFAULT_TRIPLET := if os_family() == "windows" {
44 " x64-windows-static-vs2022"
55 } else if os () == " macos" {
66 if arch () == " aarch64" {
7- " arm64-osx-release "
8- } else { " x64-osx-release " }
7+ " arm64-osx"
8+ } else { " x64-osx" }
99 } else {
10- " x64-linux-release "
10+ " x64-linux"
1111 }
1212PYTHON_EXE := if os_family () == " windows" {
1313 " python.exe"
@@ -24,6 +24,8 @@ cmake_preset := if os_family() == "windows" {
2424} else {
2525 " linux"
2626}
27+
28+ RUST_TRIPLET := VCPKG_DEFAULT_TRIPLET + " -release"
2729VCPKG_DEFAULT_HOST_TRIPLET := VCPKG_DEFAULT_TRIPLET
2830
2931cpp_vcpkg_root := env (' VCPKG_ROOT' , " ../vcpkg" )
@@ -35,13 +37,13 @@ export VCPKG_OVERLAY_PORTS := join(justfile_directory(), "cpp", "deps", "infra",
3537cargo-config-gen :
3638 mkdir -p .cargo
3739 cp infra-rs/ .cargo/ config.toml.in .cargo/ config.toml
38- sd @CARGO_VCPKG_TRIPLET@ {{ VCPKG_DEFAULT_TRIPLET}} .cargo/ config.toml
40+ sd @CARGO_VCPKG_TRIPLET@ {{ VCPKG_DEFAULT_TRIPLET}} -release .cargo/ config.toml
3941 sd @PYTHON_EXE@ {{ PYTHON_EXE}} .cargo/ config.toml
4042
41- bootstrap $ VCPKG_ROOT = rust_vcpkg_root $ VCPKG_FEATURE_FLAGS = " -manifestmode" : cargo-config-gen
42- echo " Bootstrapping vcpkg:{{ VCPKG_DEFAULT_TRIPLET }} ..."
43+ bootstrap $ VCPKG_ROOT = rust_vcpkg_root $ VCPKG_DEFAULT_HOST_TRIPLET = RUST_TRIPLET : cargo-config-gen
44+ echo " Bootstrapping vcpkg:{{ RUST_TRIPLET }} ..."
4345 cargo vcpkg -v build
44- - cp target/ vcpkg/ installed/ x64 -windows-static-vs2022 / lib/ gdal.lib target/ vcpkg/ installed/ x64 -windows-static-vs2022 / lib/ gdal_i.lib
46+ - cp target/ vcpkg/ installed/ x64 -windows-static-vs2022 -release / lib/ gdal.lib target/ vcpkg/ installed/ x64 -windows-static-vs2022 -release / lib/ gdal_i.lib
4547 fd --base-directory target/ vcpkg/ installed -g gdal.pc --exec sd -F -- ' -l-framework' ' -framework'
4648 - mkdir -p target/ data && mkdir -p target/ debug && mkdir -p target/ release
4749 - mkdir -p ./ python/ geodynamix.data/ data/ share/ geodynamix/
0 commit comments