Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions binding/emcc.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
-L.libs
-lxml2
-o libxml2raw.mjs
--no-entry
-s EXPORT_ES6=1
-s ALLOW_MEMORY_GROWTH=1
-s ALLOW_TABLE_GROWTH=1
-s EXPORTED_RUNTIME_METHODS=@../binding/exported-runtime-functions.txt
-s EXPORTED_FUNCTIONS=@../binding/exported-functions.txt
-O2
-flto
--closure 1
-s MODULARIZE=1
-s SINGLE_FILE=1
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
"version": "0.7.0-dev",
"description": "WebAssembly-based libxml2 javascript wrapper",
"scripts": {
"bind": "cd out && emcc -L.libs -lxml2 -o libxml2raw.mjs --no-entry -s EXPORT_ES6=1 -s ALLOW_MEMORY_GROWTH=1 -s ALLOW_TABLE_GROWTH=1 -s EXPORTED_RUNTIME_METHODS=@../binding/exported-runtime-functions.txt -s EXPORTED_FUNCTIONS=@../binding/exported-functions.txt -O2 -flto --closure 1 -s MODULARIZE=1 -s SINGLE_FILE=1",
"bind": "cd out && emcc @../binding/emcc.txt",
"build": "npm run wasm && npm run tsc",
"build:debug": "EMCC_CFLAGS=\"-g -O0\" npm run build",
"clean": "rm -rf lib out .tsbuildinfo",
"compile": "cd out && emmake make -j4",
"config": "cd out && emconfigure ../libxml2/autogen.sh --with-winpath --without-python --without-http --without-sax1 --without-modules --without-html --without-threads --without-zlib --without-lzma --without-catalog --without-debug --without-legacy --disable-shared --enable-static CFLAGS='-O2'",
"config": "cd out && emconfigure ../libxml2/autogen.sh --with-winpath --without-sax1 --without-modules --without-html --without-threads --without-catalog --without-debug --disable-shared --enable-static CFLAGS='-O2'",
"cov": "c8 npm run unit",
"dist": "cp out/libxml2raw.* src/libxml2raw.* lib",
"doc": "typedoc",
Expand Down