Skip to content

Commit 43684e5

Browse files
committed
xml2+icu
1 parent 0804029 commit 43684e5

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

sources.wasm/libicu.sh

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#!/bin/bash
2+
3+
. scripts/emsdk-fetch.sh
4+
5+
6+
cd ${ROOT}/src
7+
8+
if [ -d icu ]
9+
then
10+
echo ok
11+
else
12+
wget -c https://github.com/unicode-org/icu/releases/download/release-75-1/icu4c-75_1-src.tgz
13+
tar xf icu4c-75_1-src.tgz
14+
fi
15+
16+
if [ -f $PREFIX/lib/libicu.a ]
17+
then
18+
echo "
19+
already built in $PREFIX/lib/libicu.a
20+
"
21+
else
22+
23+
mkdir -p $ROOT/build/libicu
24+
25+
pushd $ROOT/build/libicu
26+
emconfigure ../../src/icu/source/configure --prefix=$PREFIX \
27+
--disable-shared --enable-static \
28+
--disable-samples --disable-tests --disable-tools \
29+
--disable-extras --disable-draft
30+
emmake make install
31+
popd
32+
fi
33+
34+
35+

sources.wasm/libxml2.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ else
2525
pushd $ROOT/build/libxml2
2626
emconfigure ${ROOT}/src/libxml2/configure --prefix=$PREFIX \
2727
--with-http=no --with-ftp=no --with-python=no --with-threads=no \
28-
--enable-shared=no --enable-static=yes
28+
--enable-shared=no --enable-static=yes \
29+
--without-icu
2930

3031
# --enable-shared=yes => link error of
3132
#wasm-ld: error: xmllint-xmllint.o: undefined symbol: xmlMemSetup

0 commit comments

Comments
 (0)