36 lines
1.0 KiB
Bash
Executable File
36 lines
1.0 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
CONF_FLAGS=(
|
|
--target-os=none # disable target specific configs
|
|
--arch=x86_32 # use x86_32 arch
|
|
--enable-cross-compile # use cross compile configs
|
|
--disable-asm # disable asm
|
|
--disable-stripping # disable stripping as it won't work
|
|
--disable-programs # disable ffmpeg, ffprobe and ffplay build
|
|
--disable-doc # disable doc build
|
|
--disable-debug # disable debug mode
|
|
--disable-runtime-cpudetect # disable cpu detection
|
|
--disable-autodetect # disable env auto detect
|
|
|
|
# assign toolchains and extra flags
|
|
--nm="llvm-nm"
|
|
--ar=emar
|
|
--ranlib=emranlib
|
|
--cc=emcc
|
|
--cxx=em++
|
|
--objcc=emcc
|
|
--dep-cc=emcc
|
|
--extra-cflags="$CFLAGS"
|
|
--extra-cxxflags="$CFLAGS"
|
|
|
|
# disable thread when FFMPEG_ST is NOT defined
|
|
${FFMPEG_ST:+ --disable-pthreads --disable-w32threads --disable-os2threads}
|
|
|
|
# extra libraries
|
|
--enable-gpl
|
|
--enable-libx264
|
|
)
|
|
|
|
emconfigure ./configure "${CONF_FLAGS[@]}"
|
|
emmake make -j
|