2018-10-19 21:52:15 -05:00
|
|
|
#
|
|
|
|
|
# Copyright (c) 2016, Alliance for Open Media. All rights reserved
|
|
|
|
|
#
|
|
|
|
|
# This source code is subject to the terms of the BSD 2 Clause License and the
|
|
|
|
|
# Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License was
|
|
|
|
|
# not distributed with this source code in the LICENSE file, you can obtain it
|
|
|
|
|
# at www.aomedia.org/license/software. If the Alliance for Open Media Patent
|
|
|
|
|
# License 1.0 was not distributed with this source code in the PATENTS file, you
|
|
|
|
|
# can obtain it at www.aomedia.org/license/patent.
|
|
|
|
|
#
|
2018-10-15 21:45:30 -05:00
|
|
|
# Defaults for every libaom configuration variable. Here we add all libaom
|
|
|
|
|
# config variables to the cmake variable cache, but omit the FORCE parameter to
|
|
|
|
|
# allow users to specify values when executing cmake to generate build files.
|
|
|
|
|
# Values here are used only if not set by the user.
|
|
|
|
|
set(INLINE "" CACHE STRING "Sets INLINE value for current target.")
|
2018-10-18 21:53:44 -05:00
|
|
|
|
|
|
|
|
# CPUs.
|
2018-10-18 06:04:57 -05:00
|
|
|
set(ARCH_ARM 0 CACHE NUMBER "Enables ARM architecture.")
|
|
|
|
|
set(ARCH_MIPS 0 CACHE NUMBER "Enables MIPS architecture.")
|
2018-10-19 21:52:15 -05:00
|
|
|
set(ARCH_PPC 0 CACHE NUMBER "Enables PPC architecture.")
|
2018-10-18 06:04:57 -05:00
|
|
|
set(ARCH_X86 0 CACHE NUMBER "Enables X86 architecture.")
|
|
|
|
|
set(ARCH_X86_64 0 CACHE NUMBER "Enables X86_64 architecture.")
|
2018-10-18 21:53:44 -05:00
|
|
|
|
|
|
|
|
# ARM optimization flags.
|
2018-10-18 06:04:57 -05:00
|
|
|
set(HAVE_NEON 0 CACHE NUMBER "Enables NEON intrinsics optimizations.")
|
2018-10-18 21:53:44 -05:00
|
|
|
|
|
|
|
|
# MIPS optimization flags.
|
2018-10-18 06:04:57 -05:00
|
|
|
set(HAVE_DSPR2 0 CACHE NUMBER "Enables DSPR2 optimizations.")
|
2018-10-18 21:53:44 -05:00
|
|
|
set(HAVE_MIPS32 0 CACHE NUMBER "Enables MIPS32 optimizations.")
|
2018-10-18 06:04:57 -05:00
|
|
|
set(HAVE_MIPS64 0 CACHE NUMBER "Enables MIPS64 optimizations. ")
|
2018-10-18 21:53:44 -05:00
|
|
|
set(HAVE_MSA 0 CACHE NUMBER "Enables MSA optimizations.")
|
|
|
|
|
|
2018-10-19 21:52:15 -05:00
|
|
|
# PPC optimization flags.
|
|
|
|
|
set(HAVE_VSX 0 CACHE NUMBER "Enables VSX optimizations.")
|
|
|
|
|
|
2018-10-18 21:53:44 -05:00
|
|
|
# x86/x86_64 optimization flags.
|
|
|
|
|
set(HAVE_AVX 0 CACHE NUMBER "Enables AVX optimizations.")
|
|
|
|
|
set(HAVE_AVX2 0 CACHE NUMBER "Enables AVX2 optimizations.")
|
2018-10-18 06:04:57 -05:00
|
|
|
set(HAVE_MMX 0 CACHE NUMBER "Enables MMX optimizations. ")
|
|
|
|
|
set(HAVE_SSE 0 CACHE NUMBER "Enables SSE optimizations.")
|
|
|
|
|
set(HAVE_SSE2 0 CACHE NUMBER "Enables SSE2 optimizations.")
|
|
|
|
|
set(HAVE_SSE3 0 CACHE NUMBER "Enables SSE3 optimizations.")
|
|
|
|
|
set(HAVE_SSE4_1 0 CACHE NUMBER "Enables SSE 4.1 optimizations.")
|
2018-10-19 21:52:15 -05:00
|
|
|
set(HAVE_SSE4_2 0 CACHE NUMBER "Enables SSE 4.2 optimizations.")
|
2018-10-18 21:53:44 -05:00
|
|
|
set(HAVE_SSSE3 0 CACHE NUMBER "Enables SSSE3 optimizations.")
|
|
|
|
|
|
|
|
|
|
# Flags describing the build environment.
|
2018-10-18 06:04:57 -05:00
|
|
|
set(HAVE_FEXCEPT 0 CACHE NUMBER "Internal flag, GNU fenv.h present for target.")
|
|
|
|
|
set(HAVE_PTHREAD_H 0 CACHE NUMBER "Internal flag, target pthread support.")
|
|
|
|
|
set(HAVE_UNISTD_H 0 CACHE NUMBER "Internal flag, unistd.h present for target.")
|
|
|
|
|
set(HAVE_WXWIDGETS 0 CACHE NUMBER "WxWidgets present.")
|
2018-10-18 21:53:44 -05:00
|
|
|
|
|
|
|
|
# Build configuration flags.
|
|
|
|
|
set(CONFIG_AV1_DECODER 1 CACHE NUMBER "Enable AV1 decoder.")
|
|
|
|
|
set(CONFIG_AV1_ENCODER 1 CACHE NUMBER "Enable AV1 encoder.")
|
|
|
|
|
set(CONFIG_BIG_ENDIAN 0 CACHE NUMBER "Internal flag.")
|
|
|
|
|
set(CONFIG_GCC 0 CACHE NUMBER "Building with GCC (detected).")
|
|
|
|
|
set(CONFIG_GCOV 0 CACHE NUMBER "Enable gcov support.")
|
|
|
|
|
set(CONFIG_GPROF 0 CACHE NUMBER "Enable gprof support.")
|
|
|
|
|
set(CONFIG_LIBYUV 1 CACHE NUMBER "Enables libyuv scaling/conversion support.")
|
|
|
|
|
set(CONFIG_MSVS 0 CACHE NUMBER "Building with MS Visual Studio (detected).")
|
|
|
|
|
set(CONFIG_MULTITHREAD 1 CACHE NUMBER "Multithread support.")
|
2018-10-18 06:04:57 -05:00
|
|
|
set(CONFIG_OS_SUPPORT 0 CACHE NUMBER "Internal flag.")
|
2018-10-18 21:53:44 -05:00
|
|
|
set(CONFIG_PIC 0 CACHE NUMBER "Build with PIC enabled.")
|
|
|
|
|
set(CONFIG_RUNTIME_CPU_DETECT 1 CACHE NUMBER "Runtime CPU detection support.")
|
|
|
|
|
set(CONFIG_SHARED 0 CACHE NUMBER "Build shared libs.")
|
|
|
|
|
set(CONFIG_STATIC 1 CACHE NUMBER "Build static libs.")
|
2018-10-18 06:04:57 -05:00
|
|
|
set(CONFIG_WEBM_IO 1 CACHE NUMBER "Enables WebM support.")
|
2018-10-18 21:53:44 -05:00
|
|
|
|
|
|
|
|
# Debugging flags.
|
|
|
|
|
set(CONFIG_BITSTREAM_DEBUG 0 CACHE NUMBER "Bitstream debugging flag.")
|
|
|
|
|
set(CONFIG_DEBUG 0 CACHE NUMBER "Debug build flag.")
|
2018-10-19 21:52:15 -05:00
|
|
|
set(CONFIG_MISMATCH_DEBUG 0 CACHE NUMBER "Mismatch debugging flag.")
|
2018-10-18 21:53:44 -05:00
|
|
|
|
|
|
|
|
# AV1 feature flags.
|
2018-10-18 06:04:57 -05:00
|
|
|
set(CONFIG_ACCOUNTING 0 CACHE NUMBER "Enables bit accounting.")
|
2018-10-18 21:53:44 -05:00
|
|
|
set(CONFIG_ANALYZER 0 CACHE NUMBER "Enables bit stream analyzer.")
|
|
|
|
|
set(CONFIG_COEFFICIENT_RANGE_CHECKING 0 CACHE NUMBER "Coefficient range check.")
|
2018-10-19 23:00:02 -05:00
|
|
|
set(CONFIG_DENOISE 0 CACHE NUMBER "Denoise/noise modeling support in encoder.")
|
2018-10-19 21:52:15 -05:00
|
|
|
set(CONFIG_FILEOPTIONS 1 CACHE NUMBER "Enables encoder config file support.")
|
2018-10-18 06:04:57 -05:00
|
|
|
set(CONFIG_INSPECTION 0 CACHE NUMBER "Enables bitstream inspection.")
|
2018-10-19 21:52:15 -05:00
|
|
|
set(CONFIG_INTERNAL_STATS 0 CACHE NUMBER "Enables internal encoder stats.")
|
|
|
|
|
set(CONFIG_LOWBITDEPTH 0 CACHE NUMBER "Enables 8-bit optimized pipeline.")
|
2018-10-18 21:53:44 -05:00
|
|
|
set(CONFIG_SIZE_LIMIT 0 CACHE NUMBER "Limit max decode width/height.")
|
|
|
|
|
set(CONFIG_SPATIAL_RESAMPLING 1 CACHE NUMBER "Spatial resampling.")
|
2018-10-19 21:52:15 -05:00
|
|
|
set(DECODE_HEIGHT_LIMIT 0 CACHE NUMBER "Set limit for decode height.")
|
|
|
|
|
set(DECODE_WIDTH_LIMIT 0 CACHE NUMBER "Set limit for decode width.")
|
2018-10-18 21:53:44 -05:00
|
|
|
|
|
|
|
|
# AV1 experiment flags.
|
2018-10-19 21:52:15 -05:00
|
|
|
set(CONFIG_COLLECT_INTER_MODE_RD_STATS 1 CACHE NUMBER "AV1 experiment flag.")
|
|
|
|
|
set(CONFIG_COLLECT_RD_STATS 0 CACHE NUMBER "AV1 experiment flag.")
|
2018-10-18 21:53:44 -05:00
|
|
|
set(CONFIG_DIST_8X8 1 CACHE NUMBER "AV1 experiment flag.")
|
|
|
|
|
set(CONFIG_ENTROPY_STATS 0 CACHE NUMBER "AV1 experiment flag.")
|
|
|
|
|
set(CONFIG_FP_MB_STATS 0 CACHE NUMBER "AV1 experiment flag.")
|
|
|
|
|
set(CONFIG_INTER_STATS_ONLY 0 CACHE NUMBER "AV1 experiment flag.")
|
|
|
|
|
set(CONFIG_RD_DEBUG 0 CACHE NUMBER "AV1 experiment flag.")
|