Commit 9be7f8e0 authored by Mehdi Sabwat's avatar Mehdi Sabwat
Browse files

update compilation options.

Some options are not needed anymore, and -s OFFSCREEN_FRAMEBUFFER
enables cross-platform offscreen canvas support.
parent f635a7a9
......@@ -26,17 +26,13 @@ fi
PROJECT_DIR=$(pwd)/vlc
cd vlc/build-emscripten
# Theses flags are to use for webgl2 (see : https://github.com/kripken/emscripten/issues/5437)
# -s USE_WEBGL2=1 -s FULL_ES3=1
emcc -O2 -s USE_PTHREADS=1 -s TOTAL_MEMORY=134217728 \
-s PTHREAD_POOL_SIZE=5 -s ASSERTIONS=2 -s STACK_OVERFLOW_CHECK=2 \
-s FULL_ES2=1 -s OFFSCREENCANVAS_SUPPORT=1 -s GL_ASSERTIONS=1 -s GL_DEBUG=1 \
-s OPENAL_DEBUG=1 \
-I $PROJECT_DIR/include/ -I $PROJECT_DIR/contrib/asmjs-unknown-emscripten/include/ main.c \
# for release, remove profiling-funcs and add -Os
emcc -s USE_PTHREADS=1 -s TOTAL_MEMORY=1GB \
-s OFFSCREEN_FRAMEBUFFER=1 --profiling-funcs \
-I $PROJECT_DIR/include/ -I $PROJECT_DIR/contrib/wasm32-unknown-emscripten/include/ main.c \
$PROJECT_DIR/build-emscripten/lib/.libs/libvlc.a \
vlc-modules.bc $PROJECT_DIR/build-emscripten/modules/.libs/*.a \
$PROJECT_DIR/contrib/asmjs-unknown-emscripten/lib/*.a \
$PROJECT_DIR/contrib/wasm32-unknown-emscripten/lib/*.a \
$PROJECT_DIR/build-emscripten/src/.libs/libvlccore.a \
$PROJECT_DIR/build-emscripten/compat/.libs/libcompat.a \
-o experimental.html --separate-asm --emrun --preload-file Dolby_Canyon.vob
-o experimental.html --emrun --preload-file BigBuckBunny.mp4
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment