update to Nim 1.0.0

This commit is contained in:
2019-11-03 14:11:14 +00:00
parent e607903708
commit 8a83784366
6 changed files with 11 additions and 1 deletions

7
config.nims Normal file
View File

@@ -0,0 +1,7 @@
# mode = ScriptMode.Whatif
task build, "builds an example":
setCommand("c", "src/sdlife/main.nim")
for i in 0..paramCount():
let param = paramStr(i)
if param == "-d:wasm":
cpFile("resources/index.html", "build/index.html")

View File

@@ -3,7 +3,8 @@
@end
@if emscripten or asmjs or wasm:
o:"index.html"
o:"build/sdlife.js"
outdir:build
@if not wasm:
d:asmjs
@end
@@ -39,4 +40,6 @@
dynlibOverride:"SDL2_net"
#passL %= "-s USE_SDL=2 ../libSDL2_gfx.o ../libSDL2_image-png.o ../libSDL2_ttf.o --preload-file ../assets"
passL %= "-s USE_SDL=2 -s USE_SDL_GFX=2"
@else
o:"build/sdlife"
@end