diff --git a/scripts/android/x264.sh b/scripts/android/x264.sh index 7115e2a..2c85322 100755 --- a/scripts/android/x264.sh +++ b/scripts/android/x264.sh @@ -2,6 +2,7 @@ # SET BUILD OPTIONS ASM_OPTIONS="" +DEBUG_OPTIONS="" case ${ARCH} in x86) @@ -22,6 +23,9 @@ x86-64) export CFLAGS="${CFLAGS} -mno-stackrealign" ;; esac +if [[ -n ${FFMPEG_KIT_DEBUG} ]]; then + DEBUG_OPTIONS="--enable-debug" +fi # ALWAYS CLEAN THE PREVIOUS BUILD make distclean 2>/dev/null 1>/dev/null @@ -38,6 +42,7 @@ fi --enable-static \ --disable-cli \ ${ASM_OPTIONS} \ + ${DEBUG_OPTIONS} \ --host="${HOST}" || return 1 make -j$(get_cpu_count) || return 1 diff --git a/scripts/apple/x264.sh b/scripts/apple/x264.sh index e80ed9c..7658c6c 100755 --- a/scripts/apple/x264.sh +++ b/scripts/apple/x264.sh @@ -2,6 +2,7 @@ # SET BUILD OPTIONS ASM_OPTIONS="" +DEBUG_OPTIONS="" case ${ARCH} in i386 | x86-64*) ASM_OPTIONS="--disable-asm" @@ -14,6 +15,9 @@ i386 | x86-64*) export AS="$(command -v nasm)" ;; esac +if [[ -n ${FFMPEG_KIT_DEBUG} ]]; then + DEBUG_OPTIONS="--enable-debug" +fi # ALWAYS CLEAN THE PREVIOUS BUILD make distclean 2>/dev/null 1>/dev/null @@ -37,6 +41,7 @@ ${SED_INLINE} 's/\-arch arm64//g' "${BASEDIR}"/src/"${LIB_NAME}"/configure 1>>"$ --enable-static \ --disable-cli \ ${ASM_OPTIONS} \ + ${DEBUG_OPTIONS} \ --host="${HOST}" || return 1 make -j$(get_cpu_count) || return 1