Initial commit.

This commit is contained in:
Mahlon E. Smith 2025-08-19 13:21:43 -07:00
commit eb25270d34
Signed by: mahlon
SSH key fingerprint: SHA256:dP84sRGKZRpOOiPD/+GuOq+SHSxEw9qi5BWLQobaHm0
6 changed files with 180 additions and 0 deletions

22
nim_wasm_test.nimble Normal file
View file

@ -0,0 +1,22 @@
# Package
version = "0.1.0"
author = "Mahlon E. Smith"
description = "Dinking around with raylib and wasm target"
license = "MIT"
srcDir = "src"
requires "nim >= 2.2.4"
requires "naylib >= 25.33.0"
requires "nimhttpd >= 1.5.1"
task make, "Native build":
exec "mkdir -p build && nim c --outdir:build -d:release --opt:speed src/nim_wasm_test.nim"
task makeweb, "Emscripten build":
exec "mkdir -p build && nim c --outdir:build -d:emscripten src/nim_wasm_test.nim"
task runweb, "Run a local webserver for the wasm build":
exec "nimhttpd -H:'Cross-Origin-Opener-Policy: same-origin' -H:'Cross-Origin-Embedder-Policy: require-corp'"