diff options
| author | nasr <nsrddyn@gmail.com> | 2026-10-05 22:02:56 +0200 |
|---|---|---|
| committer | nasr <nsrddyn@gmail.com> | 2026-10-05 22:02:56 +0200 |
| commit | f6d3090f7fa76eb8e0dbe060b8490cb49c001c39 (patch) | |
| tree | 433c773997e51f22738acb8b04c4fd2fc6b1bdc9 /build.bat | |
init: base
Diffstat (limited to 'build.bat')
| -rw-r--r-- | build.bat | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/build.bat b/build.bat new file mode 100644 index 0000000..3569429 --- /dev/null +++ b/build.bat | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | @echo off | ||
| 2 | setlocal | ||
| 3 | time /t | ||
| 4 | |||
| 5 | set BUILD_DIR=build | ||
| 6 | set SOURCE_DIR=source | ||
| 7 | set INCLUDES=-I%SOURCE_DIR%\code -I%SOURCE_DIR% -I%SOURCE_DIR%\base | ||
| 8 | set CFLAGS=-FC -GR- -EHa- -nologo -Zi -FS /analyze /W3 /WX -MD /DYNAMICBASE:NO | ||
| 9 | set LIBS=user32.lib gdi32.lib kernel32.lib shell32.lib | ||
| 10 | |||
| 11 | if not exist %BUILD_DIR% mkdir %BUILD_DIR% | ||
| 12 | |||
| 13 | echo Building %BUILD_DIR%\program.exe... | ||
| 14 | |||
| 15 | cl %INCLUDES% %CFLAGS% %SOURCE_DIR%\code\compiler.cpp /Fe%BUILD_DIR%\compiler.exe %LIBS% | ||
