summaryrefslogtreecommitdiff
path: root/make.bat
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-01-09 13:51:46 -0500
committerpommicket <pommicket@gmail.com>2023-01-09 13:51:46 -0500
commit2d9c5407fdc923a2e8c1fe39213b09c769a74e2e (patch)
treef33ea9a53be292f2f4e67994a0a30d2e489bba31 /make.bat
parenta7d4e507d07919fba43ba14e9eb4fb62de2691f9 (diff)
fix some windows problems
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