2020-02-15 22:11:19 +00:00
|
|
|
@echo off
|
|
|
|
set start=%time%
|
|
|
|
@echo on
|
|
|
|
|
2020-09-19 06:23:31 +00:00
|
|
|
SET scriptdir=%~dp0
|
|
|
|
|
|
|
|
call %scriptdir%\clean-win.bat
|
2020-02-12 05:25:43 +00:00
|
|
|
|
|
|
|
echo "*** BUILDING WIN32 ***"
|
2023-02-04 06:23:37 +00:00
|
|
|
MSBuild.exe ../milkdrop2-musikcube/milkdrop2-musikcube.sln /m /nologo /verbosity:minimal /p:Configuration=Release /p:Platform=Win32
|
2023-01-11 08:00:50 +00:00
|
|
|
MSBuild.exe musikcube.sln /m /nologo /verbosity:minimal /p:Configuration=Release /p:Platform=Win32
|
|
|
|
MSBuild.exe musikcube.sln /target:musikcube /m /nologo /verbosity:minimal /p:ExternalCompilerOptions=PDCURSES_WINCON /p:Configuration=Release /p:Platform=Win32 /p:ForceImportAfterCppTargets=%scriptdir%\windows-cmd.props
|
2020-02-12 05:25:43 +00:00
|
|
|
|
2020-06-14 19:57:50 +00:00
|
|
|
echo "*** BUILDING x64 ***"
|
2023-02-04 06:23:37 +00:00
|
|
|
MSBuild.exe ../milkdrop2-musikcube/milkdrop2-musikcube.sln /m /nologo /verbosity:minimal /p:Configuration=Release /p:Platform=x64
|
2023-01-11 08:00:50 +00:00
|
|
|
MSBuild.exe musikcube.sln /m /nologo /verbosity:minimal /p:Configuration=Release /p:Platform=x64
|
|
|
|
MSBuild.exe musikcube.sln /target:musikcube /m /nologo /verbosity:minimal /p:ExternalCompilerOptions=PDCURSES_WINCON /p:Configuration=Release /p:Platform=x64 /p:ForceImportAfterCppTargets=%scriptdir%\windows-cmd.props
|
2020-02-15 22:11:19 +00:00
|
|
|
|
|
|
|
echo "*** DONE ***"
|
|
|
|
@echo off
|
|
|
|
set end=%time%
|
|
|
|
set options="tokens=1-4 delims=:.,"
|
|
|
|
for /f %options% %%a in ("%start%") do set start_h=%%a&set /a start_m=100%%b %% 100&set /a start_s=100%%c %% 100&set /a start_ms=100%%d %% 100
|
|
|
|
for /f %options% %%a in ("%end%") do set end_h=%%a&set /a end_m=100%%b %% 100&set /a end_s=100%%c %% 100&set /a end_ms=100%%d %% 100
|
|
|
|
set /a hours=%end_h%-%start_h%
|
|
|
|
set /a mins=%end_m%-%start_m%
|
|
|
|
set /a secs=%end_s%-%start_s%
|
|
|
|
set /a ms=%end_ms%-%start_ms%
|
|
|
|
if %ms% lss 0 set /a secs = %secs% - 1 & set /a ms = 100%ms%
|
|
|
|
if %secs% lss 0 set /a mins = %mins% - 1 & set /a secs = 60%secs%
|
|
|
|
if %mins% lss 0 set /a hours = %hours% - 1 & set /a mins = 60%mins%
|
|
|
|
if %hours% lss 0 set /a hours = 24%hours%
|
|
|
|
if 1%ms% lss 100 set ms=0%ms%
|
|
|
|
set /a totalsecs = %hours%*3600 + %mins%*60 + %secs%
|
|
|
|
@echo on
|
2020-09-19 06:23:31 +00:00
|
|
|
echo Build time: %hours%:%mins%:%secs%.%ms% (%totalsecs%.%ms%s total)
|