diff config.nims @ 22:b45a5d338cd0

did: improve alotof_triangles example, remove glslang lib, use only binary, easier cross-compilation
author Sam <sam@basx.dev>
date Wed, 11 Jan 2023 00:43:17 +0700
parents 316923e9247c
children 71bbe11d8de8
line wrap: on
line diff
--- a/config.nims	Tue Jan 10 00:24:37 2023 +0700
+++ b/config.nims	Wed Jan 11 00:43:17 2023 +0700
@@ -44,14 +44,16 @@
 task build_windows_debug, "build windows debug":
   compilerFlags()
   compilerFlagsDebug()
-  compilerFlagsDebugWindows()
+  # compilerFlagsDebugWindows()
+  switch("define", "mingw")
   buildbase.joinPath("debug/windows").mkDir()
   setCommand "c"
 
 task build_windows_release, "build windows release":
   compilerFlags()
   compilerFlagsRelease()
-  compilerFlagsReleaseWindows()
+  # compilerFlagsReleaseWindows()
+  switch("define", "mingw")
   buildbase.joinPath("release/windows").mkDir()
   setCommand "c"