Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
path: |
.vcpkg
.vcpkg_bincache
.vcpkg_cache
key: ${{ runner.os }}-android-bincache

- name: Compile gkNextRenderer
Expand All @@ -60,5 +61,6 @@ jobs:
path: |
.vcpkg
.vcpkg_bincache
.vcpkg_cache
key: ${{ steps.cache-vcpkg-restore.outputs.cache-primary-key }}

2 changes: 2 additions & 0 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
path: |
.vcpkg
.vcpkg_bincache
.vcpkg_cache
key: ${{ runner.os }}-ios-bincache

- name: Compile gkNextRenderer
Expand All @@ -63,6 +64,7 @@ jobs:
path: |
.vcpkg
.vcpkg_bincache
.vcpkg_cache
key: ${{ steps.cache-vcpkg-restore.outputs.cache-primary-key }}


2 changes: 2 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
path: |
.vcpkg
.vcpkg_bincache
.vcpkg_cache
key: ${{ runner.os }}-desktop-bincache

- name: Compile gkNextRenderer
Expand All @@ -58,6 +59,7 @@ jobs:
path: |
.vcpkg
.vcpkg_bincache
.vcpkg_cache
key: ${{ steps.cache-vcpkg-restore.outputs.cache-primary-key }}


2 changes: 2 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
path: |
.vcpkg
.vcpkg_bincache
.vcpkg_cache
key: ${{ runner.os }}-desktop-bincache

- name: Compile gkNextRenderer
Expand All @@ -63,6 +64,7 @@ jobs:
path: |
.vcpkg
.vcpkg_bincache
.vcpkg_cache
key: ${{ steps.cache-vcpkg-restore.outputs.cache-primary-key }}


2 changes: 2 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ jobs:
path: |
.vcpkg
.vcpkg_bincache
.vcpkg_cache
key: ${{ runner.os }}-desktop-bincache

- name: Setup MSBuild
Expand All @@ -63,4 +64,5 @@ jobs:
path: |
.vcpkg
.vcpkg_bincache
.vcpkg_cache
key: ${{ steps.cache-vcpkg-restore.outputs.cache-primary-key }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -369,3 +369,4 @@ src/ThirdParty/Streamline/
# Claude Code files
.claude/
lib/
.vcpkg_cache/
13 changes: 13 additions & 0 deletions vcpkg.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ $ScriptDir = $PSScriptRoot
$ProjectRoot = $ScriptDir
$DefaultVcpkgRoot = Join-Path $ProjectRoot ".vcpkg"
$VcpkgDefaultBinaryCache = Join-Path $ProjectRoot ".vcpkg_bincache"
$VcpkgDownloads = Join-Path $ProjectRoot ".vcpkg_cache/downloads"
$VcpkgRegistriesCache = Join-Path $ProjectRoot ".vcpkg_cache/registries"

# Set Environment Variables
$env:VCPKG_BINARY_SOURCES = "clear;files,$VcpkgDefaultBinaryCache,readwrite"
$env:VCPKG_DOWNLOADS = $VcpkgDownloads
$env:X_VCPKG_REGISTRIES_CACHE = $VcpkgRegistriesCache

# Configuration
$VcpkgGitRef = "2025.12.12"
Expand Down Expand Up @@ -37,6 +44,12 @@ foreach ($Arg in $AllArgs) {
if (-not (Test-Path $VcpkgDefaultBinaryCache)) {
New-Item -ItemType Directory -Path $VcpkgDefaultBinaryCache -Force | Out-Null
}
if (-not (Test-Path $VcpkgDownloads)) {
New-Item -ItemType Directory -Path $VcpkgDownloads -Force | Out-Null
}
if (-not (Test-Path $VcpkgRegistriesCache)) {
New-Item -ItemType Directory -Path $VcpkgRegistriesCache -Force | Out-Null
}

$VcpkgRoot = $env:VCPKG_ROOT
if ([string]::IsNullOrWhiteSpace($VcpkgRoot)) {
Expand Down
15 changes: 12 additions & 3 deletions vcpkg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,18 @@ init_variables() {
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROJECT_ROOT="$SCRIPT_DIR"
DEFAULT_VCPKG_ROOT="$PROJECT_ROOT/.vcpkg"
export VCPKG_DEFAULT_BINARY_CACHE="$PROJECT_ROOT/.vcpkg_bincache"
if [ ! -d "$VCPKG_DEFAULT_BINARY_CACHE" ]; then
mkdir -p "$VCPKG_DEFAULT_BINARY_CACHE"
export VCPKG_BINARY_SOURCES="clear;files,$PROJECT_ROOT/.vcpkg_bincache,readwrite"
export VCPKG_DOWNLOADS="$PROJECT_ROOT/.vcpkg_cache/downloads"
export X_VCPKG_REGISTRIES_CACHE="$PROJECT_ROOT/.vcpkg_cache/registries"

if [ ! -d "$PROJECT_ROOT/.vcpkg_bincache" ]; then
mkdir -p "$PROJECT_ROOT/.vcpkg_bincache"
fi
if [ ! -d "$VCPKG_DOWNLOADS" ]; then
mkdir -p "$VCPKG_DOWNLOADS"
fi
if [ ! -d "$X_VCPKG_REGISTRIES_CACHE" ]; then
mkdir -p "$X_VCPKG_REGISTRIES_CACHE"
fi
VCPKG_ROOT="${VCPKG_ROOT:-$DEFAULT_VCPKG_ROOT}"
VCPKG_EXE="$VCPKG_ROOT/vcpkg"
Expand Down