Reorg folders and use core as ffmpeg from now on

This commit is contained in:
Jerome Wu
2022-09-22 13:06:44 +08:00
parent 4f03229810
commit 20790e4fd2
138 changed files with 10505 additions and 1223 deletions

View File

@@ -1,20 +1,16 @@
#!/bin/bash
EXTRA_CONF_FLAGS=(
--disable-thread
set -euo pipefail
CONF_FLAGS=(
--prefix=$INSTALL_DIR # lib installation dir
--host=x86-gnu # use x86 linux host
--enable-static # build static library
--disable-cli # disable cli build
--disable-asm # disable assembly
--extra-cflags="$CFLAGS" # add extra cflags
${FFMPEG_ST:+ --disable-thread} # disable thread when FFMPEG_ST is defined
)
if [[ ! -z "$FFMPEG_MT" ]]; then
EXTRA_CONF_FLAGS=()
fi
emconfigure ./configure \
--prefix=$INSTALL_DIR \
--host=x86-gnu \
--enable-static \
--disable-cli \
--disable-asm \
--extra-cflags="$CFLAGS" \
${EXTRA_CONF_FLAGS[@]}
emconfigure ./configure "${CONF_FLAGS[@]}"
emmake make install-lib-static -j