Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 3afe847

Browse files
committed
Optimize build scripts to reduce build time
1 parent cc8a08e commit 3afe847

17 files changed

+40
-29
lines changed

wasm/build-scripts/build-fdk-aac.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ CONF_FLAGS=(
99
--prefix=$BUILD_DIR # install library in a build directory for FFmpeg to include
1010
--host=i686-linux # use i686 linux
1111
--disable-shared # disable shared library
12+
--disable-dependency-tracking # speedup one-time build
1213
)
1314
echo "CONF_FLAGS=${CONF_FLAGS[@]}"
1415
(cd $LIB_PATH && \
1516
emconfigure ./autogen.sh && \
16-
CFLAGS=$CFLAGS emconfigure ./configure "${CONF_FLAGS[@]}")
17-
emmake make -C $LIB_PATH clean
17+
CFLAGS=$CFLAGS emconfigure ./configure -C "${CONF_FLAGS[@]}")
1818
emmake make -C $LIB_PATH install -j
19+
emmake make -C $LIB_PATH clean

wasm/build-scripts/build-freetype2.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ CONF_FLAGS=(
1313
echo "CONF_FLAGS=${CONF_FLAGS[@]}"
1414
(cd $LIB_PATH && \
1515
emconfigure ./autogen.sh && \
16-
CFLAGS=$CFLAGS emconfigure ./configure "${CONF_FLAGS[@]}")
17-
emmake make -C $LIB_PATH clean
16+
CFLAGS=$CFLAGS emconfigure ./configure -C "${CONF_FLAGS[@]}")
1817
emmake make -C $LIB_PATH install -j
18+
emmake make -C $LIB_PATH clean

wasm/build-scripts/build-fribidi.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ CONF_FLAGS=(
1717
echo "CONF_FLAGS=${CONF_FLAGS[@]}"
1818
(cd $LIB_PATH && \
1919
emconfigure ./autogen.sh && \
20-
CFLAGS=$CFLAGS emconfigure ./configure "${CONF_FLAGS[@]}")
21-
emmake make -C $LIB_PATH clean
20+
CFLAGS=$CFLAGS emconfigure ./configure -C "${CONF_FLAGS[@]}")
2221
emmake make -C $LIB_PATH install -j
22+
emmake make -C $LIB_PATH clean

wasm/build-scripts/build-harfbuzz.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ CONF_FLAGS=(
1414
echo "CONF_FLAGS=${CONF_FLAGS[@]}"
1515
(cd $LIB_PATH && \
1616
emconfigure ./autogen.sh && \
17-
CFLAGS=$CFLAGS emconfigure ./configure "${CONF_FLAGS[@]}")
18-
emmake make -C $LIB_PATH clean
17+
CFLAGS=$CFLAGS emconfigure ./configure -C "${CONF_FLAGS[@]}")
1918
emmake make -C $LIB_PATH install -j
19+
emmake make -C $LIB_PATH clean

wasm/build-scripts/build-lame.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ CONF_FLAGS=(
1111
--disable-shared # disable shared library
1212
--disable-frontend # exclude lame executable
1313
--disable-analyzer-hooks # exclude analyzer hooks
14+
--disable-dependency-tracking # speed up one-time build
15+
--disable-gtktest
1416
)
1517
echo "CONF_FLAGS=${CONF_FLAGS[@]}"
1618
(cd $LIB_PATH && CFLAGS=$CFLAGS emconfigure ./configure "${CONF_FLAGS[@]}")
17-
emmake make -C $LIB_PATH clean
1819
emmake make -C $LIB_PATH install -j
20+
emmake make -C $LIB_PATH clean

wasm/build-scripts/build-libass.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ CONF_FLAGS=(
1414
--disable-require-system-font-provider
1515
)
1616
echo "CONF_FLAGS=${CONF_FLAGS[@]}"
17-
(cd $LIB_PATH && ./autogen.sh && EM_PKG_CONFIG_PATH=$EM_PKG_CONFIG_PATH emconfigure ./configure "${CONF_FLAGS[@]}")
18-
emmake make -C $LIB_PATH clean
17+
(cd $LIB_PATH && ./autogen.sh && EM_PKG_CONFIG_PATH=$EM_PKG_CONFIG_PATH emconfigure ./configure -C "${CONF_FLAGS[@]}")
1918
emmake make -C $LIB_PATH install -j
19+
emmake make -C $LIB_PATH clean

wasm/build-scripts/build-libvpx.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ CONF_FLAGS=(
1313
--disable-tools # not to build tools
1414
--disable-docs # not to build docs
1515
--disable-unit-tests # not to do unit tests
16+
--disable-dependency-tracking # speed up one-time build
1617
--extra-cflags="$FLAGS" # flags to use pthread and code optimization
1718
--extra-cxxflags="$FLAGS" # flags to use pthread and code optimization
1819
)
1920
echo "CONF_FLAGS=${CONF_FLAGS[@]}"
2021
(cd $LIB_PATH && LDFLAGS="$FLAGS" STRIP="llvm-strip" emconfigure ./configure "${CONF_FLAGS[@]}")
21-
emmake make -C $LIB_PATH clean
2222
emmake make -C $LIB_PATH install -j
23+
emmake make -C $LIB_PATH clean

wasm/build-scripts/build-libwebp.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ cd $LIB_PATH
2828
mkdir -p build
2929
cd build
3030
emmake cmake .. -DCMAKE_C_FLAGS="$CXXFLAGS" ${CM_FLAGS[@]}
31-
emmake make clean
3231
emmake make install
32+
emmake make clean
3333
cd $ROOT_DIR

wasm/build-scripts/build-ogg.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@ CONF_FLAGS=(
99
--prefix=$BUILD_DIR # install library in a build directory for FFmpeg to include
1010
--host=i686-linux # use i686 linux
1111
--disable-shared # disable shared library
12+
--disable-dependency-tracking # speed up one-time build
13+
--disable-maintainer-mode
1214
)
1315
echo "CONF_FLAGS=${CONF_FLAGS[@]}"
1416
(cd $LIB_PATH && \
1517
emconfigure ./autogen.sh && \
16-
CFLAGS=$CFLAGS emconfigure ./configure "${CONF_FLAGS[@]}")
17-
emmake make -C $LIB_PATH clean
18+
CFLAGS=$CFLAGS emconfigure ./configure -C "${CONF_FLAGS[@]}")
1819
emmake make -C $LIB_PATH install -j
20+
emmake make -C $LIB_PATH clean

wasm/build-scripts/build-opus.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ CONF_FLAGS=(
1818
echo "CONF_FLAGS=${CONF_FLAGS[@]}"
1919
(cd $LIB_PATH && \
2020
emconfigure ./autogen.sh && \
21-
CFLAGS=$CFLAGS emconfigure ./configure "${CONF_FLAGS[@]}")
22-
emmake make -C $LIB_PATH clean
21+
CFLAGS=$CFLAGS emconfigure ./configure -C "${CONF_FLAGS[@]}")
2322
emmake make -C $LIB_PATH install -j
23+
emmake make -C $LIB_PATH clean

0 commit comments

Comments
 (0)