File tree Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change
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
+
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments