Initial commit.
This commit is contained in:
commit
eb25270d34
6 changed files with 180 additions and 0 deletions
27
config.nims
Normal file
27
config.nims
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
|
||||
when defined(emscripten):
|
||||
--define:GraphicsApiOpenGlEs2
|
||||
# --define:NaylibWebResources
|
||||
# switch("define", "NaylibWebResourcesPath=resources")
|
||||
# switch("define", "NaylibWebPthreadPoolSize=2")
|
||||
# --define:NaylibWebAsyncify
|
||||
--os:linux
|
||||
--cpu:wasm32
|
||||
--cc:clang
|
||||
--clang.exe:emcc
|
||||
--clang.linkerexe:emcc
|
||||
--clang.cpp.exe:emcc
|
||||
--clang.cpp.linkerexe:emcc
|
||||
--mm:arc
|
||||
--threads:on
|
||||
--panics:on
|
||||
--exceptions:goto
|
||||
--define:noSignalHandler
|
||||
--passL:"-03"
|
||||
# --passL:"-s EXPORT_NAME=Test1Module"
|
||||
# --passL:"-s MODULARIZE=1"
|
||||
--passL:"-s ASYNCIFY" # async support
|
||||
# --passL:"-s JSPI" # async support
|
||||
--passL:"-o index.html"
|
||||
# --passL:"--shell-file minshell.html"
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue