Skip to content

Commit 25ac29a

Browse files
committed
Fix bootstrap triplets
1 parent 3b22b33 commit 25ac29a

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

CMakePresets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"cacheVariables": {
77
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
88
"VCPKG_MANIFEST_INSTALL": "OFF",
9-
"VCPKG_INSTALLED_DIR": "${sourceDir}/vcpkg_installed"
9+
"VCPKG_INSTALLED_DIR": "${sourceDir}/cpp/vcpkg_installed"
1010
}
1111
},
1212
{

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ dependencies = [
3535
geozero = { git = "https://github.com/georust/geozero.git", rev = "66583383b995925c3eef0a01cd5781b1d59e8209" }
3636

3737
[package.metadata.vcpkg.target]
38-
x86_64-pc-windows-msvc = { triplet = "x64-windows-static-vs2022" }
38+
x86_64-pc-windows-msvc = { triplet = "x64-windows-static-vs2022-release" }

justfile

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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
}
1212
PYTHON_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"
2729
VCPKG_DEFAULT_HOST_TRIPLET := VCPKG_DEFAULT_TRIPLET
2830

2931
cpp_vcpkg_root := env('VCPKG_ROOT', "../vcpkg")
@@ -35,13 +37,13 @@ export VCPKG_OVERLAY_PORTS := join(justfile_directory(), "cpp", "deps", "infra",
3537
cargo-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

Comments
 (0)