Commit 4fae2694 authored by Linshizhi's avatar Linshizhi

update build script

parent 278814f6
......@@ -41,11 +41,21 @@ fi
if [ "$BUILD_FFMPEG" == "true" ]; then
# Build ffmpeg.wasm-core
components=(libavformat libavcodec libavfilter libavresample libavutil libpostproc libswresample libswscale libavdevice)
cd ${LIB_DIR}/ffmpeg.wasm-core
bash ./build.sh
cp lib*/*.a ${BUILD_DIR}/lib
cp -r build/include/* ${BUILD_DIR}/include
cp -r build/lib/* ${BUILD_DIR}/lib
for comp in ${components[@]}; do
if [ ! -d "${BUILD_DIR}/include/${comp}" ]; then
mkdir ${BUILD_DIR}/include/${comp}
cp ${comp}/*.h ${BUILD_DIR}/include/${comp}
fi
done
fi
# Build Protocols
......@@ -98,7 +108,7 @@ else
fi
FLAGS_ENCODER=(
-I$BUILD_DIR/include -L$BUILD_DIR/lib -I$LIB_DIR/ffmpeg.wasm-core
-I$BUILD_DIR/include -L$BUILD_DIR/lib
-Wno-deprecated-declarations -Wno-pointer-sign -Wno-implicit-int-float-conversion -Wno-switch -Wno-parentheses -Qunused-arguments
-lavdevice -lavfilter -lavformat -lavcodec -lswresample -lswscale -lavutil -lpostproc -lm -lx264 -lz
......@@ -123,7 +133,7 @@ FLAGS_ENCODER=(
FLAGS_MUXER=(
-I$BUILD_DIR/include -L$BUILD_DIR/lib -I$LIB_DIR/ffmpeg.wasm-core
-I$BUILD_DIR/include -L$BUILD_DIR/lib
-Wno-deprecated-declarations -Wno-pointer-sign -Wno-implicit-int-float-conversion -Wno-switch -Wno-parentheses -Qunused-arguments
-lavdevice -lavfilter -lavformat -lavcodec -lswresample -lswscale -lavutil -lpostproc -lm -lx264 -lz -lprotos
......
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