Skip to content

Commit

Permalink
Just import for vcpkg building
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkvdb committed Feb 19, 2025
1 parent 4d68c5d commit 3f0e65c
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions vcpkg.just
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# detect the vcpkg triplet based on the system information
windows_triplet := "x64-windows-static"
VCPKG_DEFAULT_TRIPLET := if os_family() == "windows" {
windows_triplet
} else if os() == "macos" {
if arch() == "aarch64" {
"arm64-osx"
} else { "x64-osx" }
} else {
"x64-linux"
}

cmake_preset := if os_family() == "windows" {
"windows"
} else if os() == "macos" {
if arch() == "aarch64" {
"mac-arm"
} else { "mac-intel" }
} else {
"linux"
}

VCPKG_DEFAULT_HOST_TRIPLET := VCPKG_DEFAULT_TRIPLET
vcpkg_root := env('VCPKG_ROOT', join(justfile_directory(), "..", "vcpkg"))

export VCPKG_OVERLAY_TRIPLETS := join(source_directory(), "vcpkg_overlay", "triplets")
export VCPKG_OVERLAY_PORTS := join(source_directory(), "vcpkg_overlay", "ports")

git_status_clean:
git diff --quiet --exit-code

0 comments on commit 3f0e65c

Please sign in to comment.