2024-08-20 09:54:00 -07:00
|
|
|
rem **Download sources and binaries of libraries**
|
|
|
|
|
|
2025-01-02 10:47:08 -08:00
|
|
|
cd /D "%~dp0"
|
|
|
|
|
|
2025-04-26 11:53:18 -07:00
|
|
|
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**
|
2024-10-24 10:27:03 -07:00
|
|
|
set "svnrev=28278"
|
2024-08-20 09:54:00 -07:00
|
|
|
|
2025-04-26 11:53:18 -07:00
|
|
|
if "%1" == "--amd64" (
|
|
|
|
|
set "LIBS_PATH=win64"
|
|
|
|
|
set "REPO_NAME=windows-libs-amd64"
|
|
|
|
|
) else (
|
|
|
|
|
set "LIBS_PATH=win32"
|
|
|
|
|
set "REPO_NAME=windows-libs"
|
|
|
|
|
)
|
|
|
|
|
|
2025-04-27 02:38:11 -07:00
|
|
|
svn co https://svn.wildfiregames.com/public/%REPO_NAME%/trunk@%svnrev% %LIBS_PATH% || ^
|
|
|
|
|
svn export --force https://svn.wildfiregames.com/public/%REPO_NAME%/trunk@%svnrev% %LIBS_PATH% || ^
|
|
|
|
|
exit /b 1
|
2024-08-20 09:54:00 -07:00
|
|
|
|
2024-11-11 05:25:39 -08:00
|
|
|
rem **Copy dependencies' binaries to binaries/system/**
|
2024-08-20 09:54:00 -07:00
|
|
|
|
2025-02-20 00:05:34 -08:00
|
|
|
rem static libs: boost fmt
|
|
|
|
|
rem wxwidgets isn't provided and needs to be built manually
|
2024-10-24 10:27:03 -07:00
|
|
|
set DIR_LIST=cpp-httplib enet fcollada freetype gloox iconv icu libcurl libpng libsodium libxml2 microsoft miniupnpc nvtt openal sdl2 spidermonkey vorbis zlib
|
2024-11-11 05:25:39 -08:00
|
|
|
for %%d in (%DIR_LIST%) do (
|
2025-04-26 11:53:18 -07:00
|
|
|
copy /y %LIBS_PATH%\%%d\bin\* ..\binaries\system\ || exit /b 1
|
2024-11-11 05:25:39 -08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
rem **Copy build tools to build/bin
|
|
|
|
|
|
2025-02-20 00:05:34 -08:00
|
|
|
if exist ..\build\bin\ rmdir ..\build\bin\ /s /q || exit /b 1
|
|
|
|
|
mkdir ..\build\bin\ || exit /b 1
|
2024-11-11 05:25:39 -08:00
|
|
|
|
|
|
|
|
set TOOLCHAIN_DIR_LIST=premake-core cxxtest-4.4
|
|
|
|
|
for %%d in (%TOOLCHAIN_DIR_LIST%) do (
|
2025-04-26 11:53:18 -07:00
|
|
|
copy /y %LIBS_PATH%\%%d\bin\* ..\build\bin\ || exit /b 1
|
2024-10-25 01:22:43 -07:00
|
|
|
)
|