Commit 63817f82 authored by Jaromil's avatar Jaromil
Browse files

fix to nodejs build to create memory-init files

also improved nodejs wrapper with hashbang and included examples
directory in distributed binaries.
parent f2a250d3
......@@ -46,7 +46,8 @@ apply-patches:
# TODO: improve flags according to
# https://github.com/kripken/emscripten/blob/master/src/settings.js
javascript-node: cflags += -DARCH_JS -D'ARCH=\"JS\"'
javascript-node: cflags += -DARCH_JS -D'ARCH=\"JS\"' --memory-init-file 1
javascript-node: ldflags += --memory-init-file 1
javascript-node: apply-patches lua53 milagro lpeglabel
CC=${gcc} CFLAGS="${cflags}" LDFLAGS="${ldflags}" LDADD="${ldadd}" \
make -C src js
......
#!/usr/bin/env nodejs
// try this script from nodejs with a script as argument:
// nodejs zenroom_exec.js ../../examples/keygen.lua
// nodejs zenroom_exec.js examples/hello.lua
const fs = require('fs')
......
......@@ -29,6 +29,7 @@ function checkdir() {
cp ../LICENSE.txt $2
cp ../README.md $2
cp ../ChangeLog.md $2
rsync -raX ../examples $2/
return 0
}
print "directory not found: $1"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment