mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator
synced 2025-05-23 21:57:40 +08:00
Fix list: - Make cmd not choke on recursive calls to build_env_x*.bat. - Create build directories and move build output there instead of polluting the root of the source tree. - Make proper debug builds with pdb output. - Make proper x64 builds of lobby_connect, and steamclient_loader. (lobby_connect_x64.exe, and steamclient_loader_x64.exe) - Rename x86 build of lobby_connect.exe to lobby_connect_x86.exe. - Rename x86 build of steamclient_loader.exe to steamclient_loader_x86.exe. - Make proper distrib directories. (I.e. <release,debug>/<build type>/<arch>/<binaries>.)
60 lines
2.2 KiB
Batchfile
Executable File
60 lines
2.2 KiB
Batchfile
Executable File
@echo off
|
|
cd /d "%~dp0"
|
|
rem Put in the base path in which Visual Studio is installed, default would be C:\Program Files (x86)
|
|
|
|
set VS_Base_Path=C:\Program Files (x86)
|
|
|
|
if exist "%VS_Base_Path%\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat" goto vs2019
|
|
if exist "%VS_Base_Path%\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat" goto vs2017
|
|
if exist "%VS_Base_Path%\Microsoft Visual Studio 14.0\VC\bin\amd64\vcvars64.bat" goto vs14
|
|
if exist "%VS_Base_Path%\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvars64.bat" goto vs2019_bt
|
|
if exist "%VS_Base_Path%\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvars64.bat" goto vs2017_bt
|
|
if exist "%VS_Base_Path%\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat" goto vs2022
|
|
if exist "%VS_Base_Path%\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\Build\vcvars64.bat" goto vs2022_bt
|
|
if exist ".\sdk_standalone\set_vars64.bat" goto gitlabci
|
|
if exist "vsinstallloc.txt" goto readloc
|
|
if exist "%VS_Base_Path%\Microsoft Visual Studio\Installer\vswhere.exe" goto wherevs
|
|
|
|
:vs2022
|
|
call "%VS_Base_Path%\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat"
|
|
goto batend
|
|
|
|
:vs2019
|
|
call "%VS_Base_Path%\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
|
|
goto batend
|
|
|
|
:vs2017
|
|
call "%VS_Base_Path%\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
|
|
goto batend
|
|
|
|
:vs14
|
|
call "%VS_Base_Path%\Microsoft Visual Studio 14.0\VC\bin\amd64\vcvars64.bat"
|
|
goto batend
|
|
|
|
:vs2022_bt
|
|
call "%VS_Base_Path%\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
|
|
goto batend
|
|
|
|
:vs2019_bt
|
|
call "%VS_Base_Path%\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
|
|
goto batend
|
|
|
|
:vs2017_bt
|
|
call "%VS_Base_Path%\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
|
|
goto batend
|
|
|
|
:gitlabci
|
|
call ".\sdk_standalone\set_vars64.bat"
|
|
goto batend
|
|
|
|
:wherevs
|
|
call "%VS_Base_Path%\Microsoft Visual Studio\Installer\vswhere.exe" -latest -property installationPath > vsinstallloc.txt
|
|
goto readloc
|
|
|
|
:readloc
|
|
set /p VS_LOCAL=<vsinstallloc.txt
|
|
call "%VS_LOCAL%\VC\Auxiliary\Build\vcvars64.bat"
|
|
goto batend
|
|
|
|
:batend
|