From c46593149bc83947a67f6968caa94e4d49d1f93f Mon Sep 17 00:00:00 2001 From: Vladislav Belov Date: Sat, 26 Apr 2025 20:53:18 +0200 Subject: [PATCH] Adds amd64 support to get-windows-libs. --- libraries/get-windows-libs.bat | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/libraries/get-windows-libs.bat b/libraries/get-windows-libs.bat index ed21e332e3..18a33b6fec 100644 --- a/libraries/get-windows-libs.bat +++ b/libraries/get-windows-libs.bat @@ -2,11 +2,19 @@ rem **Download sources and binaries of libraries** cd /D "%~dp0" -rem **SVN revision to checkout for windows-libs** -rem **Update this line when you commit an update to windows-libs** +rem **SVN revision to checkout for windows-libs or windows-libs-amd64** +rem **Update this line when you commit an update to windows-libs or windows-libs-amd64** set "svnrev=28256" -svn co https://svn.wildfiregames.com/public/windows-libs/trunk@%svnrev% win32 || exit /b 1 +if "%1" == "--amd64" ( + set "LIBS_PATH=win64" + set "REPO_NAME=windows-libs-amd64" +) else ( + set "LIBS_PATH=win32" + set "REPO_NAME=windows-libs" +) + +svn co https://svn.wildfiregames.com/public/%REPO_NAME%/trunk@%svnrev% %LIBS_PATH% || exit /b 1 rem **Copy dependencies' binaries to binaries/system/** @@ -14,7 +22,7 @@ rem static libs: boost fmt rem wxwidgets isn't provided and needs to be built manually set DIR_LIST=enet fcollada freetype gloox iconv icu libcurl libpng libsodium libxml2 microsoft miniupnpc nvtt openal sdl2 spidermonkey vorbis zlib for %%d in (%DIR_LIST%) do ( - copy /y win32\%%d\bin\* ..\binaries\system\ || exit /b 1 + copy /y %LIBS_PATH%\%%d\bin\* ..\binaries\system\ || exit /b 1 ) rem **Copy build tools to build/bin @@ -24,5 +32,5 @@ mkdir ..\build\bin\ || exit /b 1 set TOOLCHAIN_DIR_LIST=premake-core cxxtest-4.4 for %%d in (%TOOLCHAIN_DIR_LIST%) do ( - copy /y win32\%%d\bin\* ..\build\bin\ || exit /b 1 + copy /y %LIBS_PATH%\%%d\bin\* ..\build\bin\ || exit /b 1 )