Skip to content

Commit 5571b12

Browse files
chkuendiglephilousophe
authored andcommitted
Update Emscripten WIP
1 parent cf17cbb commit 5571b12

File tree

5 files changed

+5
-352
lines changed

5 files changed

+5
-352
lines changed

toolchains/emscripten/Dockerfile.m4

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@ helpers_package(libmad, --with-pic --enable-fpm=no)
4343

4444
RUN emcc -s USE_OGG=1 -E - < /dev/null
4545

46-
# Emscripten has an official port for vorbis, but it doesn't properly link vorbisfile https://github.com/emscripten-core/emscripten/pull/14005
47-
# RUN emcc -s USE_VORBIS=1 -E - < /dev/null
48-
helpers_package(libvorbis, , CFLAGS="-fPIC -s USE_OGG=1")
46+
RUN emcc -s USE_VORBIS=1 -E - < /dev/null
4947

5048
# helpers_package(libtheora, --disable-asm, CFLAGS="-fPIC -s USE_OGG=1 -s USE_VORBIS=1")
5149
helpers_package(libtheora, --disable-asm, CFLAGS="-fPIC -s USE_OGG=1")
@@ -58,9 +56,6 @@ helpers_package(mpeg2dec, , CFLAGS="-fPIC")
5856

5957
helpers_package(a52dec, , CFLAGS="-fPIC")
6058

61-
# TODO: openssl
62-
63-
# TODO: curl
6459

6560
# TODO: fluidlite
6661

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
do_configure () {
2+
source "$EMSDK/emsdk_env.sh"
23
emconfigure ./configure --prefix=$PREFIX --host=$HOST --disable-shared "$@"
34
}
45

56
do_cmake () {
7+
source "$EMSDK/emsdk_env.sh"
68
mkdir -p build
79
cd build
810
emcmake cmake -DCMAKE_INSTALL_PREFIX=$PREFIX \
911
-DBUILD_SHARED_LIBS=no "$@" ..
1012
}
1113

1214
do_make () {
15+
source "$EMSDK/emsdk_env.sh"
1316
emmake make "$@"
1417
}

toolchains/emscripten/packages/toolchain/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /bin/sh
22

3-
EMSDK_VERSION=3.1.6
3+
EMSDK_VERSION=4.0.10
44

55
PACKAGE_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
66
HELPERS_DIR=$PACKAGE_DIR/../..

toolchains/emscripten/packages/toolchain/patches/emscripten-15893.patch

Lines changed: 0 additions & 332 deletions
This file was deleted.

toolchains/emscripten/packages/toolchain/patches/emscripten-sdl.patch

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)