mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2025-12-06 04:04:53 +01:00
Fix build scripts.
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>.)
This commit is contained in:
parent
ef5c4731b4
commit
b75f324100
11 changed files with 211 additions and 74 deletions
|
|
@ -1,11 +1,20 @@
|
|||
@echo off
|
||||
cd /d "%~dp0"
|
||||
mkdir release\tools
|
||||
del /Q release\tools\*
|
||||
|
||||
IF NOT EXIST build ( mkdir build )
|
||||
IF NOT EXIST build\release ( mkdir build\release )
|
||||
IF NOT EXIST build\release\tools ( mkdir build\release\tools )
|
||||
IF NOT EXIST build\release\tools\x86 ( mkdir build\release\tools\x86 )
|
||||
IF EXIST build\release\tools\x86\*.* ( DEL /F /S /Q build\release\tools\x86\*.* )
|
||||
|
||||
IF NOT EXIST release\tools ( mkdir release\tools )
|
||||
IF EXIST release\tools\*.* ( DEL /F /S /Q release\tools\*.* )
|
||||
|
||||
setlocal
|
||||
call build_env_x86.bat
|
||||
cl generate_interfaces_file.cpp /EHsc /MP12 /Ox /link /debug:none /OUT:release\tools\generate_interfaces_file.exe
|
||||
del /Q /S release\tools\*.lib
|
||||
del /Q /S release\tools\*.exp
|
||||
SET OLD_DIR=%cd%
|
||||
cd build\release\tools\x86
|
||||
cl %OLD_DIR%/generate_interfaces_file.cpp /EHsc /MP12 /Ox /link /debug:none /OUT:%OLD_DIR%\release\tools\generate_interfaces_file.exe
|
||||
cd %OLD_DIR%
|
||||
copy Readme_generate_interfaces.txt release\tools\Readme_generate_interfaces.txt
|
||||
endlocal
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue