Commit 1b1e4dde authored by Brateau Etienne's avatar Brateau Etienne Committed by Jean-Baptiste Kempf
Browse files

The compilation script now applies the patches and call subscripts for HTML generation

All the patches will now be applied and the scripts to generate module list
and the main executable are now called from the compile script.
parent 362439a9
...@@ -98,6 +98,21 @@ export RANLIB=emranlib ...@@ -98,6 +98,21 @@ export RANLIB=emranlib
# Check that clang is working # Check that clang is working
clang --version clang --version
diagnostic "Patching"
# patching emscripten
cd emsdk-portable/emscripten/incoming
if [ -d ../../../patch_emscripten ] && [ "$(ls -A ../../../patch_emscripten)" ]; then
git am -3 ../../../patch_emscripten/*
fi
cd ../../..
cd vlc
# patching vlc
if [ -d ../patch_vlc ] && [ "$(ls -A ../patch_vlc)" ]; then
git am -3 ../patch_vlc/*
fi
# BOOTSTRAP # BOOTSTRAP
if [ ! -f configure ]; then if [ ! -f configure ]; then
...@@ -173,3 +188,18 @@ OPTIONS=" ...@@ -173,3 +188,18 @@ OPTIONS="
../configure ${OPTIONS} ../configure ${OPTIONS}
make ${MAKEFLAGS} make ${MAKEFLAGS}
diagnostic "Generating module list"
cd ../..
./generate_modules_list.sh
cd vlc/build-emscripten
emcc vlc-modules.c -o vlc-modules.bc
cd ../..
# copy Dolby_Canyon.vob
diagnostic "copying video"
cp Dolby_Canyon.vob vlc/build-emscripten/Dolby_Canyon.vob
diagnostic "Generating executable"
cp main.c vlc/build-emscripten/
./create_main.sh
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