aom_config_defaults.cmake 10.5 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
##
## 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.
##
11 12 13 14 15
# 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.")
16 17 18
set(RESTRICT "" CACHE STRING "Sets RESTRICT value for current target.")

# CPUs.
Tom Finegan's avatar
Tom Finegan committed
19 20 21 22
set(ARCH_ARM 0 CACHE NUMBER "Enables ARM architecture.")
set(ARCH_MIPS 0 CACHE NUMBER "Enables MIPS architecture.")
set(ARCH_X86 0 CACHE NUMBER "Enables X86 architecture.")
set(ARCH_X86_64 0 CACHE NUMBER "Enables X86_64 architecture.")
23 24

# ARM optimization flags.
Tom Finegan's avatar
Tom Finegan committed
25 26
set(HAVE_NEON 0 CACHE NUMBER "Enables NEON intrinsics optimizations.")
set(HAVE_NEON_ASM 0 CACHE NUMBER "Enables NEON assembly optimizations.")
27 28

# MIPS optimization flags.
Tom Finegan's avatar
Tom Finegan committed
29
set(HAVE_DSPR2 0 CACHE NUMBER "Enables DSPR2 optimizations.")
30
set(HAVE_MIPS32 0 CACHE NUMBER "Enables MIPS32 optimizations.")
Tom Finegan's avatar
Tom Finegan committed
31
set(HAVE_MIPS64 0 CACHE NUMBER "Enables MIPS64 optimizations. ")
32 33 34 35 36
set(HAVE_MSA 0 CACHE NUMBER "Enables MSA optimizations.")

# x86/x86_64 optimization flags.
set(HAVE_AVX 0 CACHE NUMBER "Enables AVX optimizations.")
set(HAVE_AVX2 0 CACHE NUMBER "Enables AVX2 optimizations.")
Tom Finegan's avatar
Tom Finegan committed
37 38 39 40 41
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.")
42 43 44
set(HAVE_SSSE3 0 CACHE NUMBER "Enables SSSE3 optimizations.")

# Flags describing the build environment.
Tom Finegan's avatar
Tom Finegan committed
45 46 47 48 49
set(HAVE_AOM_PORTS 0 CACHE NUMBER "Internal flag, deprecated.")
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.")
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67

# Deprecated flags preserved for compatibility with configure build.
set(CONFIG_CODEC_SRCS 0 CACHE NUMBER "Deprecated flag.")
set(CONFIG_DEBUG_LIBS 0 CACHE NUMBER "Deprecated flag.")
set(CONFIG_DEPENDENCY_TRACKING 1 CACHE NUMBER "Deprecated flag.")
set(CONFIG_EXPERIMENTAL 0 CACHE NUMBER "Deprecated flag.")
set(CONFIG_EXTERNAL_BUILD 0 CACHE NUMBER "Deprecated flag.")
set(CONFIG_INSTALL_BINS 0 CACHE NUMBER "Deprecated flag.")
set(CONFIG_INSTALL_DOCS 0 CACHE NUMBER "Deprecated flag.")
set(CONFIG_INSTALL_LIBS 0 CACHE NUMBER "Deprecated flag.")
set(CONFIG_INSTALL_SRCS 0 CACHE NUMBER "Deprecated flag.")
set(CONFIG_POSTPROC 1 CACHE NUMBER "Deprecated flag.")
set(CONFIG_POSTPROC_VISUALIZER 0 CACHE NUMBER "Deprecated flag.")
set(CONFIG_RVCT 0 CACHE NUMBER "Deprecated flag.")
set(CONFIG_SMALL 0 CACHE NUMBER "Deprecated flag.")
set(CONFIG_STATIC_MSVCRT 0 CACHE NUMBER "Deprecated flag.")

# Build configuration flags.
Tom Finegan's avatar
Tom Finegan committed
68
set(CONFIG_AV1 1 CACHE NUMBER "Internal flag.")
69 70 71 72
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).")
73
set(CONFIG_GCOV 0 CACHE NUMBER "Enable gcov support.")
74
set(CONFIG_GPROF 0 CACHE NUMBER "Enable gprof support.")
75 76 77
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.")
Tom Finegan's avatar
Tom Finegan committed
78
set(CONFIG_OS_SUPPORT 0 CACHE NUMBER "Internal flag.")
79
set(CONFIG_PIC 1 CACHE NUMBER "Build with PIC enabled.")
80 81 82
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.")
Tom Finegan's avatar
Tom Finegan committed
83
set(CONFIG_WEBM_IO 1 CACHE NUMBER "Enables WebM support.")
84 85 86 87

# Debugging flags.
set(CONFIG_BITSTREAM_DEBUG 0 CACHE NUMBER "Bitstream debugging flag.")
set(CONFIG_DEBUG 0 CACHE NUMBER "Debug build flag.")
Angie Chiang's avatar
Angie Chiang committed
88
set(CONFIG_MISMATCH_DEBUG 0 CACHE NUMBER "Mismatch debugging flag.")
89 90 91 92 93 94 95

# Testing flags.
set(CONFIG_DECODE_PERF_TESTS 0 CACHE NUMBER "Enables decoder performance test.")
set(CONFIG_ENCODE_PERF_TESTS 0 CACHE NUMBER "Enables encoder performance test.")
set(CONFIG_UNIT_TESTS 1 CACHE NUMBER "Enables unit tests.")

# AV1 feature flags.
Tom Finegan's avatar
Tom Finegan committed
96
set(CONFIG_ACCOUNTING 0 CACHE NUMBER "Enables bit accounting.")
97 98
set(CONFIG_ANALYZER 0 CACHE NUMBER "Enables bit stream analyzer.")
set(CONFIG_COEFFICIENT_RANGE_CHECKING 0 CACHE NUMBER "Coefficient range check.")
Tom Finegan's avatar
Tom Finegan committed
99
set(CONFIG_INSPECTION 0 CACHE NUMBER "Enables bitstream inspection.")
100 101 102 103 104
set(CONFIG_INTERNAL_STATS 0 CACHE NUMBER "Codec stats.")
set(CONFIG_LOWBITDEPTH 1 CACHE NUMBER "Enables low bit depth support.")
set(CONFIG_REALTIME_ONLY 0 CACHE NUMBER "Support only realtime encodes.")
set(CONFIG_SIZE_LIMIT 0 CACHE NUMBER "Limit max decode width/height.")
set(CONFIG_SPATIAL_RESAMPLING 1 CACHE NUMBER "Spatial resampling.")
105
set(CONFIG_SYMBOLRATE 0 CACHE NUMBER "Enables symbol rate accounting.")
106 107

# AV1 experiment flags.
Tom Finegan's avatar
Tom Finegan committed
108
set(CONFIG_AMVR 0 CACHE NUMBER "AV1 experiment flag.")
Thomas Davies's avatar
Thomas Davies committed
109
set(CONFIG_AOM_QM 1 CACHE NUMBER "AV1 experiment flag.")
110
set(CONFIG_BGSPRITE 0 CACHE NUMBER "AV1 experiment flag.")
111
set(CONFIG_CFL 1 CACHE NUMBER "AV1 experiment flag.")
Andrey Norkin's avatar
Andrey Norkin committed
112
set(CONFIG_CICP 0 CACHE NUMBER "AV1 experiment flag.")
113
set(CONFIG_COLORSPACE_HEADERS 0 CACHE NUMBER "AV1 experiment flag.")
Tom Finegan's avatar
Tom Finegan committed
114
set(CONFIG_DAALA_TX 0 CACHE NUMBER "AV1 experiment flag.")
115 116 117 118 119
set(CONFIG_DAALA_TX16 0 CACHE NUMBER "AV1 experiment flag.")
set(CONFIG_DAALA_TX32 0 CACHE NUMBER "AV1 experiment flag.")
set(CONFIG_DAALA_TX4 0 CACHE NUMBER "AV1 experiment flag.")
set(CONFIG_DAALA_TX64 0 CACHE NUMBER "AV1 experiment flag.")
set(CONFIG_DAALA_TX8 0 CACHE NUMBER "AV1 experiment flag.")
120
set(CONFIG_DAALA_TX_DST32 0 CACHE NUMBER "AV1 experiment flag.")
121
set(CONFIG_DAALA_TX_DST8 0 CACHE NUMBER "AV1 experiment flag.")
122
set(CONFIG_DCT_ONLY 0 CACHE NUMBER "AV1 experiment flag.")
Ola Hugosson's avatar
Ola Hugosson committed
123
set(CONFIG_DEBLOCK_13TAP 1 CACHE NUMBER "AV1 experiment flag.")
124
set(CONFIG_DEPENDENT_HORZTILEGROUPS 0 CACHE NUMBER "AV1 experiment flag.")
125
set(CONFIG_DEPENDENT_HORZTILES 0 CACHE NUMBER "AV1 experiment flag.")
126
set(CONFIG_DIST_8X8 1 CACHE NUMBER "AV1 experiment flag.")
127
set(CONFIG_DUAL_FILTER 1 CACHE NUMBER "AV1 experiment flag.")
128
set(CONFIG_EIGHTH_PEL_MV_ONLY 0 CACHE NUMBER "AV1 experiment flag.")
129
set(CONFIG_ENTROPY_STATS 0 CACHE NUMBER "AV1 experiment flag.")
Dake He's avatar
Dake He committed
130
set(CONFIG_EOB_FIRST 0 CACHE NUMBER "AV1 experiment flag.")
131
set(CONFIG_EXT_COMP_REFS 1 CACHE NUMBER "AV1 experiment flag.")
132 133
set(CONFIG_EXT_DELTA_Q 1 CACHE NUMBER "AV1 experiment flag.")
set(CONFIG_EXT_INTRA 1 CACHE NUMBER "AV1 experiment flag.")
Joe Young's avatar
Joe Young committed
134
set(CONFIG_EXT_INTRA_MOD 1 CACHE NUMBER "AV1 experiment flag.")
135
set(CONFIG_EXT_INTRA_MOD2 0 CACHE NUMBER "AV1 experiment flag.")
136 137
set(CONFIG_EXT_PARTITION 1 CACHE NUMBER "AV1 experiment flag.")
set(CONFIG_EXT_PARTITION_TYPES 1 CACHE NUMBER "AV1 experiment flag.")
Yaowu Xu's avatar
Yaowu Xu committed
138
set(CONFIG_EXT_QM 0 CACHE NUMBER "AV1 experiment flag.")
Zoe Liu's avatar
Zoe Liu committed
139
set(CONFIG_EXT_SKIP 1 CACHE NUMBER "AV1 experiment flag.")
140
set(CONFIG_EXT_TILE 0 CACHE NUMBER "AV1 experiment flag.")
141
set(CONFIG_EXT_WARPED_MOTION 1 CACHE NUMBER "AV1 experiment flag.")
Yue Chen's avatar
Yue Chen committed
142
set(CONFIG_FILTER_INTRA 1 CACHE NUMBER "AV1 experiment flag.")
143
set(CONFIG_FP_MB_STATS 0 CACHE NUMBER "AV1 experiment flag.")
Jingning Han's avatar
Jingning Han committed
144
set(CONFIG_FRAME_MARKER 1 CACHE NUMBER "AV1 experiment flag.")
Zoe Liu's avatar
Zoe Liu committed
145
set(CONFIG_FRAME_SIGN_BIAS 0 CACHE NUMBER "AV1 experiment flag.")
146
set(CONFIG_FRAME_SIZE 1 CACHE NUMBER "AV1 experiment flag.")
Zoe Liu's avatar
Zoe Liu committed
147
set(CONFIG_FWD_KF 0 CACHE NUMBER "AV1 experiment flag.")
148
set(CONFIG_HASH_ME 0 CACHE NUMBER "AV1 experiment flag.")
149
set(CONFIG_HORZONLY_FRAME_SUPERRES 1 CACHE NUMBER "AV1 experiment flag.")
150 151
set(CONFIG_INTER_STATS_ONLY 0 CACHE NUMBER "AV1 experiment flag.")
set(CONFIG_INTRABC 0 CACHE NUMBER "AV1 experiment flag.")
152
set(CONFIG_INTRA_EDGE 1 CACHE NUMBER "AV1 experiment flag.")
153
set(CONFIG_JNT_COMP 0 CACHE NUMBER "AV1 experiment flag.")
Jingning Han's avatar
Jingning Han committed
154
set(CONFIG_KF_CTX 1 CACHE NUMBER "AV1 experiment flag.")
155
set(CONFIG_LOOPFILTERING_ACROSS_TILES 1 CACHE NUMBER "AV1 experiment flag.")
156
set(CONFIG_LOOPFILTERING_ACROSS_TILES_EXT 1 CACHE NUMBER "AV1 experiment flag.")
Cheng Chen's avatar
Cheng Chen committed
157
set(CONFIG_LOOPFILTER_LEVEL 1 CACHE NUMBER "AV1 experiment flag.")
158
set(CONFIG_LOOP_RESTORATION 1 CACHE NUMBER "AV1 experiment flag.")
159 160
set(CONFIG_LV_MAP 1 CACHE NUMBER "AV1 experiment flag.")
set(CONFIG_LV_MAP_MULTI 1 CACHE NUMBER "AV1 experiment flag.")
161
set(CONFIG_MAX_TILE 1 CACHE NUMBER "AV1 experiment flag.")
162
set(CONFIG_MFMV 0 CACHE NUMBER "AV1 experiment flag.")
163
set(CONFIG_MONO_VIDEO 0 CACHE NUMBER "AV1 experiment flag.")
164 165 166
set(CONFIG_MV_COMPRESS 1 CACHE NUMBER "AV1 experiment flag.")
set(CONFIG_NEW_QUANT 0 CACHE NUMBER "AV1 experiment flag.")
set(CONFIG_NO_FRAME_CONTEXT_SIGNALING 0 CACHE NUMBER "AV1 experiment flag.")
Yaowu Xu's avatar
Yaowu Xu committed
167
set(CONFIG_OBU 1 CACHE NUMBER "AV1 experiment flag.")
168
set(CONFIG_OBU_NO_IVF 0 CACHE NUMBER "AV1 experiment flag.")
169
set(CONFIG_OPT_REF_MV 0 CACHE NUMBER "AV1 experiment flag.")
170 171 172
set(CONFIG_PALETTE_THROUGHPUT 1 CACHE NUMBER "AV1 experiment flag.")
set(CONFIG_PARALLEL_DEBLOCKING 1 CACHE NUMBER "AV1 experiment flag.")
set(CONFIG_RD_DEBUG 0 CACHE NUMBER "AV1 experiment flag.")
173 174
set(CONFIG_RECT_TX_EXT 1 CACHE NUMBER "AV1 experiment flag.")
set(CONFIG_RECT_TX_EXT_INTRA 1 CACHE NUMBER "AV1 experiment flag.")
175 176
set(CONFIG_REFERENCE_BUFFER 1 CACHE NUMBER "AV1 experiment flag.")
set(CONFIG_REF_ADAPT 0 CACHE NUMBER "AV1 experiment flag.")
177
set(CONFIG_SEGMENT_GLOBALMV 1 CACHE NUMBER "AV1 experiment flag.")
Soo-Chul Han's avatar
Soo-Chul Han committed
178
set(CONFIG_SEGMENT_PRED_LAST 0 CACHE NUMBER "AV1 experiment flag.")
Zhijie Yang's avatar
Zhijie Yang committed
179
set(CONFIG_SHORT_FILTER 1 CACHE NUMBER "AV1 experiment flag.")
180
set(CONFIG_SIMPLIFY_TX_MODE 1 CACHE NUMBER "AV1 experiment flag.")
181
set(CONFIG_SPATIAL_SEGMENTATION 0 CACHE NUMBER "AV1 experiment flag.")
Ola Hugosson's avatar
Ola Hugosson committed
182
set(CONFIG_STRIPED_LOOP_RESTORATION 1 CACHE NUMBER "AV1 experiment flag.")
183
set(CONFIG_TEMPMV_SIGNALING 1 CACHE NUMBER "AV1 experiment flag.")
184
set(CONFIG_TILE_INFO_FIRST 0 CACHE NUMBER "AV1 experiment flag.")
Yunqing Wang's avatar
Yunqing Wang committed
185
set(CONFIG_TMV 1 CACHE NUMBER "AV1 experiment flag.")
Urvang Joshi's avatar
Urvang Joshi committed
186
set(CONFIG_TX64X64 1 CACHE NUMBER "AV1 experiment flag.")
187 188
set(CONFIG_TXK_SEL 0 CACHE NUMBER "AV1 experiment flag.")
set(CONFIG_XIPHRC 0 CACHE NUMBER "AV1 experiment flag.")