X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=configure;h=eed6f970b5f9be617f133f917d7d80275c157d7e;hb=caf0f14f84b7d66a614bc6f83ca7b311dcda437b;hp=df538bf62bf7453373971f11b271a51a9fd37c2a;hpb=8b153a55c94c64aca6a035a1d17591f5e8f422c5;p=profile%2Fivi%2Flibvpx.git diff --git a/configure b/configure index df538bf..eed6f97 100755 --- a/configure +++ b/configure @@ -22,8 +22,10 @@ show_help(){ Advanced options: ${toggle_libs} don't build libraries ${toggle_examples} don't build examples + ${toggle_unit_tests} build unit tests --libc=PATH path to alternate libc --as={yasm|nasm|auto} use specified assembler [auto, yasm preferred] + --sdk-path=PATH path to root of sdk (iOS, android builds only) ${toggle_fast_unaligned} don't use unaligned accesses, even when supported by hardware [auto] ${toggle_codec_srcs} in/exclude codec library source code @@ -34,15 +36,18 @@ Advanced options: ${toggle_internal_stats} output of encoder internal stats for debug, if supported (encoders) ${toggle_mem_tracker} track memory usage ${toggle_postproc} postprocessing - ${toggle_multithread} multithreaded encoding and decoding. + ${toggle_multithread} multithreaded encoding and decoding ${toggle_spatial_resampling} spatial sampling (scaling) support ${toggle_realtime_only} enable this option while building for real-time encoding + ${toggle_onthefly_bitpacking} enable on-the-fly bitpacking in real-time encoding ${toggle_error_concealment} enable this option to get a decoder which is able to conceal losses ${toggle_runtime_cpu_detect} runtime cpu detection ${toggle_shared} shared library support ${toggle_static} static library support ${toggle_small} favor smaller size over speed ${toggle_postproc_visualizer} macro block / block level visualizers + ${toggle_multi_res_encoding} enable multiple-resolution encoding + ${toggle_temporal_denoising} enable temporal denoising and disable the spatial denoiser Codecs: Codecs can be selectively enabled or disabled individually, or by family: @@ -78,19 +83,15 @@ EOF # all_platforms is a list of all supported target platforms. Maintain # alphabetically by architecture, generic-gnu last. +all_platforms="${all_platforms} armv5te-android-gcc" all_platforms="${all_platforms} armv5te-linux-rvct" all_platforms="${all_platforms} armv5te-linux-gcc" all_platforms="${all_platforms} armv5te-none-rvct" -all_platforms="${all_platforms} armv5te-symbian-gcc" all_platforms="${all_platforms} armv6-darwin-gcc" all_platforms="${all_platforms} armv6-linux-rvct" all_platforms="${all_platforms} armv6-linux-gcc" all_platforms="${all_platforms} armv6-none-rvct" -all_platforms="${all_platforms} armv6-symbian-gcc" -all_platforms="${all_platforms} iwmmxt-linux-rvct" -all_platforms="${all_platforms} iwmmxt-linux-gcc" -all_platforms="${all_platforms} iwmmxt2-linux-rvct" -all_platforms="${all_platforms} iwmmxt2-linux-gcc" +all_platforms="${all_platforms} armv7-android-gcc" #neon Cortex-A8 all_platforms="${all_platforms} armv7-darwin-gcc" #neon Cortex-A8 all_platforms="${all_platforms} armv7-linux-rvct" #neon Cortex-A8 all_platforms="${all_platforms} armv7-linux-gcc" #neon Cortex-A8 @@ -108,8 +109,11 @@ all_platforms="${all_platforms} x86-darwin8-icc" all_platforms="${all_platforms} x86-darwin9-gcc" all_platforms="${all_platforms} x86-darwin9-icc" all_platforms="${all_platforms} x86-darwin10-gcc" +all_platforms="${all_platforms} x86-darwin11-gcc" +all_platforms="${all_platforms} x86-darwin12-gcc" all_platforms="${all_platforms} x86-linux-gcc" all_platforms="${all_platforms} x86-linux-icc" +all_platforms="${all_platforms} x86-os2-gcc" all_platforms="${all_platforms} x86-solaris-gcc" all_platforms="${all_platforms} x86-win32-gcc" all_platforms="${all_platforms} x86-win32-vs7" @@ -117,13 +121,19 @@ all_platforms="${all_platforms} x86-win32-vs8" all_platforms="${all_platforms} x86-win32-vs9" all_platforms="${all_platforms} x86_64-darwin9-gcc" all_platforms="${all_platforms} x86_64-darwin10-gcc" +all_platforms="${all_platforms} x86_64-darwin11-gcc" +all_platforms="${all_platforms} x86_64-darwin12-gcc" all_platforms="${all_platforms} x86_64-linux-gcc" all_platforms="${all_platforms} x86_64-linux-icc" all_platforms="${all_platforms} x86_64-solaris-gcc" +all_platforms="${all_platforms} x86_64-win64-gcc" all_platforms="${all_platforms} x86_64-win64-vs8" all_platforms="${all_platforms} x86_64-win64-vs9" all_platforms="${all_platforms} universal-darwin8-gcc" all_platforms="${all_platforms} universal-darwin9-gcc" +all_platforms="${all_platforms} universal-darwin10-gcc" +all_platforms="${all_platforms} universal-darwin11-gcc" +all_platforms="${all_platforms} universal-darwin12-gcc" all_platforms="${all_platforms} generic-gnu" # all_targets is a list of all targets that can be configured @@ -162,6 +172,7 @@ enable md5 enable spatial_resampling enable multithread enable os_support +enable temporal_denoising [ -d ${source_path}/../include ] && enable alt_tree_layout for d in vp8; do @@ -175,6 +186,8 @@ else # customer environment [ -f ${source_path}/../include/vpx/vp8cx.h ] && CODECS="${CODECS} vp8_encoder" [ -f ${source_path}/../include/vpx/vp8dx.h ] && CODECS="${CODECS} vp8_decoder" +[ -f ${source_path}/../include/vpx/vp8cx.h ] || disable vp8_encoder +[ -f ${source_path}/../include/vpx/vp8dx.h ] || disable vp8_decoder [ -f ${source_path}/../lib/*/*mt.lib ] && soft_enable static_msvcrt fi @@ -191,11 +204,9 @@ ARCH_LIST=" ppc64 " ARCH_EXT_LIST=" - armv5te - armv6 - armv7 - iwmmxt - iwmmxt2 + edsp + media + neon mips32 @@ -253,12 +264,16 @@ CONFIG_LIST=" static_msvcrt spatial_resampling realtime_only + onthefly_bitpacking error_concealment shared static small postproc_visualizer os_support + unit_tests + multi_res_encoding + temporal_denoising " CMDLINE_SELECT=" extra_warnings @@ -295,11 +310,15 @@ CMDLINE_SELECT=" mem_tracker spatial_resampling realtime_only + onthefly_bitpacking error_concealment shared static small postproc_visualizer + unit_tests + multi_res_encoding + temporal_denoising " process_cmdline() { @@ -480,11 +499,20 @@ process_toolchain() { case $toolchain in universal-darwin*) local darwin_ver=${tgt_os##darwin} - fat_bin_archs="$fat_bin_archs ppc32-${tgt_os}-gcc" - # Intel - fat_bin_archs="$fat_bin_archs x86-${tgt_os}-${tgt_cc}" - if [ $darwin_ver -gt 8 ]; then + # Snow Leopard (10.6/darwin10) dropped support for PPC + # Include PPC support for all prior versions + if [ $darwin_ver -lt 10 ]; then + fat_bin_archs="$fat_bin_archs ppc32-${tgt_os}-gcc" + fi + + # Tiger (10.4/darwin8) brought support for x86 + if [ $darwin_ver -ge 8 ]; then + fat_bin_archs="$fat_bin_archs x86-${tgt_os}-${tgt_cc}" + fi + + # Leopard (10.5/darwin9) brought 64 bit support + if [ $darwin_ver -ge 9 ]; then fat_bin_archs="$fat_bin_archs x86_64-${tgt_os}-${tgt_cc}" fi ;; @@ -500,6 +528,10 @@ process_toolchain() { check_add_cflags -Wpointer-arith check_add_cflags -Wtype-limits check_add_cflags -Wcast-qual + check_add_cflags -Wimplicit-function-declaration + check_add_cflags -Wuninitialized + check_add_cflags -Wunused-variable + check_add_cflags -Wunused-but-set-variable enabled extra_warnings || check_add_cflags -Wno-unused-function fi @@ -554,6 +586,16 @@ process_toolchain() { if enabled postproc_visualizer; then enabled postproc || die "postproc_visualizer requires postproc to be enabled" fi + + # Enable unit tests if we have a working C++ compiler + case "$tgt_cc" in + vs*) + soft_enable unit_tests;; + *) + check_cxx "$@" <