summaryrefslogtreecommitdiff
path: root/make.bat
diff options
context:
space:
mode:
Diffstat (limited to 'make.bat')
-rw-r--r--make.bat13
1 files changed, 5 insertions, 8 deletions
diff --git a/make.bat b/make.bat
index b53da09..924d68e 100644
--- a/make.bat
+++ b/make.bat
@@ -13,14 +13,11 @@ if not exist pcre2-32-static.lib (
SET C_FLAGS=/nologo /W4 /MD /wd4200 /wd4204 /wd4221 /wd4706 /wd4214 /D_CRT_SECURE_NO_WARNINGS /I SDL2/include /I pcre2 SDL2/lib/x64/SDL2main.lib SDL2/lib/x64/SDL2.lib pcre2-32-static.lib
rc /nologo ted.rc
if _%1 == _ (
- cl buffer.c build.c colors.c command.c^
- config.c find.c gl.c ide-autocomplete.c^
- ide-definitions.c ide-highlights.c ide-hover.c^
- ide-signature-help.c ide-usages.c lsp.c lsp-json.c^
- lsp-parse.c lsp-write.c main.c menu.c node.c^
- os-win.c session.c stb_image.c stb_truetype.c^
- syntax.c tags.c ted.c text.c ui.c util.c ted.res^
- /DDEBUG /DEBUG /Zi %C_FLAGS% /Fe:ted
+ pushd debug
+ cmake -DCMAKE_BUILD_TYPE=Debug -GNinja ..
+ ninja
+ copy ted.exe ..
+ popd
)
if _%1 == _release cl main.c ted.res /O2 /wd4702 %C_FLAGS% /Fe:ted
if _%1 == _release_with_debug_info cl main.c ted.res /DEBUG /Zi /O2 /wd4702 %C_FLAGS% /Fe:ted