Fix prd build

This commit is contained in:
Jerome Wu 2022-10-05 10:05:10 +08:00
parent 3de5af2cf3
commit 4369aaf208
3 changed files with 20 additions and 3 deletions

View File

@ -160,7 +160,23 @@ FROM ffmpeg-builder AS ffmpeg-wasm-builder
COPY src/bind /src/src/bind
COPY src/fftools /src/src/fftools
COPY build/ffmpeg-wasm.sh build.sh
ENV FFMPEG_LIBS="-lx264 -lx265 -lvpx -lmp3lame -logg -ltheora -lvorbis -lvorbisenc -lvorbisfile -lopus -lz -lwebp -lfreetype -lfribidi -lharfbuzz -lass"
ENV FFMPEG_LIBS \
-lx264 \
-lx265 \
-lvpx \
-lmp3lame \
-logg \
-ltheora \
-lvorbis \
-lvorbisenc \
-lvorbisfile \
-lopus \
-lz \
-lwebp \
-lfreetype \
-lfribidi \
-lharfbuzz \
-lass
RUN mkdir -p /src/dist/umd && bash -x /src/build.sh \
${FFMPEG_LIBS} \
-o dist/umd/ffmpeg-core.js

View File

@ -2,7 +2,7 @@ all: dev
MT_FLAGS := -sUSE_PTHREADS -pthread
# DEV_ARGS := --progress=plain
DEV_ARGS := --progress=plain
DEV_CFLAGS := --profiling
DEV_MT_CFLAGS := $(DEV_CFLAGS) $(MT_FLAGS)
PROD_CFLAGS := -O3 -msimd128

View File

@ -4,10 +4,11 @@ set -euo pipefail
CONF_FLAGS=(
--prefix=$INSTALL_DIR # install library in a build directory for FFmpeg to include
--host=i686-gnu # use i686 linux
--host=i686-none # use i686 unknown
--enable-shared=no # not to build shared library
--disable-asm # not to use asm
--disable-rtcd # not to detect cpu capabilities
--disable-intrinsics # not to use intrinsics
--disable-doc # not to build docs
--disable-extra-programs # not to build demo and tests
--disable-stack-protector