Skip to content
Open
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
2 changes: 1 addition & 1 deletion libxml2
Submodule libxml2 updated from 726f67 to 48dba1
8 changes: 7 additions & 1 deletion script/clean
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,10 @@

rm -rf ./build
rm -rf ./libxml2/compile
rm -rf ./libxml2/m4

# some file in ./libxml2/m4 are provided by the project
rm -f ./libxml2/m4/libtool.m4
rm -f ./libxml2/m4/lt~obsolete.m4
rm -f ./libxml2/m4/ltoptions.m4
rm -f ./libxml2/m4/ltsugar.m4
rm -f ./libxml2/m4/ltversion.m4
3 changes: 1 addition & 2 deletions script/compile
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#!/bin/bash

emcc -O2 -s EMULATE_FUNCTION_POINTER_CASTS=1 \
--memory-init-file 0 \
./build/xmllint.o ./build/.libs/libxml2.a ./libz.a \
./build/xmllint-xmllint.o ./build/.libs/libxml2.so ./libz.a \
-o xmllint.raw.js --pre-js ./src/pre.js

sed '/\/\* XMLLINT.RAW.JS \*\// {
Expand Down
3 changes: 1 addition & 2 deletions script/libxml2
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
#!/bin/bash

mkdir -p ./build
mkdir -p ./libxml2/m4
cd ./libxml2
autoreconf -if -Wall
cd ../build
emconfigure ../libxml2/configure --with-http=no --with-ftp=no --with-python=no --with-threads=no
emconfigure ../libxml2/configure --with-http=no --with-ftp=no --with-python=no --with-threads=no --with-modules=no
emmake make
cd ..
4 changes: 2 additions & 2 deletions script/test
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

emcc -O2 -s EMULATE_FUNCTION_POINTER_CASTS=1 ./build/xmllint.o \
./build/.libs/libxml2.a ./libz.a -o ./xmllint.test.js \
emcc -O2 -s EMULATE_FUNCTION_POINTER_CASTS=1 ./build/xmllint-xmllint.o \
./build/.libs/libxml2.so ./libz.a -o ./xmllint.test.js \
--embed-file ./test/test.xml --embed-file ./test/test.xsd
node ./xmllint.test.js --noout --schema ./test/test.xsd ./test/test.xml
rm -rf ./xmllint.test.js
Expand Down