forked from cory/tildefriends
apps
core
deps
codemirror
crypt_blowfish
libbacktrace
libbacktrace_config
libsodium
.github
build-aux
builds
msvc
build
buildall.bat
buildbase.bat
properties
vs2010
vs2012
vs2013
vs2015
vs2017
vs2019
vs2022
resource.h
resource.rc
version.h
.gitignore
Makefile.am
Makefile.in
contrib
dist-build
m4
msvc-scripts
packaging
regen-msvc
src
test
.gitignore
AUTHORS
ChangeLog
LICENSE
Makefile.am
Makefile.in
README.markdown
THANKS
aclocal.m4
appveyor.yml
autogen.sh
azure-pipelines.yml
build.zig
configure
configure.ac
lgtm.yml
libsodium-uninstalled.pc.in
libsodium.pc.in
libsodium.sln
libsodium.vcxproj
libsodium.vcxproj.filters
logo.png
libuv
openssl
picohttpparser
quickjs
smoothie
speedscope
split
sqlite
valgrind
xopt
zlib
docs
src
tools
.dockerignore
Dockerfile
LICENSE
Makefile
README.md
108 lines
3.4 KiB
Batchfile
108 lines
3.4 KiB
Batchfile
|
@ECHO OFF
|
||
|
REM Usage: [buildbase.bat ..\vs2019\mysolution.sln 16]
|
||
|
|
||
|
SETLOCAL enabledelayedexpansion
|
||
|
|
||
|
SET solution=%1
|
||
|
SET version=%2
|
||
|
SET log=build_%version%.log
|
||
|
SET tools=Microsoft Visual Studio %version%.0\VC\vcvarsall.bat
|
||
|
|
||
|
IF %version% == 17 (
|
||
|
SET tools=Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat
|
||
|
SET environment="%programfiles%\!tools!"
|
||
|
IF NOT EXIST !environment! (
|
||
|
SET environment="%programfiles(x86)%\!tools!"
|
||
|
IF NOT EXIST !environment! (
|
||
|
SET tools=Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat
|
||
|
)
|
||
|
)
|
||
|
)
|
||
|
|
||
|
IF %version% == 16 (
|
||
|
SET tools=Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat
|
||
|
SET environment="%programfiles%\!tools!"
|
||
|
IF NOT EXIST !environment! (
|
||
|
SET environment="%programfiles(x86)%\!tools!"
|
||
|
IF NOT EXIST !environment! (
|
||
|
SET tools=Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat
|
||
|
)
|
||
|
)
|
||
|
)
|
||
|
|
||
|
IF %version% == 15 (
|
||
|
SET tools=Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build\vcvarsall.bat
|
||
|
SET environment="%programfiles%\!tools!"
|
||
|
IF NOT EXIST !environment! (
|
||
|
SET environment="%programfiles(x86)%\!tools!"
|
||
|
IF NOT EXIST !environment! (
|
||
|
SET tools=Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat
|
||
|
)
|
||
|
)
|
||
|
)
|
||
|
SET environment="%programfiles%\!tools!"
|
||
|
IF NOT EXIST !environment! SET environment="%programfiles(x86)%\!tools!"
|
||
|
|
||
|
ECHO Environment: !environment!
|
||
|
|
||
|
IF NOT EXIST !environment! GOTO no_tools
|
||
|
|
||
|
ECHO Building: %solution%
|
||
|
|
||
|
CALL !environment! x86 > nul
|
||
|
ECHO Platform=x86
|
||
|
|
||
|
ECHO Configuration=DynDebug
|
||
|
msbuild /m /v:n /p:Configuration=DynDebug /p:Platform=Win32 %solution% >> %log%
|
||
|
IF errorlevel 1 GOTO error
|
||
|
ECHO Configuration=DynRelease
|
||
|
msbuild /m /v:n /p:Configuration=DynRelease /p:Platform=Win32 %solution% >> %log%
|
||
|
IF errorlevel 1 GOTO error
|
||
|
ECHO Configuration=LtcgDebug
|
||
|
msbuild /m /v:n /p:Configuration=LtcgDebug /p:Platform=Win32 %solution% >> %log%
|
||
|
IF errorlevel 1 GOTO error
|
||
|
ECHO Configuration=LtcgRelease
|
||
|
msbuild /m /v:n /p:Configuration=LtcgRelease /p:Platform=Win32 %solution% >> %log%
|
||
|
IF errorlevel 1 GOTO error
|
||
|
ECHO Configuration=StaticDebug
|
||
|
msbuild /m /v:n /p:Configuration=StaticDebug /p:Platform=Win32 %solution% >> %log%
|
||
|
IF errorlevel 1 GOTO error
|
||
|
ECHO Configuration=StaticRelease
|
||
|
msbuild /m /v:n /p:Configuration=StaticRelease /p:Platform=Win32 %solution% >> %log%
|
||
|
IF errorlevel 1 GOTO error
|
||
|
|
||
|
CALL !environment! x86_amd64 > nul
|
||
|
ECHO Platform=x64
|
||
|
|
||
|
ECHO Configuration=DynDebug
|
||
|
msbuild /m /v:n /p:Configuration=DynDebug /p:Platform=x64 %solution% >> %log%
|
||
|
IF errorlevel 1 GOTO error
|
||
|
ECHO Configuration=DynRelease
|
||
|
msbuild /m /v:n /p:Configuration=DynRelease /p:Platform=x64 %solution% >> %log%
|
||
|
IF errorlevel 1 GOTO error
|
||
|
ECHO Configuration=LtcgDebug
|
||
|
msbuild /m /v:n /p:Configuration=LtcgDebug /p:Platform=x64 %solution% >> %log%
|
||
|
IF errorlevel 1 GOTO error
|
||
|
ECHO Configuration=LtcgRelease
|
||
|
msbuild /m /v:n /p:Configuration=LtcgRelease /p:Platform=x64 %solution% >> %log%
|
||
|
IF errorlevel 1 GOTO error
|
||
|
ECHO Configuration=StaticDebug
|
||
|
msbuild /m /v:n /p:Configuration=StaticDebug /p:Platform=x64 %solution% >> %log%
|
||
|
IF errorlevel 1 GOTO error
|
||
|
ECHO Configuration=StaticRelease
|
||
|
msbuild /m /v:n /p:Configuration=StaticRelease /p:Platform=x64 %solution% >> %log%
|
||
|
IF errorlevel 1 GOTO error
|
||
|
|
||
|
ECHO Complete: %solution%
|
||
|
GOTO end
|
||
|
|
||
|
:error
|
||
|
ECHO *** ERROR, build terminated early, see: %log%
|
||
|
GOTO end
|
||
|
|
||
|
:no_tools
|
||
|
ECHO *** ERROR, build tools not found: !tools!
|
||
|
|
||
|
:end
|
||
|
|