parent
1ea2b982da
commit
7b237b4d5b
@ -0,0 +1,40 @@ |
||||
#!/usr/bin/env bash |
||||
|
||||
X264_AS=${FAM_CC} |
||||
|
||||
X264_ADDITIONAL_FLAGS= |
||||
|
||||
case $ANDROID_ABI in |
||||
x86) |
||||
# Disabling assembler optimizations due to text relocations |
||||
X264_ADDITIONAL_FLAGS=--disable-asm |
||||
;; |
||||
x86_64) |
||||
X264_AS=${NASM_EXECUTABLE} |
||||
;; |
||||
esac |
||||
|
||||
CC=${FAM_CC} \ |
||||
AR=${FAM_AR} \ |
||||
AS=${X264_AS} \ |
||||
RANLIB=${FAM_RANLIB} \ |
||||
STRIP=${FAM_STRIP} \ |
||||
./configure \ |
||||
--prefix=${INSTALL_DIR} \ |
||||
--host=${TARGET} \ |
||||
--sysroot=${SYSROOT_PATH} \ |
||||
--enable-pic \ |
||||
--enable-static \ |
||||
--disable-cli \ |
||||
--disable-avs \ |
||||
--disable-lavf \ |
||||
--disable-cli \ |
||||
--disable-ffms \ |
||||
--disable-opencl \ |
||||
--chroma-format=all \ |
||||
--bit-depth=all \ |
||||
${X264_ADDITIONAL_FLAGS} || exit 1 |
||||
|
||||
${MAKE_EXECUTABLE} clean |
||||
${MAKE_EXECUTABLE} -j${HOST_NPROC} |
||||
${MAKE_EXECUTABLE} install |
@ -0,0 +1,12 @@ |
||||
#!/usr/bin/env bash |
||||
|
||||
source ${SCRIPTS_DIR}/common-functions.sh |
||||
|
||||
# Libx264 doesn't have any versioning system. Currently it has 2 branches: master and stable. |
||||
# Latest commit in stable branch |
||||
# Tue Jun 30 22:28:05 2020 +0300 |
||||
LIBX264_VERSION=cde9a93319bea766a92e306d69059c76de970190 |
||||
|
||||
downloadTarArchive \ |
||||
"libx264" \ |
||||
"https://code.videolan.org/videolan/x264/-/archive/${LIBX264_VERSION}/x264-${LIBX264_VERSION}.tar.gz" |
Loading…
Reference in new issue