Skip to content

Commit

Permalink
build: support NO_LIB env to disable vcpkg deps
Browse files Browse the repository at this point in the history
Check if NO_<dep> environment variable is defined to skip vcpkg deps,
this is needed to implement cmake support for NO_GETTEXT properly in a
subsequent commit.

Signed-off-by: Rafael Kitover <[email protected]>
  • Loading branch information
rkitover committed Mar 17, 2022
1 parent 01682f2 commit c1d5e13
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions compat/vcbuild/vcpkg_install.bat
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,11 @@ REM ================================================================

echo Installing third-party libraries(%arch%), this may take a while...
FOR %%i IN (zlib expat libiconv openssl libssh2 curl) DO (
cd %VCPKG_ROOT%
IF NOT EXIST "packages\%%i_%arch%" CALL :sub__install_one %%i
IF ERRORLEVEL 1 ( EXIT /B 1 )
IF NOT DEFINED NO_%%i (
cd %VCPKG_ROOT%
IF NOT EXIST "packages\%%i_%arch%" CALL :sub__install_one %%i
IF ERRORLEVEL 1 ( EXIT /B 1 )
)
)

:install_defines
Expand Down

0 comments on commit c1d5e13

Please sign in to comment.