|
|
|
@ -19,7 +19,6 @@ esac |
|
|
|
|
mkdir -p "${BUILD_DIR}" || return 1 |
|
|
|
|
cd "${BUILD_DIR}" || return 1 |
|
|
|
|
|
|
|
|
|
# @TODO TEST THESE |
|
|
|
|
# fix x86 and x86_64 assembly |
|
|
|
|
${SED_INLINE} 's/win64/macho64 -DPREFIX/g' ${BASEDIR}/src/x265/source/cmake/CMakeASM_NASMInformation.cmake |
|
|
|
|
${SED_INLINE} 's/win/macho/g' ${BASEDIR}/src/x265/source/cmake/CMakeASM_NASMInformation.cmake |
|
|
|
@ -31,18 +30,6 @@ ${SED_INLINE} 's/lsr 16/lsr #16/g' ${BASEDIR}/src/x265/source/common/arm/blockco |
|
|
|
|
${SED_INLINE} 's/function x265_/function _x265_/g' ${BASEDIR}/src/x265/source/common/arm/*.S |
|
|
|
|
${SED_INLINE} 's/ x265_/ _x265_/g' ${BASEDIR}/src/x265/source/common/arm/pixel-util.S |
|
|
|
|
|
|
|
|
|
# fixing relocation errors |
|
|
|
|
# ${SED_INLINE} 's/sad12_mask:/sad12_mask_bytes:/g' ${BASEDIR}/src/x265/source/common/arm/sad-a.S |
|
|
|
|
# ${SED_INLINE} 's/g_lumaFilter:/g_lumaFilter_bytes:/g' ${BASEDIR}/src/x265/source/common/arm/ipfilter8.S |
|
|
|
|
# ${SED_INLINE} 's/g_chromaFilter:/g_chromaFilter_bytes:/g' ${BASEDIR}/src/x265/source/common/arm/ipfilter8.S |
|
|
|
|
# ${SED_INLINE} 's/\.text/.equ sad12_mask, .-sad12_mask_bytes\ |
|
|
|
|
# \ |
|
|
|
|
# .text/g' ${BASEDIR}/src/x265/source/common/arm/sad-a.S |
|
|
|
|
# ${SED_INLINE} 's/\.text/.equ g_lumaFilter, .-g_lumaFilter_bytes\ |
|
|
|
|
# .equ g_chromaFilter, .-g_chromaFilter_bytes\ |
|
|
|
|
# \ |
|
|
|
|
# .text/g' ${BASEDIR}/src/x265/source/common/arm/ipfilter8.S |
|
|
|
|
|
|
|
|
|
# WORKAROUND TO USE A CUSTOM BUILD FILE |
|
|
|
|
overwrite_file "${BASEDIR}"/tools/patch/cmake/x265/CMakeLists.txt "${BASEDIR}"/src/"${LIB_NAME}"/source/CMakeLists.txt || return 1 |
|
|
|
|
|
|
|
|
|