Skip to content

Commit

Permalink
WASM build
Browse files Browse the repository at this point in the history
  • Loading branch information
neurolabusc committed Aug 20, 2024
1 parent 6e20194 commit 64e6b43
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions console/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,8 @@ sanitize:

noroi:
g++ $(CFLAGS) -I. $(JSFLAGS) $(JFLAGS) $(LFLAGS) $(UFILES) -DmyNoRois

wasm:
wasm:
emcc -O3 $(UFILES) -s DEMANGLE_SUPPORT=1 -s EXPORTED_RUNTIME_METHODS='["callMain", "ccall", "cwrap", "FS_createDataFile", "FS_readFile", "FS_unlink", "allocateUTF8", "getValue", "stringToUTF8", "setValue"]' -s ALLOW_MEMORY_GROWTH=1 -s WASM=1 -s EXPORT_ES6=1 -s MODULARIZE=1 -s EXPORTED_FUNCTIONS='["_main", "_malloc", "_free"]' -s INVOKE_RUN=0 -o ../js/src/niimath.js

0 comments on commit 64e6b43

Please sign in to comment.