Skip to content
This repository has been archived by the owner on Oct 7, 2021. It is now read-only.

Commit

Permalink
-d, --debug option added.
Browse files Browse the repository at this point in the history
  • Loading branch information
tanersener committed Sep 4, 2018
1 parent 05d2422 commit 04d2709
Show file tree
Hide file tree
Showing 79 changed files with 93 additions and 85 deletions.
10 changes: 9 additions & 1 deletion android.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 81,8 @@ When compilation ends an Android Archive (AAR) file is created with enabled plat
echo -e "Options:"

echo -e " -h, --help\t\t\tdisplay this help and exit"
echo -e " -V, --version\t\t\tdisplay version information and exit\n"
echo -e " -V, --version\t\t\tdisplay version information and exit"
echo -e " -d, --debug\t\t\tbuild with debug information\n"

echo -e "Licensing options:"

Expand Down Expand Up @@ -157,6 158,10 @@ skip_library() {
export ${SKIP_VARIABLE}=1
}

enable_debug() {
export MOBILE_FFMPEG_DEBUG="-d"
}

reconf_library() {
RECONF_VARIABLE=$(echo "RECONF_$1" | sed "s/\-/\_/g")

Expand Down Expand Up @@ -451,6 456,9 @@ do

skip_library ${SKIP_LIBRARY}
;;
-d | --debug)
enable_debug
;;
--reconf-*)
CONF_LIBRARY=`echo $1 | sed -e 's/^--[A-Za-z]*-//g'`

Expand Down
2 changes: 1 addition & 1 deletion build/android-chromaprint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 60,7 @@ cmake -Wno-dev \
-DCMAKE_SYSTEM_PROCESSOR=$(get_cmake_target_processor) \
-DBUILD_SHARED_LIBS=0 .. || exit 1

make -j$(get_cpu_count) || exit 1
make ${MOBILE_FFMPEG_DEBUG} -j$(get_cpu_count) || exit 1

# CREATE PACKAGE CONFIG MANUALLY
create_chromaprint_package_config "1.4.3"
Expand Down
2 changes: 1 addition & 1 deletion build/android-expat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 53,7 @@ fi
--disable-fast-install \
--host=${TARGET_HOST} || exit 1

make -j$(get_cpu_count) || exit 1
make ${MOBILE_FFMPEG_DEBUG} -j$(get_cpu_count) || exit 1

# MANUALLY COPY PKG-CONFIG FILES
cp ./expat.pc ${INSTALL_PKG_CONFIG_DIR}
Expand Down
2 changes: 1 addition & 1 deletion build/android-ffmpeg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 333,7 @@ if [ $? -ne 0 ]; then
exit 1
fi

make -j$(get_cpu_count) 1>>${BASEDIR}/build.log 2>&1
make ${MOBILE_FFMPEG_DEBUG} -j$(get_cpu_count) 1>>${BASEDIR}/build.log 2>&1

if [ $? -ne 0 ]; then
echo "failed"
Expand Down
2 changes: 1 addition & 1 deletion build/android-fontconfig.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 57,7 @@ fi
--disable-docs \
--host=${TARGET_HOST} || exit 1

make -j$(get_cpu_count) || exit 1
make ${MOBILE_FFMPEG_DEBUG} -j$(get_cpu_count) || exit 1

# CREATE PACKAGE CONFIG MANUALLY
create_fontconfig_package_config "2.13.0"
Expand Down
2 changes: 1 addition & 1 deletion build/android-freetype.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 60,7 @@ export LIBPNG_LIBS="-L${BASEDIR}/prebuilt/android-$(get_target_build)/libpng/lib
--disable-mmap \
--host=${TARGET_HOST} || exit 1

make -j$(get_cpu_count) || exit 1
make ${MOBILE_FFMPEG_DEBUG} -j$(get_cpu_count) || exit 1

# CREATE PACKAGE CONFIG MANUALLY
create_freetype_package_config "22.0.16"
Expand Down
2 changes: 1 addition & 1 deletion build/android-fribidi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 54,7 @@ fi
--disable-deprecated \
--host=${TARGET_HOST} || exit 1

make -j$(get_cpu_count) || exit 1
make ${MOBILE_FFMPEG_DEBUG} -j$(get_cpu_count) || exit 1

# MANUALLY COPY PKG-CONFIG FILES
cp ./*.pc ${INSTALL_PKG_CONFIG_DIR}
Expand Down
2 changes: 1 addition & 1 deletion build/android-giflib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 52,7 @@ fi
--disable-fast-install \
--host=${TARGET_HOST} || exit 1

make -j$(get_cpu_count) || exit 1
make ${MOBILE_FFMPEG_DEBUG} -j$(get_cpu_count) || exit 1

# CREATE PACKAGE CONFIG MANUALLY
create_giflib_package_config "5.1.4"
Expand Down
2 changes: 1 addition & 1 deletion build/android-gmp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 53,7 @@ fi
--disable-maintainer-mode \
--host=${TARGET_HOST} || exit 1

make -j$(get_cpu_count) || exit 1
make ${MOBILE_FFMPEG_DEBUG} -j$(get_cpu_count) || exit 1

# CREATE PACKAGE CONFIG MANUALLY
create_gmp_package_config "6.1.2"
Expand Down
2 changes: 1 addition & 1 deletion build/android-gnutls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 75,7 @@ fi
--disable-maintainer-mode \
--host=${TARGET_HOST} || exit 1

make -j$(get_cpu_count) || exit 1
make ${MOBILE_FFMPEG_DEBUG} -j$(get_cpu_count) || exit 1

# CREATE PACKAGE CONFIG MANUALLY
create_gnutls_package_config "3.5.19"
Expand Down
2 changes: 1 addition & 1 deletion build/android-jpeg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 66,7 @@ cmake -Wno-dev \
-DCMAKE_SYSTEM_PROCESSOR=$(get_cmake_target_processor) \
-DENABLE_SHARED=0 .. || exit 1

make -j$(get_cpu_count) || exit 1
make ${MOBILE_FFMPEG_DEBUG} -j$(get_cpu_count) || exit 1

# MANUALLY COPY PKG-CONFIG FILES
cp ${BASEDIR}/src/${LIB_NAME}/build/pkgscripts/libjpeg.pc ${INSTALL_PKG_CONFIG_DIR}
Expand Down
2 changes: 1 addition & 1 deletion build/android-kvazaar.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 52,7 @@ fi
--disable-fast-install \
--host=${TARGET_HOST} || exit 1

make -j$(get_cpu_count) || exit 1
make ${MOBILE_FFMPEG_DEBUG} -j$(get_cpu_count) || exit 1

# MANUALLY COPY PKG-CONFIG FILES
cp ./src/kvazaar.pc ${INSTALL_PKG_CONFIG_DIR}
Expand Down
2 changes: 1 addition & 1 deletion build/android-lame.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 57,7 @@ fi
--disable-gtktest \
--host=${TARGET_HOST} || exit 1

make -j$(get_cpu_count) || exit 1
make ${MOBILE_FFMPEG_DEBUG} -j$(get_cpu_count) || exit 1

# CREATE PACKAGE CONFIG MANUALLY
create_libmp3lame_package_config "3.100"
Expand Down
2 changes: 1 addition & 1 deletion build/android-libaom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 85,7 @@ cmake -Wno-dev \
-DAOM_TARGET_CPU=generic \
-DBUILD_SHARED_LIBS=0 .. || exit 1

make -j$(get_cpu_count) || exit 1
make ${MOBILE_FFMPEG_DEBUG} -j$(get_cpu_count) || exit 1

# CREATE PACKAGE CONFIG MANUALLY
create_libaom_package_config "0.1.0"
Expand Down
2 changes: 1 addition & 1 deletion build/android-libass.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 71,7 @@ esac
${ASM_FLAGS} \
--host=${TARGET_HOST} || exit 1

make -j$(get_cpu_count) || exit 1
make ${MOBILE_FFMPEG_DEBUG} -j$(get_cpu_count) || exit 1

# MANUALLY COPY PKG-CONFIG FILES
cp ./*.pc ${INSTALL_PKG_CONFIG_DIR}
Expand Down
2 changes: 1 addition & 1 deletion build/android-libiconv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 52,7 @@ fi
--disable-rpath \
--host=${TARGET_HOST} || exit 1

make -j$(get_cpu_count) || exit 1
make ${MOBILE_FFMPEG_DEBUG} -j$(get_cpu_count) || exit 1

# CREATE PACKAGE CONFIG MANUALLY
create_libiconv_package_config "1.15"
Expand Down
2 changes: 1 addition & 1 deletion build/android-libilbc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 51,7 @@ fi
--disable-fast-install \
--host=${TARGET_HOST} || exit 1

make -j$(get_cpu_count) || exit 1
make ${MOBILE_FFMPEG_DEBUG} -j$(get_cpu_count) || exit 1

# MANUALLY COPY PKG-CONFIG FILES
cp ./libilbc.pc ${INSTALL_PKG_CONFIG_DIR}
Expand Down
2 changes: 1 addition & 1 deletion build/android-libogg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 51,7 @@ fi
--disable-fast-install \
--host=${TARGET_HOST} || exit 1

make -j$(get_cpu_count) || exit 1
make ${MOBILE_FFMPEG_DEBUG} -j$(get_cpu_count) || exit 1

# MANUALLY COPY PKG-CONFIG FILES
cp ogg.pc ${INSTALL_PKG_CONFIG_DIR}
Expand Down
2 changes: 1 addition & 1 deletion build/android-libpng.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 70,7 @@ fi
${CPU_SPECIFIC_OPTIONS} \
--host=${TARGET_HOST} || exit 1

make -j$(get_cpu_count) || exit 1
make ${MOBILE_FFMPEG_DEBUG} -j$(get_cpu_count) || exit 1

# MANUALLY COPY PKG-CONFIG FILES
cp ./*.pc ${INSTALL_PKG_CONFIG_DIR}
Expand Down
2 changes: 1 addition & 1 deletion build/android-libtheora.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 55,7 @@ fi
--disable-valgrind-testing \
--host=${TARGET_HOST} || exit 1

make -j$(get_cpu_count) || exit 1
make ${MOBILE_FFMPEG_DEBUG} -j$(get_cpu_count) || exit 1

# MANUALLY COPY PKG-CONFIG FILES
cp theoradec.pc ${INSTALL_PKG_CONFIG_DIR}
Expand Down
2 changes: 1 addition & 1 deletion build/android-libuuid.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 51,7 @@ fi
--disable-fast-install \
--host=${TARGET_HOST} || exit 1

make -j$(get_cpu_count) || exit 1
make ${MOBILE_FFMPEG_DEBUG} -j$(get_cpu_count) || exit 1

# AUTO-GENERATED PKG-CONFIG FILE IS WRONG. CREATING IT MANUALLY
create_uuid_package_config "1.0.3"
Expand Down
2 changes: 1 addition & 1 deletion build/android-libvidstab.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 71,7 @@ cmake -Wno-dev \
-DCMAKE_SYSTEM_PROCESSOR=$(get_cmake_target_processor) \
-DBUILD_SHARED_LIBS=0 .. || exit 1

make -j$(get_cpu_count) || exit 1
make ${MOBILE_FFMPEG_DEBUG} -j$(get_cpu_count) || exit 1

# MANUALLY COPY PKG-CONFIG FILES
cp vidstab.pc ${INSTALL_PKG_CONFIG_DIR}
Expand Down
2 changes: 1 addition & 1 deletion build/android-libvorbis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 56,7 @@ fi
--disable-oggtest \
--host=${TARGET_HOST} || exit 1

make -j$(get_cpu_count) || exit 1
make ${MOBILE_FFMPEG_DEBUG} -j$(get_cpu_count) || exit 1

# CREATE PACKAGE CONFIG MANUALLY
create_libvorbis_package_config "1.3.6"
Expand Down
2 changes: 1 addition & 1 deletion build/android-libvpx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 98,7 @@ make distclean 2>/dev/null 1>/dev/null
--disable-debug-libs \
--disable-internal-stats || exit 1

make -j$(get_cpu_count) || exit 1
make ${MOBILE_FFMPEG_DEBUG} -j$(get_cpu_count) || exit 1

# MANUALLY COPY PKG-CONFIG FILES
cp ./*.pc ${INSTALL_PKG_CONFIG_DIR}
Expand Down
2 changes: 1 addition & 1 deletion build/android-libwebp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 69,7 @@ cmake -Wno-dev \
-DCMAKE_SYSTEM_PROCESSOR=$(get_cmake_target_processor) \
-DBUILD_SHARED_LIBS=0 .. || exit 1

make -j$(get_cpu_count) || exit 1
make ${MOBILE_FFMPEG_DEBUG} -j$(get_cpu_count) || exit 1

# CREATE PACKAGE CONFIG MANUALLY
create_libwebp_package_config "1.0.0"
Expand Down
2 changes: 1 addition & 1 deletion build/android-libxml2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 62,7 @@ autoreconf_library ${LIB_NAME}
--disable-fast-install \
--host=${TARGET_HOST} || exit 1

make -j$(get_cpu_count) || exit 1
make ${MOBILE_FFMPEG_DEBUG} -j$(get_cpu_count) || exit 1

# CREATE PACKAGE CONFIG MANUALLY
create_libxml2_package_config "2.9.8"
Expand Down
2 changes: 1 addition & 1 deletion build/android-nettle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 67,7 @@ fi
${OPTIONAL_CPU_SUPPORT} \
--host=${TARGET_HOST} || exit 1

make -j$(get_cpu_count) || exit 1
make ${MOBILE_FFMPEG_DEBUG} -j$(get_cpu_count) || exit 1

# MANUALLY COPY PKG-CONFIG FILES
cp ./*.pc ${INSTALL_PKG_CONFIG_DIR}
Expand Down
2 changes: 1 addition & 1 deletion build/android-opencore-amr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 52,7 @@ fi
--disable-maintainer-mode \
--host=${TARGET_HOST} || exit 1

make -j$(get_cpu_count) || exit 1
make ${MOBILE_FFMPEG_DEBUG} -j$(get_cpu_count) || exit 1

# MANUALLY COPY PKG-CONFIG FILES
cp amrwb/*.pc ${INSTALL_PKG_CONFIG_DIR}
Expand Down
2 changes: 1 addition & 1 deletion build/android-opus.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 59,7 @@ fi
--disable-ambisonics \
--host=${TARGET_HOST} || exit 1

make -j$(get_cpu_count) || exit 1
make ${MOBILE_FFMPEG_DEBUG} -j$(get_cpu_count) || exit 1

# MANUALLY COPY PKG-CONFIG FILES
cp ./opus.pc ${INSTALL_PKG_CONFIG_DIR}
Expand Down
2 changes: 1 addition & 1 deletion build/android-shine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 51,7 @@ fi
--disable-fast-install \
--host=${TARGET_HOST} || exit 1

make -j$(get_cpu_count) || exit 1
make ${MOBILE_FFMPEG_DEBUG} -j$(get_cpu_count) || exit 1

# MANUALLY COPY PKG-CONFIG FILES
cp ./*.pc ${INSTALL_PKG_CONFIG_DIR}
Expand Down
2 changes: 1 addition & 1 deletion build/android-snappy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 63,7 @@ cmake -Wno-dev \
-DCMAKE_SYSTEM_PROCESSOR=$(get_cmake_target_processor) \
-DBUILD_SHARED_LIBS=0 .. || exit 1

make -j$(get_cpu_count) || exit 1
make ${MOBILE_FFMPEG_DEBUG} -j$(get_cpu_count) || exit 1

# CREATE PACKAGE CONFIG MANUALLY
create_snappy_package_config "1.1.7"
Expand Down
2 changes: 1 addition & 1 deletion build/android-soxr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 65,7 @@ cmake -Wno-dev \
-DCMAKE_SYSTEM_PROCESSOR=$(get_cmake_target_processor) \
-DBUILD_SHARED_LIBS=0 .. || exit 1

make -j$(get_cpu_count) || exit 1
make ${MOBILE_FFMPEG_DEBUG} -j$(get_cpu_count) || exit 1

# CREATE PACKAGE CONFIG MANUALLY
create_soxr_package_config "0.1.3"
Expand Down
2 changes: 1 addition & 1 deletion build/android-speex.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 58,7 @@ fi
--disable-fast-install \
--host=${TARGET_HOST} || exit 1

make -j$(get_cpu_count) || exit 1
make ${MOBILE_FFMPEG_DEBUG} -j$(get_cpu_count) || exit 1

# MANUALLY COPY PKG-CONFIG FILES
cp ./*.pc ${INSTALL_PKG_CONFIG_DIR}
Expand Down
2 changes: 1 addition & 1 deletion build/android-tiff.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 57,7 @@ fi
--disable-lzma \
--host=${TARGET_HOST} || exit 1

make -j$(get_cpu_count) || exit 1
make ${MOBILE_FFMPEG_DEBUG} -j$(get_cpu_count) || exit 1

# MANUALLY COPY PKG-CONFIG FILES
cp ./*.pc ${INSTALL_PKG_CONFIG_DIR}
Expand Down
2 changes: 1 addition & 1 deletion build/android-wavpack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 54,7 @@ fi
--disable-tests \
--host=${TARGET_HOST} || exit 1

make -j$(get_cpu_count) || exit 1
make ${MOBILE_FFMPEG_DEBUG} -j$(get_cpu_count) || exit 1

# MANUALLY COPY PKG-CONFIG FILES
cp ./*.pc ${INSTALL_PKG_CONFIG_DIR}
Expand Down
2 changes: 1 addition & 1 deletion build/android-x264.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 73,7 @@ esac
${ASM_FLAGS} \
--host=${TARGET_HOST} || exit 1

make -j$(get_cpu_count) || exit 1
make ${MOBILE_FFMPEG_DEBUG} -j$(get_cpu_count) || exit 1

# MANUALLY COPY PKG-CONFIG FILES
cp x264.pc ${INSTALL_PKG_CONFIG_DIR}
Expand Down
2 changes: 1 addition & 1 deletion build/android-x265.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 96,7 @@ cmake -Wno-dev \
-DCMAKE_SYSTEM_PROCESSOR="${X265_SYSTEM_PROCESSOR}" \
-DENABLE_SHARED=0 ../source || exit 1

make -j$(get_cpu_count) || exit 1
make ${MOBILE_FFMPEG_DEBUG} -j$(get_cpu_count) || exit 1

# CREATE PACKAGE CONFIG MANUALLY
create_x265_package_config "2.8"
Expand Down
2 changes: 1 addition & 1 deletion build/android-xvidcore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 57,7 @@ esac
${ASM_FLAGS} \
--host=${TARGET_HOST} || exit 1

make -j$(get_cpu_count) || exit 1
make ${MOBILE_FFMPEG_DEBUG} -j$(get_cpu_count) || exit 1

# CREATE PACKAGE CONFIG MANUALLY
create_xvidcore_package_config "1.3.5"
Expand Down
2 changes: 1 addition & 1 deletion build/ios-chromaprint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 65,7 @@ cmake -Wno-dev \
-DCMAKE_SYSTEM_PROCESSOR=$(get_target_arch) \
-DBUILD_SHARED_LIBS=0 .. || exit 1

make -j$(get_cpu_count) || exit 1
make ${MOBILE_FFMPEG_DEBUG} -j$(get_cpu_count) || exit 1

# MANUALLY COPY PKG-CONFIG FILES
cp libchromaprint.pc ${INSTALL_PKG_CONFIG_DIR}
Expand Down
2 changes: 1 addition & 1 deletion build/ios-expat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 58,7 @@ fi
--disable-fast-install \
--host=${TARGET_HOST} || exit 1

make -j$(get_cpu_count) || exit 1
make ${MOBILE_FFMPEG_DEBUG} -j$(get_cpu_count) || exit 1

# MANUALLY COPY PKG-CONFIG FILES
cp ./expat.pc ${INSTALL_PKG_CONFIG_DIR}
Expand Down
2 changes: 1 addition & 1 deletion build/ios-ffmpeg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 382,7 @@ if [ $? -ne 0 ]; then
exit 1
fi

make -j$(get_cpu_count) 1>>${BASEDIR}/build.log 2>&1
make ${MOBILE_FFMPEG_DEBUG} -j$(get_cpu_count) 1>>${BASEDIR}/build.log 2>&1

if [ $? -ne 0 ]; then
echo "failed"
Expand Down
2 changes: 1 addition & 1 deletion build/ios-fontconfig.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 62,7 @@ fi
--disable-docs \
--host=${TARGET_HOST} || exit 1

make -j$(get_cpu_count) || exit 1
make ${MOBILE_FFMPEG_DEBUG} -j$(get_cpu_count) || exit 1

# CREATE PACKAGE CONFIG MANUALLY
create_fontconfig_package_config "2.13.0"
Expand Down
Loading

0 comments on commit 04d2709

Please sign in to comment.