A virtual currency betting bot for Twitch chat. https://ddark.net/better
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.2 KiB

@echo off
echo Building...
if exist build\ rmdir /S /Q build\
mkdir build\
where /Q cl
if errorlevel 1 (
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" x64
set CommonCFlags=/nologo /MP /std:c++17 /W3 /Febuild\better.exe /Fobuild\ /Fdbuild\ /EHsc ^
/Isrc ^
/Ilib\imgui ^
/Ilib\imgui\examples ^
set CommonLFlags=build\better.res d3d11.lib ws2_32.lib crypt32.lib
set DebugCFlags=/MDd /Zi /D BETTER_DEBUG=1
set DebugLFlags=
set ReleaseCFlags=/MD /O2 /D NDEBUG /D BETTER_DEBUG=0
set ReleaseLFlags=
rc /nologo /fobuild\better.res resources\better.rc
if errorlevel 1 (
echo Resource compilation failed.
) else (
echo Resource compilation successful.
cl src\*.cpp ^
lib\imgui\*.cpp ^
lib\imgui\examples\imgui_impl_dx11.cpp ^
lib\imgui\examples\imgui_impl_win32.cpp ^
lib\implot\*.cpp ^
%CommonCFlags% %DebugCFlags% ^
/link %CommonLFlags% %DebugLFlags%
if errorlevel 1 (
echo Build failed.
) else (
xcopy /Q /Y data build\
xcopy /Q /Y lib build\
echo Build successful.