Skip to content

Commit 2d64979

Browse files
committed
3.1.61.12pre
1 parent 4025feb commit 2d64979

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

sources.extra/7000-libsixel.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
3+
PKG=libsixel-wasm
4+
5+
pushd ${SDKROOT}/src
6+
7+
[ -d $PKG ] || git clone --no-tags --depth 1 --single-branch --branch python-wasm-sdk https://github.com/pmp-p/libsixel-wasm libsixel-wasm
8+
9+
10+
11+
mkdir -p ${SDKROOT}/build/${PLATFORM_TRIPLET}/${PKG}
12+
pushd ${SDKROOT}/build/${PLATFORM_TRIPLET}/${PKG}
13+
if $WASI
14+
then
15+
emconfigure ${SDKROOT}/src/${PKG}/configure --prefix=$WASI_SYSROOT --with-libcurl=no --disable-python --with-jpeg=no --with-png=no --disable-img2sixel --disable-sixel2png && emmake make install
16+
else
17+
emconfigure ${SDKROOT}/src/${PKG}/configure --prefix=${PREFIX} --with-libcurl=no --enable-python --with-jpeg=no --with-png=no --disable-img2sixel --disable-sixel2png && emmake make install
18+
fi
19+
popd
20+

wasisdk/bin/emcmake

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
SDKROOT=${SDKROOT:-/tmp/sdk}
3+
if . $SDKROOT/wasisdk/wasisdk_env.sh
4+
then
5+
CMAKE=$1
6+
shift
7+
$CMAKE \
8+
-DCMAKE_SYSTEM_NAME=WASI \
9+
-DCMAKE_INSTALL_PREFIX=$PREFIX \
10+
"$@"
11+
fi

0 commit comments

Comments
 (0)