Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
3afe8477
Commit
3afe8477
authored
May 17, 2021
by
Jerome Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Optimize build scripts to reduce build time
parent
cc8a08ed
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
40 additions
and
29 deletions
+40
-29
build-fdk-aac.sh
wasm/build-scripts/build-fdk-aac.sh
+3
-2
build-freetype2.sh
wasm/build-scripts/build-freetype2.sh
+2
-2
build-fribidi.sh
wasm/build-scripts/build-fribidi.sh
+2
-2
build-harfbuzz.sh
wasm/build-scripts/build-harfbuzz.sh
+2
-2
build-lame.sh
wasm/build-scripts/build-lame.sh
+3
-1
build-libass.sh
wasm/build-scripts/build-libass.sh
+2
-2
build-libvpx.sh
wasm/build-scripts/build-libvpx.sh
+2
-1
build-libwebp.sh
wasm/build-scripts/build-libwebp.sh
+1
-1
build-ogg.sh
wasm/build-scripts/build-ogg.sh
+4
-2
build-opus.sh
wasm/build-scripts/build-opus.sh
+2
-2
build-theora.sh
wasm/build-scripts/build-theora.sh
+2
-2
build-vorbis.sh
wasm/build-scripts/build-vorbis.sh
+3
-4
build-wavpack.sh
wasm/build-scripts/build-wavpack.sh
+4
-2
build-x264.sh
wasm/build-scripts/build-x264.sh
+2
-2
build-x265.sh
wasm/build-scripts/build-x265.sh
+4
-0
build-zlib.sh
wasm/build-scripts/build-zlib.sh
+2
-1
configure-ffmpeg.sh
wasm/build-scripts/configure-ffmpeg.sh
+0
-1
No files found.
wasm/build-scripts/build-fdk-aac.sh
View file @
3afe8477
...
...
@@ -9,10 +9,11 @@ CONF_FLAGS=(
--prefix
=
$BUILD_DIR
# install library in a build directory for FFmpeg to include
--host
=
i686-linux
# use i686 linux
--disable-shared
# disable shared library
--disable-dependency-tracking
# speedup one-time build
)
echo
"CONF_FLAGS=
${
CONF_FLAGS
[@]
}
"
(
cd
$LIB_PATH
&&
\
emconfigure ./autogen.sh
&&
\
CFLAGS
=
$CFLAGS
emconfigure ./configure
"
${
CONF_FLAGS
[@]
}
"
)
emmake make
-C
$LIB_PATH
clean
CFLAGS
=
$CFLAGS
emconfigure ./configure
-C
"
${
CONF_FLAGS
[@]
}
"
)
emmake make
-C
$LIB_PATH
install
-j
emmake make
-C
$LIB_PATH
clean
wasm/build-scripts/build-freetype2.sh
View file @
3afe8477
...
...
@@ -13,6 +13,6 @@ CONF_FLAGS=(
echo
"CONF_FLAGS=
${
CONF_FLAGS
[@]
}
"
(
cd
$LIB_PATH
&&
\
emconfigure ./autogen.sh
&&
\
CFLAGS
=
$CFLAGS
emconfigure ./configure
"
${
CONF_FLAGS
[@]
}
"
)
emmake make
-C
$LIB_PATH
clean
CFLAGS
=
$CFLAGS
emconfigure ./configure
-C
"
${
CONF_FLAGS
[@]
}
"
)
emmake make
-C
$LIB_PATH
install
-j
emmake make
-C
$LIB_PATH
clean
wasm/build-scripts/build-fribidi.sh
View file @
3afe8477
...
...
@@ -17,6 +17,6 @@ CONF_FLAGS=(
echo
"CONF_FLAGS=
${
CONF_FLAGS
[@]
}
"
(
cd
$LIB_PATH
&&
\
emconfigure ./autogen.sh
&&
\
CFLAGS
=
$CFLAGS
emconfigure ./configure
"
${
CONF_FLAGS
[@]
}
"
)
emmake make
-C
$LIB_PATH
clean
CFLAGS
=
$CFLAGS
emconfigure ./configure
-C
"
${
CONF_FLAGS
[@]
}
"
)
emmake make
-C
$LIB_PATH
install
-j
emmake make
-C
$LIB_PATH
clean
wasm/build-scripts/build-harfbuzz.sh
View file @
3afe8477
...
...
@@ -14,6 +14,6 @@ CONF_FLAGS=(
echo
"CONF_FLAGS=
${
CONF_FLAGS
[@]
}
"
(
cd
$LIB_PATH
&&
\
emconfigure ./autogen.sh
&&
\
CFLAGS
=
$CFLAGS
emconfigure ./configure
"
${
CONF_FLAGS
[@]
}
"
)
emmake make
-C
$LIB_PATH
clean
CFLAGS
=
$CFLAGS
emconfigure ./configure
-C
"
${
CONF_FLAGS
[@]
}
"
)
emmake make
-C
$LIB_PATH
install
-j
emmake make
-C
$LIB_PATH
clean
wasm/build-scripts/build-lame.sh
View file @
3afe8477
...
...
@@ -11,8 +11,10 @@ CONF_FLAGS=(
--disable-shared
# disable shared library
--disable-frontend
# exclude lame executable
--disable-analyzer-hooks
# exclude analyzer hooks
--disable-dependency-tracking
# speed up one-time build
--disable-gtktest
)
echo
"CONF_FLAGS=
${
CONF_FLAGS
[@]
}
"
(
cd
$LIB_PATH
&&
CFLAGS
=
$CFLAGS
emconfigure ./configure
"
${
CONF_FLAGS
[@]
}
"
)
emmake make
-C
$LIB_PATH
clean
emmake make
-C
$LIB_PATH
install
-j
emmake make
-C
$LIB_PATH
clean
wasm/build-scripts/build-libass.sh
View file @
3afe8477
...
...
@@ -14,6 +14,6 @@ CONF_FLAGS=(
--disable-require-system-font-provider
)
echo
"CONF_FLAGS=
${
CONF_FLAGS
[@]
}
"
(
cd
$LIB_PATH
&&
./autogen.sh
&&
EM_PKG_CONFIG_PATH
=
$EM_PKG_CONFIG_PATH
emconfigure ./configure
"
${
CONF_FLAGS
[@]
}
"
)
emmake make
-C
$LIB_PATH
clean
(
cd
$LIB_PATH
&&
./autogen.sh
&&
EM_PKG_CONFIG_PATH
=
$EM_PKG_CONFIG_PATH
emconfigure ./configure
-C
"
${
CONF_FLAGS
[@]
}
"
)
emmake make
-C
$LIB_PATH
install
-j
emmake make
-C
$LIB_PATH
clean
wasm/build-scripts/build-libvpx.sh
View file @
3afe8477
...
...
@@ -13,10 +13,11 @@ CONF_FLAGS=(
--disable-tools
# not to build tools
--disable-docs
# not to build docs
--disable-unit-tests
# not to do unit tests
--disable-dependency-tracking
# speed up one-time build
--extra-cflags
=
"
$FLAGS
"
# flags to use pthread and code optimization
--extra-cxxflags
=
"
$FLAGS
"
# flags to use pthread and code optimization
)
echo
"CONF_FLAGS=
${
CONF_FLAGS
[@]
}
"
(
cd
$LIB_PATH
&&
LDFLAGS
=
"
$FLAGS
"
STRIP
=
"llvm-strip"
emconfigure ./configure
"
${
CONF_FLAGS
[@]
}
"
)
emmake make
-C
$LIB_PATH
clean
emmake make
-C
$LIB_PATH
install
-j
emmake make
-C
$LIB_PATH
clean
wasm/build-scripts/build-libwebp.sh
View file @
3afe8477
...
...
@@ -28,6 +28,6 @@ cd $LIB_PATH
mkdir
-p
build
cd
build
emmake cmake ..
-DCMAKE_C_FLAGS
=
"
$CXXFLAGS
"
${
CM_FLAGS
[@]
}
emmake make clean
emmake make
install
emmake make clean
cd
$ROOT_DIR
wasm/build-scripts/build-ogg.sh
View file @
3afe8477
...
...
@@ -9,10 +9,12 @@ CONF_FLAGS=(
--prefix
=
$BUILD_DIR
# install library in a build directory for FFmpeg to include
--host
=
i686-linux
# use i686 linux
--disable-shared
# disable shared library
--disable-dependency-tracking
# speed up one-time build
--disable-maintainer-mode
)
echo
"CONF_FLAGS=
${
CONF_FLAGS
[@]
}
"
(
cd
$LIB_PATH
&&
\
emconfigure ./autogen.sh
&&
\
CFLAGS
=
$CFLAGS
emconfigure ./configure
"
${
CONF_FLAGS
[@]
}
"
)
emmake make
-C
$LIB_PATH
clean
CFLAGS
=
$CFLAGS
emconfigure ./configure
-C
"
${
CONF_FLAGS
[@]
}
"
)
emmake make
-C
$LIB_PATH
install
-j
emmake make
-C
$LIB_PATH
clean
wasm/build-scripts/build-opus.sh
View file @
3afe8477
...
...
@@ -18,6 +18,6 @@ CONF_FLAGS=(
echo
"CONF_FLAGS=
${
CONF_FLAGS
[@]
}
"
(
cd
$LIB_PATH
&&
\
emconfigure ./autogen.sh
&&
\
CFLAGS
=
$CFLAGS
emconfigure ./configure
"
${
CONF_FLAGS
[@]
}
"
)
emmake make
-C
$LIB_PATH
clean
CFLAGS
=
$CFLAGS
emconfigure ./configure
-C
"
${
CONF_FLAGS
[@]
}
"
)
emmake make
-C
$LIB_PATH
install
-j
emmake make
-C
$LIB_PATH
clean
wasm/build-scripts/build-theora.sh
View file @
3afe8477
...
...
@@ -21,6 +21,6 @@ CONF_FLAGS=(
)
echo
"CONF_FLAGS=
${
CONF_FLAGS
[@]
}
"
(
cd
$LIB_PATH
&&
\
CFLAGS
=
$CFLAGS
LDFLAGS
=
$LDFLAGS
emconfigure ./autogen.sh
"
${
CONF_FLAGS
[@]
}
"
)
emmake make
-C
$LIB_PATH
clean
CFLAGS
=
$CFLAGS
LDFLAGS
=
$LDFLAGS
emconfigure ./autogen.sh
-C
"
${
CONF_FLAGS
[@]
}
"
)
emmake make
-C
$LIB_PATH
install
-j
emmake make
-C
$LIB_PATH
clean
wasm/build-scripts/build-vorbis.sh
View file @
3afe8477
...
...
@@ -14,12 +14,11 @@ CONF_FLAGS=(
--enable-examples
=
no
--enable-fast-install
=
no
--disable-oggtest
# disable oggtests
--disable-dependency-tracking
# speed up one-time build
)
echo
"CONF_FLAGS=
${
CONF_FLAGS
[@]
}
"
(
cd
$LIB_PATH
&&
\
emconfigure ./autogen.sh
&&
\
CFLAGS
=
$CFLAGS
LDFLAGS
=
$LDFLAGS
emconfigure ./configure
"
${
CONF_FLAGS
[@]
}
"
)
# (cd $LIB_PATH && \
# CFLAGS=$CFLAGS LDFLAGS=$LDFLAGS emconfigure ./autogen.sh "${CONF_FLAGS[@]}")
emmake make
-C
$LIB_PATH
clean
CFLAGS
=
$CFLAGS
LDFLAGS
=
$LDFLAGS
emconfigure ./configure
-C
"
${
CONF_FLAGS
[@]
}
"
)
emmake make
-C
$LIB_PATH
install
-j
emmake make
-C
$LIB_PATH
clean
wasm/build-scripts/build-wavpack.sh
View file @
3afe8477
...
...
@@ -15,8 +15,10 @@ CONF_FLAGS=(
--disable-dsd
# disalbe legacy
--enable-legacy
# enable compability for old version of wav
--disable-shared
# enable building static library
--disable-dependency-tracking
# speed up one-time build
--disable-maintainer-mode
)
echo
"CONF_FLAGS=
${
CONF_FLAGS
[@]
}
"
(
cd
$LIB_PATH
&&
CFLAGS
=
$CFLAGS
emconfigure ./autogen.sh
"
${
CONF_FLAGS
[@]
}
"
)
emmake make
-C
$LIB_PATH
clean
(
cd
$LIB_PATH
&&
CFLAGS
=
$CFLAGS
emconfigure ./autogen.sh
-C
"
${
CONF_FLAGS
[@]
}
"
)
emmake make
-C
$LIB_PATH
install
-j
emmake make
-C
$LIB_PATH
clean
wasm/build-scripts/build-x264.sh
View file @
3afe8477
...
...
@@ -13,6 +13,6 @@ CONF_FLAGS=(
--extra-cflags
=
"-c -s USE_PTHREADS=1
$OPTIM_FLAGS
"
# flags to use pthread and code optimization
)
echo
"CONF_FLAGS=
${
CONF_FLAGS
[@]
}
"
(
cd
$LIB_PATH
&&
emconfigure ./configure
"
${
CONF_FLAGS
[@]
}
"
)
emmake make
-C
$LIB_PATH
clean
(
cd
$LIB_PATH
&&
emconfigure ./configure
-C
"
${
CONF_FLAGS
[@]
}
"
)
emmake make
-C
$LIB_PATH
install-lib-static
-j
emmake make
-C
$LIB_PATH
clean
wasm/build-scripts/build-x265.sh
View file @
3afe8477
...
...
@@ -68,4 +68,8 @@ EOF
cp
libx265.a
$BUILD_DIR
/lib
emmake make
-C
.
clean
emmake make
-C
../10bit clean
emmake make
-C
../12bit clean
cd
$ROOT_DIR
wasm/build-scripts/build-zlib.sh
View file @
3afe8477
...
...
@@ -9,6 +9,7 @@ CM_FLAGS=(
-DCMAKE_INSTALL_PREFIX
=
$BUILD_DIR
-DCMAKE_TOOLCHAIN_FILE
=
$TOOLCHAIN_FILE
-DBUILD_SHARED_LIBS
=
OFF
-DSKIP_INSTALL_FILES
=
ON
)
echo
"CM_FLAGS=
${
CM_FLAGS
[@]
}
"
...
...
@@ -17,6 +18,6 @@ rm -rf build zconf.h
mkdir
-p
build
cd
build
emmake cmake ..
-DCMAKE_C_FLAGS
=
"
$CXXFLAGS
"
${
CM_FLAGS
[@]
}
emmake make clean
emmake make
install
emmake make clean
cd
$ROOT_DIR
wasm/build-scripts/configure-ffmpeg.sh
View file @
3afe8477
...
...
@@ -21,7 +21,6 @@ FLAGS=(
--enable-libwebp
# enable libwebp
--enable-libass
# enable libass
--enable-libfribidi
# enable libfribidi
# --enable-filter=subtitles,overlay
# --enable-libaom # enable libaom
)
echo
"FFMPEG_CONFIG_FLAGS=
${
FLAGS
[@]
}
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment