update to Nim 1.0.0
This commit is contained in:
7
config.nims
Normal file
7
config.nims
Normal 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")
|
5
nim.cfg
5
nim.cfg
@@ -3,7 +3,8 @@
|
|||||||
@end
|
@end
|
||||||
|
|
||||||
@if emscripten or asmjs or wasm:
|
@if emscripten or asmjs or wasm:
|
||||||
o:"index.html"
|
o:"build/sdlife.js"
|
||||||
|
outdir:build
|
||||||
@if not wasm:
|
@if not wasm:
|
||||||
d:asmjs
|
d:asmjs
|
||||||
@end
|
@end
|
||||||
@@ -39,4 +40,6 @@
|
|||||||
dynlibOverride:"SDL2_net"
|
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 ../libSDL2_gfx.o ../libSDL2_image-png.o ../libSDL2_ttf.o --preload-file ../assets"
|
||||||
passL %= "-s USE_SDL=2 -s USE_SDL_GFX=2"
|
passL %= "-s USE_SDL=2 -s USE_SDL_GFX=2"
|
||||||
|
@else
|
||||||
|
o:"build/sdlife"
|
||||||
@end
|
@end
|
||||||
|
Reference in New Issue
Block a user