mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-20 13:46:20 +00:00
b362f0537a
Pulling the DLL from SVN is performed separately to allow backporting to A27. Accepted-By: sera Reviewed-On: https://gitea.wildfiregames.com/0ad/0ad/pulls/8175
48 lines
1.6 KiB
Batchfile
48 lines
1.6 KiB
Batchfile
rem **Download sources and binaries of libraries**
|
|
|
|
cd /D "%~dp0"
|
|
|
|
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=28262"
|
|
|
|
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% || ^
|
|
svn export --force https://svn.wildfiregames.com/public/%REPO_NAME%/trunk@%svnrev% %LIBS_PATH% || ^
|
|
exit /b 1
|
|
|
|
rem **Fixup SpiderMonkey for Windows 7 on Win32**
|
|
rem This change is performed separately to allow backporting to A27
|
|
set "smrev=28263"
|
|
if "%LIBS_PATH%" == "win32" (
|
|
svn up -r %smrev% win32/spidermonkey/bin || ^
|
|
svn export --force https://svn.wildfiregames.com/public/windows-libs/trunk/spidermonkey/bin@%smrev% win32/spidermonkey/bin || ^
|
|
exit /b 1
|
|
)
|
|
|
|
rem **Copy dependencies' binaries to binaries/system/**
|
|
|
|
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 %LIBS_PATH%\%%d\bin\* ..\binaries\system\ || exit /b 1
|
|
)
|
|
|
|
rem **Copy build tools to build/bin
|
|
|
|
if exist ..\build\bin\ rmdir ..\build\bin\ /s /q || exit /b 1
|
|
mkdir ..\build\bin\ || exit /b 1
|
|
|
|
set TOOLCHAIN_DIR_LIST=premake-core cxxtest-4.4
|
|
for %%d in (%TOOLCHAIN_DIR_LIST%) do (
|
|
copy /y %LIBS_PATH%\%%d\bin\* ..\build\bin\ || exit /b 1
|
|
)
|