|
|
@ -1,5 +1,24 @@ |
|
|
|
#!/usr/bin/env bash |
|
|
|
#!/usr/bin/env bash |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#Use --cpu |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#Try x-android-gcc with manual CC, CXX and other |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case $ANDROID_ABI in |
|
|
|
|
|
|
|
x86) |
|
|
|
|
|
|
|
EXTRA_BUILD_FLAGS="--enable-sse2 --enable-sse3 --enable-ssse3" |
|
|
|
|
|
|
|
;; |
|
|
|
|
|
|
|
x86_64) |
|
|
|
|
|
|
|
EXTRA_BUILD_FLAGS="--enable-sse2 --enable-sse3 --enable-ssse3 --enable-sse4_1" |
|
|
|
|
|
|
|
;; |
|
|
|
|
|
|
|
armeabi-v7a) |
|
|
|
|
|
|
|
EXTRA_BUILD_FLAGS="--enable-thumb --enable-neon --enable-neon-asm" |
|
|
|
|
|
|
|
;; |
|
|
|
|
|
|
|
arm64-v8a) |
|
|
|
|
|
|
|
EXTRA_BUILD_FLAGS="--enable-thumb --enable-neon --enable-neon-asm" |
|
|
|
|
|
|
|
;; |
|
|
|
|
|
|
|
esac |
|
|
|
|
|
|
|
|
|
|
|
CC=${FAM_CC} \ |
|
|
|
CC=${FAM_CC} \ |
|
|
|
CXX=${FAM_CXX} \ |
|
|
|
CXX=${FAM_CXX} \ |
|
|
|
AR=${FAM_AR} \ |
|
|
|
AR=${FAM_AR} \ |
|
|
@ -8,19 +27,29 @@ AS=${FAM_AS} \ |
|
|
|
STRIP=${FAM_STRIP} \ |
|
|
|
STRIP=${FAM_STRIP} \ |
|
|
|
NM=${FAM_NM} \ |
|
|
|
NM=${FAM_NM} \ |
|
|
|
./configure \ |
|
|
|
./configure \ |
|
|
|
|
|
|
|
${EXTRA_BUILD_FLAGS} \ |
|
|
|
--prefix=${INSTALL_DIR} \ |
|
|
|
--prefix=${INSTALL_DIR} \ |
|
|
|
--target=generic-gnu \ |
|
|
|
--target=generic-gnu \ |
|
|
|
|
|
|
|
--libc=${SYSROOT_PATH} \ |
|
|
|
--enable-pic \ |
|
|
|
--enable-pic \ |
|
|
|
|
|
|
|
--enable-realtime-only \ |
|
|
|
|
|
|
|
--enable-install-libs \ |
|
|
|
|
|
|
|
--enable-multithread \ |
|
|
|
|
|
|
|
--enable-webm-io \ |
|
|
|
|
|
|
|
--enable-libyuv \ |
|
|
|
|
|
|
|
--enable-small \ |
|
|
|
|
|
|
|
--enable-better-hw-compatibility \ |
|
|
|
|
|
|
|
--enable-vp8 \ |
|
|
|
|
|
|
|
--enable-vp9 \ |
|
|
|
|
|
|
|
--enable-static \ |
|
|
|
|
|
|
|
--disable-shared \ |
|
|
|
--disable-ccache \ |
|
|
|
--disable-ccache \ |
|
|
|
--disable-debug \ |
|
|
|
--disable-debug \ |
|
|
|
--disable-gprof \ |
|
|
|
--disable-gprof \ |
|
|
|
--disable-gcov \ |
|
|
|
--disable-gcov \ |
|
|
|
--enable-thumb \ |
|
|
|
|
|
|
|
--enable-realtime-only \ |
|
|
|
|
|
|
|
--disable-dependency-tracking \ |
|
|
|
--disable-dependency-tracking \ |
|
|
|
--disable-install-docs \ |
|
|
|
--disable-install-docs \ |
|
|
|
--disable-install-bins \ |
|
|
|
--disable-install-bins \ |
|
|
|
--enable-install-libs \ |
|
|
|
|
|
|
|
--disable-install-srcs \ |
|
|
|
--disable-install-srcs \ |
|
|
|
--disable-examples \ |
|
|
|
--disable-examples \ |
|
|
|
--disable-tools \ |
|
|
|
--disable-tools \ |
|
|
@ -28,17 +57,7 @@ NM=${FAM_NM} \ |
|
|
|
--disable-unit-tests \ |
|
|
|
--disable-unit-tests \ |
|
|
|
--disable-decode-perf-tests \ |
|
|
|
--disable-decode-perf-tests \ |
|
|
|
--disable-encode-perf-tests \ |
|
|
|
--disable-encode-perf-tests \ |
|
|
|
--libc=${SYSROOT_PATH} \ |
|
|
|
--disable-runtime-cpu-detect || exit 1 |
|
|
|
--enable-better-hw-compatibility \ |
|
|
|
|
|
|
|
--enable-vp8 \ |
|
|
|
|
|
|
|
--enable-vp9 \ |
|
|
|
|
|
|
|
--disable-runtime-cpu-detect \ |
|
|
|
|
|
|
|
--enable-static \ |
|
|
|
|
|
|
|
--disable-shared \ |
|
|
|
|
|
|
|
--enable-multithread \ |
|
|
|
|
|
|
|
--enable-webm-io \ |
|
|
|
|
|
|
|
--enable-libyuv \ |
|
|
|
|
|
|
|
--enable-small || exit 1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
${MAKE_EXECUTABLE} clean |
|
|
|
${MAKE_EXECUTABLE} clean |
|
|
|
${MAKE_EXECUTABLE} -j${HOST_NPROC} |
|
|
|
${MAKE_EXECUTABLE} -j${HOST_NPROC} |
|
|
|