Skip to content

Commit

Permalink
Renamed vcpkg directory to repository
Browse files Browse the repository at this point in the history
  • Loading branch information
negrutiu committed Aug 2, 2024
1 parent 1723b66 commit 4946085
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,13 @@ jobs:
uses: actions/checkout@v4
with:
repository: 'Microsoft/vcpkg'
path: vcpkg/clone
path: vcpkg/repository

- name: Setup vcpkg cache
uses: actions/cache@v4
with:
path: vcpkg/archives
key: ${{runner.os}}-${{matrix.arch}}-${{matrix.charset}}-${{hashFiles('vcpkg/overlay_*', 'vcpkg/clone/ports/curl', 'vcpkg/clone/ports/openssl', 'vcpkg/clone/ports/nghttp2', 'vcpkg/clone/ports/zlib', 'vcpkg/clone/ports/brotli', 'vcpkg/clone/ports/zstd')}}
key: ${{runner.os}}-${{matrix.arch}}-${{matrix.charset}}-${{hashFiles('vcpkg/overlay_*', 'vcpkg/repository/ports/curl', 'vcpkg/repository/ports/openssl', 'vcpkg/repository/ports/nghttp2', 'vcpkg/repository/ports/zlib', 'vcpkg/repository/ports/brotli', 'vcpkg/repository/ports/zstd')}}

# -----------------------------------------------------------------------
- name: Build
Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<PropertyGroup>
<VcpkgTriplet Condition="'$(VcpkgTriplet)'=='' And '$(Platform)'=='Win32'">x86-windows-static</VcpkgTriplet>
<VcpkgTriplet Condition="'$(VcpkgTriplet)'=='' And '$(Platform)'=='x64'">x64-windows-static</VcpkgTriplet>
<VcpkgRootDir Condition="'$(VcpkgRootDir)'==''">$(SolutionDir)vcpkg\clone\</VcpkgRootDir>
<VcpkgRootDir Condition="'$(VcpkgRootDir)'==''">$(SolutionDir)vcpkg\repository\</VcpkgRootDir>
<VcpkgInstalledDir Condition="'$(VcpkgInstalledDir)'==''">$(VcpkgRootDir)installed\$(VcpkgTriplet)\</VcpkgInstalledDir>

<NsisPlatform Condition="'$(Platform)'=='Win32'">x86</NsisPlatform>
Expand Down
2 changes: 1 addition & 1 deletion _build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ echo.
set bindir=Release-%compiler%-%platform_nsis%-%charset%
set pkgdir=packages\%configuration%-%compiler%-%platform_nsis%-%charset%
set curldir=packages\%configuration%-%compiler%-%platform_nsis%-%charset%-curl
set vcpkginstdir=vcpkg\clone\installed\%triplet%
set vcpkginstdir=vcpkg\repository\installed\%triplet%

rmdir /s /q %pkgdir% 2> nul

Expand Down
2 changes: 1 addition & 1 deletion src/nscurl/Makefile.windows
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ STATIC = $(OUTDIR)/lib$(PROJECT).a

# vcpkg
VCPKG_TRIPLET = $(_arch)-mingw-static
VCPKG_INSTALLED = ../../vcpkg/clone/installed/$(VCPKG_TRIPLET)
VCPKG_INSTALLED = ../../vcpkg/repository/installed/$(VCPKG_TRIPLET)

INC += -I$(VCPKG_INSTALLED)/include -I$(VCPKG_INSTALLED)/include/openssl
ifeq ($(_config), debug)
Expand Down
4 changes: 2 additions & 2 deletions vcpkg/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/archives/
/clone/
/latest/
/latest/
/repository/
2 changes: 1 addition & 1 deletion vcpkg/build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ if /i "%compiler%" equ "mingw" set vcpkg_triplet=%arch%-mingw-%runtime%
if /i "%compiler%" equ "msbuild" if /i "%runtime%" equ "static" set vcpkg_triplet=%arch%-windows-%runtime%
if /i "%compiler%" equ "msbuild" if /i "%runtime%" equ "dynamic" set vcpkg_triplet=%arch%-windows

set vcpkg_dir=%~dp0clone
set vcpkg_dir=%~dp0repository

REM | -------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion vcpkg/cleanup.bat
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ echo.
pushd "%~dp0"

rd /q /s archives
rd /q /s clone
rd /q /s latest
rd /q /s repository

popd
exit /b

0 comments on commit 4946085

Please sign in to comment.