Tom Finegan | 44916e7 | 2017-02-27 14:12:31 -0800 | [diff] [blame] | 1 | ## |
| 2 | ## Copyright (c) 2017, Alliance for Open Media. All rights reserved |
| 3 | ## |
| 4 | ## This source code is subject to the terms of the BSD 2 Clause License and |
| 5 | ## the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License |
| 6 | ## was not distributed with this source code in the LICENSE file, you can |
| 7 | ## obtain it at www.aomedia.org/license/software. If the Alliance for Open |
| 8 | ## Media Patent License 1.0 was not distributed with this source code in the |
| 9 | ## PATENTS file, you can obtain it at www.aomedia.org/license/patent. |
| 10 | ## |
Tom Finegan | 17ccaec | 2017-05-25 17:47:42 -0700 | [diff] [blame] | 11 | if (NOT AOM_AV1_AV1_CMAKE_) |
| 12 | set(AOM_AV1_AV1_CMAKE_ 1) |
| 13 | |
Tom Finegan | 44916e7 | 2017-02-27 14:12:31 -0800 | [diff] [blame] | 14 | set(AOM_AV1_COMMON_SOURCES |
| 15 | "${AOM_ROOT}/av1/av1_iface_common.h" |
| 16 | "${AOM_ROOT}/av1/common/alloccommon.c" |
| 17 | "${AOM_ROOT}/av1/common/alloccommon.h" |
| 18 | # TODO(tomfinegan): Foward transform belongs in encoder. |
| 19 | "${AOM_ROOT}/av1/common/av1_fwd_txfm1d.c" |
| 20 | "${AOM_ROOT}/av1/common/av1_fwd_txfm1d.h" |
| 21 | "${AOM_ROOT}/av1/common/av1_fwd_txfm2d.c" |
Sarah Parker | eec47e6 | 2017-05-15 20:49:22 -0700 | [diff] [blame] | 22 | "${AOM_ROOT}/av1/common/av1_fwd_txfm1d_cfg.h" |
Tom Finegan | 44916e7 | 2017-02-27 14:12:31 -0800 | [diff] [blame] | 23 | "${AOM_ROOT}/av1/common/av1_inv_txfm1d.c" |
| 24 | "${AOM_ROOT}/av1/common/av1_inv_txfm1d.h" |
| 25 | "${AOM_ROOT}/av1/common/av1_inv_txfm2d.c" |
Sarah Parker | eec47e6 | 2017-05-15 20:49:22 -0700 | [diff] [blame] | 26 | "${AOM_ROOT}/av1/common/av1_inv_txfm1d_cfg.h" |
Tom Finegan | 44916e7 | 2017-02-27 14:12:31 -0800 | [diff] [blame] | 27 | "${AOM_ROOT}/av1/common/av1_loopfilter.c" |
| 28 | "${AOM_ROOT}/av1/common/av1_loopfilter.h" |
| 29 | "${AOM_ROOT}/av1/common/av1_txfm.h" |
| 30 | "${AOM_ROOT}/av1/common/blockd.c" |
| 31 | "${AOM_ROOT}/av1/common/blockd.h" |
| 32 | "${AOM_ROOT}/av1/common/common.h" |
| 33 | "${AOM_ROOT}/av1/common/common_data.h" |
| 34 | "${AOM_ROOT}/av1/common/convolve.c" |
| 35 | "${AOM_ROOT}/av1/common/convolve.h" |
Monty Montgomery | 02078a3 | 2017-07-11 21:22:29 -0400 | [diff] [blame] | 36 | "${AOM_ROOT}/av1/common/daala_tx.c" |
| 37 | "${AOM_ROOT}/av1/common/daala_tx.h" |
Tom Finegan | 44916e7 | 2017-02-27 14:12:31 -0800 | [diff] [blame] | 38 | "${AOM_ROOT}/av1/common/debugmodes.c" |
| 39 | "${AOM_ROOT}/av1/common/entropy.c" |
| 40 | "${AOM_ROOT}/av1/common/entropy.h" |
| 41 | "${AOM_ROOT}/av1/common/entropymode.c" |
| 42 | "${AOM_ROOT}/av1/common/entropymode.h" |
| 43 | "${AOM_ROOT}/av1/common/entropymv.c" |
| 44 | "${AOM_ROOT}/av1/common/entropymv.h" |
| 45 | "${AOM_ROOT}/av1/common/enums.h" |
| 46 | "${AOM_ROOT}/av1/common/filter.c" |
| 47 | "${AOM_ROOT}/av1/common/filter.h" |
| 48 | "${AOM_ROOT}/av1/common/frame_buffers.c" |
| 49 | "${AOM_ROOT}/av1/common/frame_buffers.h" |
| 50 | "${AOM_ROOT}/av1/common/idct.c" |
| 51 | "${AOM_ROOT}/av1/common/idct.h" |
| 52 | "${AOM_ROOT}/av1/common/mv.h" |
| 53 | "${AOM_ROOT}/av1/common/mvref_common.c" |
| 54 | "${AOM_ROOT}/av1/common/mvref_common.h" |
| 55 | "${AOM_ROOT}/av1/common/odintrin.c" |
| 56 | "${AOM_ROOT}/av1/common/odintrin.h" |
| 57 | "${AOM_ROOT}/av1/common/onyxc_int.h" |
| 58 | "${AOM_ROOT}/av1/common/pred_common.c" |
| 59 | "${AOM_ROOT}/av1/common/pred_common.h" |
| 60 | "${AOM_ROOT}/av1/common/quant_common.c" |
| 61 | "${AOM_ROOT}/av1/common/quant_common.h" |
| 62 | "${AOM_ROOT}/av1/common/reconinter.c" |
| 63 | "${AOM_ROOT}/av1/common/reconinter.h" |
| 64 | "${AOM_ROOT}/av1/common/reconintra.c" |
| 65 | "${AOM_ROOT}/av1/common/reconintra.h" |
Fergus Simpson | d056500 | 2017-03-27 16:51:52 -0700 | [diff] [blame] | 66 | "${AOM_ROOT}/av1/common/resize.c" |
| 67 | "${AOM_ROOT}/av1/common/resize.h" |
Tom Finegan | 44916e7 | 2017-02-27 14:12:31 -0800 | [diff] [blame] | 68 | "${AOM_ROOT}/av1/common/scale.c" |
| 69 | "${AOM_ROOT}/av1/common/scale.h" |
| 70 | "${AOM_ROOT}/av1/common/scan.c" |
| 71 | "${AOM_ROOT}/av1/common/scan.h" |
| 72 | "${AOM_ROOT}/av1/common/seg_common.c" |
| 73 | "${AOM_ROOT}/av1/common/seg_common.h" |
| 74 | "${AOM_ROOT}/av1/common/thread_common.c" |
| 75 | "${AOM_ROOT}/av1/common/thread_common.h" |
| 76 | "${AOM_ROOT}/av1/common/tile_common.c" |
| 77 | "${AOM_ROOT}/av1/common/tile_common.h") |
| 78 | |
| 79 | set(AOM_AV1_DECODER_SOURCES |
| 80 | "${AOM_ROOT}/av1/av1_dx_iface.c" |
| 81 | "${AOM_ROOT}/av1/decoder/decodeframe.c" |
| 82 | "${AOM_ROOT}/av1/decoder/decodeframe.h" |
| 83 | "${AOM_ROOT}/av1/decoder/decodemv.c" |
| 84 | "${AOM_ROOT}/av1/decoder/decodemv.h" |
| 85 | "${AOM_ROOT}/av1/decoder/decoder.c" |
| 86 | "${AOM_ROOT}/av1/decoder/decoder.h" |
| 87 | "${AOM_ROOT}/av1/decoder/detokenize.c" |
| 88 | "${AOM_ROOT}/av1/decoder/detokenize.h" |
| 89 | "${AOM_ROOT}/av1/decoder/dsubexp.c" |
| 90 | "${AOM_ROOT}/av1/decoder/dsubexp.h" |
| 91 | "${AOM_ROOT}/av1/decoder/dthread.c" |
| 92 | "${AOM_ROOT}/av1/decoder/dthread.h") |
| 93 | |
| 94 | set(AOM_AV1_ENCODER_SOURCES |
| 95 | "${AOM_ROOT}/av1/av1_cx_iface.c" |
| 96 | "${AOM_ROOT}/av1/encoder/aq_complexity.c" |
| 97 | "${AOM_ROOT}/av1/encoder/aq_complexity.h" |
| 98 | "${AOM_ROOT}/av1/encoder/aq_cyclicrefresh.c" |
| 99 | "${AOM_ROOT}/av1/encoder/aq_cyclicrefresh.h" |
| 100 | "${AOM_ROOT}/av1/encoder/aq_variance.c" |
| 101 | "${AOM_ROOT}/av1/encoder/aq_variance.h" |
| 102 | "${AOM_ROOT}/av1/encoder/av1_quantize.c" |
| 103 | "${AOM_ROOT}/av1/encoder/av1_quantize.h" |
| 104 | "${AOM_ROOT}/av1/encoder/bitstream.c" |
| 105 | "${AOM_ROOT}/av1/encoder/bitstream.h" |
| 106 | "${AOM_ROOT}/av1/encoder/block.h" |
| 107 | "${AOM_ROOT}/av1/encoder/context_tree.c" |
| 108 | "${AOM_ROOT}/av1/encoder/context_tree.h" |
| 109 | "${AOM_ROOT}/av1/encoder/cost.c" |
| 110 | "${AOM_ROOT}/av1/encoder/cost.h" |
| 111 | "${AOM_ROOT}/av1/encoder/dct.c" |
| 112 | "${AOM_ROOT}/av1/encoder/encodeframe.c" |
| 113 | "${AOM_ROOT}/av1/encoder/encodeframe.h" |
| 114 | "${AOM_ROOT}/av1/encoder/encodemb.c" |
| 115 | "${AOM_ROOT}/av1/encoder/encodemb.h" |
| 116 | "${AOM_ROOT}/av1/encoder/encodemv.c" |
| 117 | "${AOM_ROOT}/av1/encoder/encodemv.h" |
| 118 | "${AOM_ROOT}/av1/encoder/encoder.c" |
| 119 | "${AOM_ROOT}/av1/encoder/encoder.h" |
| 120 | "${AOM_ROOT}/av1/encoder/ethread.c" |
| 121 | "${AOM_ROOT}/av1/encoder/ethread.h" |
| 122 | "${AOM_ROOT}/av1/encoder/extend.c" |
| 123 | "${AOM_ROOT}/av1/encoder/extend.h" |
| 124 | "${AOM_ROOT}/av1/encoder/firstpass.c" |
| 125 | "${AOM_ROOT}/av1/encoder/firstpass.h" |
Hui Su | 1ddf231 | 2017-08-19 15:21:34 -0700 | [diff] [blame] | 126 | "${AOM_ROOT}/av1/encoder/hash.c" |
| 127 | "${AOM_ROOT}/av1/encoder/hash.h" |
Tom Finegan | 44916e7 | 2017-02-27 14:12:31 -0800 | [diff] [blame] | 128 | "${AOM_ROOT}/av1/encoder/hybrid_fwd_txfm.c" |
| 129 | "${AOM_ROOT}/av1/encoder/hybrid_fwd_txfm.h" |
| 130 | "${AOM_ROOT}/av1/encoder/lookahead.c" |
| 131 | "${AOM_ROOT}/av1/encoder/lookahead.h" |
| 132 | "${AOM_ROOT}/av1/encoder/mbgraph.c" |
| 133 | "${AOM_ROOT}/av1/encoder/mbgraph.h" |
| 134 | "${AOM_ROOT}/av1/encoder/mcomp.c" |
| 135 | "${AOM_ROOT}/av1/encoder/mcomp.h" |
Urvang Joshi | c6300aa | 2017-06-01 14:46:23 -0700 | [diff] [blame] | 136 | "${AOM_ROOT}/av1/encoder/palette.c" |
Tom Finegan | 9a77d48 | 2017-08-14 11:00:59 -0700 | [diff] [blame] | 137 | "${AOM_ROOT}/av1/encoder/palette.h" |
Tom Finegan | 44916e7 | 2017-02-27 14:12:31 -0800 | [diff] [blame] | 138 | "${AOM_ROOT}/av1/encoder/picklpf.c" |
| 139 | "${AOM_ROOT}/av1/encoder/picklpf.h" |
| 140 | "${AOM_ROOT}/av1/encoder/ratectrl.c" |
| 141 | "${AOM_ROOT}/av1/encoder/ratectrl.h" |
| 142 | "${AOM_ROOT}/av1/encoder/rd.c" |
| 143 | "${AOM_ROOT}/av1/encoder/rd.h" |
| 144 | "${AOM_ROOT}/av1/encoder/rdopt.c" |
| 145 | "${AOM_ROOT}/av1/encoder/rdopt.h" |
Tom Finegan | 44916e7 | 2017-02-27 14:12:31 -0800 | [diff] [blame] | 146 | "${AOM_ROOT}/av1/encoder/segmentation.c" |
| 147 | "${AOM_ROOT}/av1/encoder/segmentation.h" |
| 148 | "${AOM_ROOT}/av1/encoder/speed_features.c" |
| 149 | "${AOM_ROOT}/av1/encoder/speed_features.h" |
| 150 | "${AOM_ROOT}/av1/encoder/subexp.c" |
| 151 | "${AOM_ROOT}/av1/encoder/subexp.h" |
| 152 | "${AOM_ROOT}/av1/encoder/temporal_filter.c" |
| 153 | "${AOM_ROOT}/av1/encoder/temporal_filter.h" |
| 154 | "${AOM_ROOT}/av1/encoder/tokenize.c" |
| 155 | "${AOM_ROOT}/av1/encoder/tokenize.h" |
| 156 | "${AOM_ROOT}/av1/encoder/treewriter.c" |
Thomas Daede | 8ea3319 | 2017-05-10 15:40:06 -0700 | [diff] [blame] | 157 | "${AOM_ROOT}/av1/encoder/treewriter.h") |
Tom Finegan | 44916e7 | 2017-02-27 14:12:31 -0800 | [diff] [blame] | 158 | |
Tom Finegan | 5a24dc8 | 2017-04-13 14:11:54 -0700 | [diff] [blame] | 159 | set(AOM_AV1_COMMON_INTRIN_SSE2 |
Tom Finegan | 44916e7 | 2017-02-27 14:12:31 -0800 | [diff] [blame] | 160 | "${AOM_ROOT}/av1/common/x86/idct_intrin_sse2.c") |
| 161 | |
Tom Finegan | 5a24dc8 | 2017-04-13 14:11:54 -0700 | [diff] [blame] | 162 | set(AOM_AV1_COMMON_INTRIN_SSSE3 |
Tom Finegan | 44916e7 | 2017-02-27 14:12:31 -0800 | [diff] [blame] | 163 | "${AOM_ROOT}/av1/common/x86/av1_convolve_ssse3.c") |
| 164 | |
Tom Finegan | 5a24dc8 | 2017-04-13 14:11:54 -0700 | [diff] [blame] | 165 | set(AOM_AV1_COMMON_INTRIN_SSE4_1 |
Tom Finegan | 44916e7 | 2017-02-27 14:12:31 -0800 | [diff] [blame] | 166 | "${AOM_ROOT}/av1/common/x86/av1_fwd_txfm1d_sse4.c" |
Tom Finegan | d8782ff | 2017-07-10 18:26:17 -0700 | [diff] [blame] | 167 | "${AOM_ROOT}/av1/common/x86/av1_fwd_txfm2d_sse4.c" |
| 168 | "${AOM_ROOT}/av1/common/x86/highbd_inv_txfm_sse4.c") |
Tom Finegan | 44916e7 | 2017-02-27 14:12:31 -0800 | [diff] [blame] | 169 | |
Tom Finegan | 5a24dc8 | 2017-04-13 14:11:54 -0700 | [diff] [blame] | 170 | set(AOM_AV1_COMMON_INTRIN_AVX2 |
Tom Finegan | d8782ff | 2017-07-10 18:26:17 -0700 | [diff] [blame] | 171 | "${AOM_ROOT}/av1/common/x86/highbd_inv_txfm_avx2.c" |
Tom Finegan | 44916e7 | 2017-02-27 14:12:31 -0800 | [diff] [blame] | 172 | "${AOM_ROOT}/av1/common/x86/hybrid_inv_txfm_avx2.c") |
| 173 | |
Tom Finegan | 5a24dc8 | 2017-04-13 14:11:54 -0700 | [diff] [blame] | 174 | set(AOM_AV1_COMMON_INTRIN_MSA |
Tom Finegan | d148c96 | 2017-04-04 14:48:26 -0700 | [diff] [blame] | 175 | "${AOM_ROOT}/av1/common/mips/msa/av1_idct16x16_msa.c" |
| 176 | "${AOM_ROOT}/av1/common/mips/msa/av1_idct4x4_msa.c" |
| 177 | "${AOM_ROOT}/av1/common/mips/msa/av1_idct8x8_msa.c") |
| 178 | |
Tom Finegan | 5a24dc8 | 2017-04-13 14:11:54 -0700 | [diff] [blame] | 179 | set(AOM_AV1_ENCODER_ASM_SSE2 |
Tom Finegan | 44916e7 | 2017-02-27 14:12:31 -0800 | [diff] [blame] | 180 | "${AOM_ROOT}/av1/encoder/x86/dct_sse2.asm" |
| 181 | "${AOM_ROOT}/av1/encoder/x86/error_sse2.asm" |
| 182 | "${AOM_ROOT}/av1/encoder/x86/temporal_filter_apply_sse2.asm") |
| 183 | |
Tom Finegan | 5a24dc8 | 2017-04-13 14:11:54 -0700 | [diff] [blame] | 184 | set(AOM_AV1_ENCODER_INTRIN_SSE2 |
Tom Finegan | 44916e7 | 2017-02-27 14:12:31 -0800 | [diff] [blame] | 185 | "${AOM_ROOT}/av1/encoder/x86/dct_intrin_sse2.c" |
| 186 | "${AOM_ROOT}/av1/encoder/x86/highbd_block_error_intrin_sse2.c" |
| 187 | "${AOM_ROOT}/av1/encoder/x86/av1_quantize_sse2.c") |
| 188 | |
Tom Finegan | 5a24dc8 | 2017-04-13 14:11:54 -0700 | [diff] [blame] | 189 | set(AOM_AV1_ENCODER_ASM_SSSE3_X86_64 |
Tom Finegan | 44916e7 | 2017-02-27 14:12:31 -0800 | [diff] [blame] | 190 | "${AOM_ROOT}/av1/encoder/x86/av1_quantize_ssse3_x86_64.asm") |
| 191 | |
Tom Finegan | 5a24dc8 | 2017-04-13 14:11:54 -0700 | [diff] [blame] | 192 | set(AOM_AV1_ENCODER_INTRIN_SSSE3 |
Tom Finegan | 44916e7 | 2017-02-27 14:12:31 -0800 | [diff] [blame] | 193 | "${AOM_ROOT}/av1/encoder/x86/dct_ssse3.c") |
| 194 | |
Tom Finegan | d8782ff | 2017-07-10 18:26:17 -0700 | [diff] [blame] | 195 | set(AOM_AV1_ENCODER_INTRIN_SSE4_1 |
| 196 | ${AOM_AV1_ENCODER_INTRIN_SSE4_1} |
| 197 | "${AOM_ROOT}/av1/encoder/x86/av1_highbd_quantize_sse4.c" |
| 198 | "${AOM_ROOT}/av1/encoder/x86/highbd_fwd_txfm_sse4.c") |
| 199 | |
Tom Finegan | 5a24dc8 | 2017-04-13 14:11:54 -0700 | [diff] [blame] | 200 | set(AOM_AV1_ENCODER_INTRIN_AVX2 |
Tom Finegan | 3613c51 | 2017-06-15 16:03:09 -0700 | [diff] [blame] | 201 | "${AOM_ROOT}/av1/encoder/x86/av1_quantize_avx2.c" |
Tom Finegan | d8782ff | 2017-07-10 18:26:17 -0700 | [diff] [blame] | 202 | "${AOM_ROOT}/av1/encoder/x86/av1_highbd_quantize_avx2.c" |
Tom Finegan | 44916e7 | 2017-02-27 14:12:31 -0800 | [diff] [blame] | 203 | "${AOM_ROOT}/av1/encoder/x86/error_intrin_avx2.c" |
| 204 | "${AOM_ROOT}/av1/encoder/x86/hybrid_fwd_txfm_avx2.c") |
Tom Finegan | d8782ff | 2017-07-10 18:26:17 -0700 | [diff] [blame] | 205 | |
Tom Finegan | 5a24dc8 | 2017-04-13 14:11:54 -0700 | [diff] [blame] | 206 | set(AOM_AV1_ENCODER_INTRIN_NEON |
Tom Finegan | 5a49c6c | 2017-03-17 08:56:59 -0700 | [diff] [blame] | 207 | "${AOM_ROOT}/av1/encoder/arm/neon/quantize_neon.c") |
| 208 | |
Tom Finegan | 5a24dc8 | 2017-04-13 14:11:54 -0700 | [diff] [blame] | 209 | set(AOM_AV1_ENCODER_INTRIN_MSA |
Tom Finegan | d148c96 | 2017-04-04 14:48:26 -0700 | [diff] [blame] | 210 | "${AOM_ROOT}/av1/encoder/mips/msa/error_msa.c" |
| 211 | "${AOM_ROOT}/av1/encoder/mips/msa/fdct16x16_msa.c" |
| 212 | "${AOM_ROOT}/av1/encoder/mips/msa/fdct4x4_msa.c" |
| 213 | "${AOM_ROOT}/av1/encoder/mips/msa/fdct8x8_msa.c" |
| 214 | "${AOM_ROOT}/av1/encoder/mips/msa/fdct_msa.h" |
| 215 | "${AOM_ROOT}/av1/encoder/mips/msa/temporal_filter_msa.c") |
| 216 | |
Sebastien Alaiwan | 71e8784 | 2017-04-12 16:03:28 +0200 | [diff] [blame] | 217 | if (CONFIG_HIGHBITDEPTH) |
Tom Finegan | 5a24dc8 | 2017-04-13 14:11:54 -0700 | [diff] [blame] | 218 | set(AOM_AV1_COMMON_INTRIN_SSE4_1 |
| 219 | ${AOM_AV1_COMMON_INTRIN_SSE4_1} |
Tom Finegan | d8782ff | 2017-07-10 18:26:17 -0700 | [diff] [blame] | 220 | "${AOM_ROOT}/av1/common/x86/av1_highbd_convolve_sse4.c") |
Tom Finegan | 5a49c6c | 2017-03-17 08:56:59 -0700 | [diff] [blame] | 221 | else () |
Tom Finegan | 5a24dc8 | 2017-04-13 14:11:54 -0700 | [diff] [blame] | 222 | set(AOM_AV1_COMMON_INTRIN_NEON |
| 223 | ${AOM_AV1_COMMON_INTRIN_NEON} |
Tom Finegan | 345e48c | 2017-04-28 10:00:04 -0700 | [diff] [blame] | 224 | "${AOM_ROOT}/av1/encoder/arm/neon/dct_neon.c" |
Tom Finegan | 5a49c6c | 2017-03-17 08:56:59 -0700 | [diff] [blame] | 225 | "${AOM_ROOT}/av1/common/arm/neon/iht4x4_add_neon.c" |
| 226 | "${AOM_ROOT}/av1/common/arm/neon/iht8x8_add_neon.c") |
Tom Finegan | 345e48c | 2017-04-28 10:00:04 -0700 | [diff] [blame] | 227 | |
| 228 | set(AOM_AV1_ENCODER_INTRIN_NEON |
| 229 | ${AOM_AV1_ENCODER_INTRIN_NEON} |
| 230 | "${AOM_ROOT}/av1/encoder/arm/neon/error_neon.c") |
Tom Finegan | 7bb58b1 | 2017-03-02 21:11:36 -0800 | [diff] [blame] | 231 | endif () |
| 232 | |
Tom Finegan | 44916e7 | 2017-02-27 14:12:31 -0800 | [diff] [blame] | 233 | if (CONFIG_CDEF) |
| 234 | set(AOM_AV1_COMMON_SOURCES |
| 235 | ${AOM_AV1_COMMON_SOURCES} |
Steinar Midtskogen | a9d41e8 | 2017-03-17 12:48:15 +0100 | [diff] [blame] | 236 | "${AOM_ROOT}/av1/common/cdef.c" |
| 237 | "${AOM_ROOT}/av1/common/cdef.h" |
Steinar Midtskogen | 94de0aa | 2017-08-02 10:30:12 +0200 | [diff] [blame] | 238 | "${AOM_ROOT}/av1/common/cdef_block.c" |
Steinar Midtskogen | 5978212 | 2017-07-20 08:49:43 +0200 | [diff] [blame] | 239 | "${AOM_ROOT}/av1/common/cdef_block.h") |
Tom Finegan | 44916e7 | 2017-02-27 14:12:31 -0800 | [diff] [blame] | 240 | |
| 241 | set(AOM_AV1_ENCODER_SOURCES |
| 242 | ${AOM_AV1_ENCODER_SOURCES} |
Steinar Midtskogen | a9d41e8 | 2017-03-17 12:48:15 +0100 | [diff] [blame] | 243 | "${AOM_ROOT}/av1/encoder/pickcdef.c") |
Tom Finegan | 44916e7 | 2017-02-27 14:12:31 -0800 | [diff] [blame] | 244 | |
Tom Finegan | 5a24dc8 | 2017-04-13 14:11:54 -0700 | [diff] [blame] | 245 | set(AOM_AV1_COMMON_INTRIN_SSE2 |
| 246 | ${AOM_AV1_COMMON_INTRIN_SSE2} |
Steinar Midtskogen | 94de0aa | 2017-08-02 10:30:12 +0200 | [diff] [blame] | 247 | "${AOM_ROOT}/av1/common/cdef_block_sse2.c") |
Tom Finegan | 44916e7 | 2017-02-27 14:12:31 -0800 | [diff] [blame] | 248 | |
Tom Finegan | 5a24dc8 | 2017-04-13 14:11:54 -0700 | [diff] [blame] | 249 | set(AOM_AV1_COMMON_INTRIN_SSSE3 |
| 250 | ${AOM_AV1_COMMON_INTRIN_SSSE3} |
Steinar Midtskogen | 94de0aa | 2017-08-02 10:30:12 +0200 | [diff] [blame] | 251 | "${AOM_ROOT}/av1/common/cdef_block_ssse3.c") |
Tom Finegan | 44916e7 | 2017-02-27 14:12:31 -0800 | [diff] [blame] | 252 | |
Tom Finegan | 5a24dc8 | 2017-04-13 14:11:54 -0700 | [diff] [blame] | 253 | set(AOM_AV1_COMMON_INTRIN_SSE4_1 |
| 254 | ${AOM_AV1_COMMON_INTRIN_SSE4_1} |
Steinar Midtskogen | 94de0aa | 2017-08-02 10:30:12 +0200 | [diff] [blame] | 255 | "${AOM_ROOT}/av1/common/cdef_block_sse4.c") |
Tom Finegan | 44916e7 | 2017-02-27 14:12:31 -0800 | [diff] [blame] | 256 | |
Steinar Midtskogen | 5978212 | 2017-07-20 08:49:43 +0200 | [diff] [blame] | 257 | set(AOM_AV1_COMMON_INTRIN_AVX2 |
| 258 | ${AOM_AV1_COMMON_INTRIN_AVX2} |
| 259 | "${AOM_ROOT}/av1/common/cdef_block_avx2.c") |
| 260 | |
Tom Finegan | 5a24dc8 | 2017-04-13 14:11:54 -0700 | [diff] [blame] | 261 | set(AOM_AV1_COMMON_INTRIN_NEON |
| 262 | ${AOM_AV1_COMMON_INTRIN_NEON} |
Steinar Midtskogen | 94de0aa | 2017-08-02 10:30:12 +0200 | [diff] [blame] | 263 | "${AOM_ROOT}/av1/common/cdef_block_neon.c") |
Tom Finegan | 1386efa | 2017-08-14 11:38:46 -0700 | [diff] [blame] | 264 | |
| 265 | if (NOT CONFIG_CDEF_SINGLEPASS) |
| 266 | set(AOM_AV1_COMMON_SOURCES |
| 267 | ${AOM_AV1_COMMON_SOURCES} |
| 268 | "${AOM_ROOT}/av1/common/clpf.c" |
| 269 | "${AOM_ROOT}/av1/common/clpf_simd.h" |
| 270 | "${AOM_ROOT}/av1/common/cdef_block_simd.h") |
| 271 | |
| 272 | set(AOM_AV1_COMMON_INTRIN_SSE2 |
| 273 | ${AOM_AV1_COMMON_INTRIN_SSE2} |
| 274 | "${AOM_ROOT}/av1/common/clpf_sse2.c") |
| 275 | |
| 276 | set(AOM_AV1_COMMON_INTRIN_SSSE3 |
| 277 | ${AOM_AV1_COMMON_INTRIN_SSSE3} |
| 278 | "${AOM_ROOT}/av1/common/clpf_ssse3.c") |
| 279 | |
| 280 | set(AOM_AV1_COMMON_INTRIN_SSE4_1 |
| 281 | ${AOM_AV1_COMMON_INTRIN_SSE4_1} |
| 282 | "${AOM_ROOT}/av1/common/clpf_sse4.c") |
| 283 | |
| 284 | set(AOM_AV1_COMMON_INTRIN_NEON |
| 285 | ${AOM_AV1_COMMON_INTRIN_NEON} |
| 286 | "${AOM_ROOT}/av1/common/clpf_neon.c") |
| 287 | endif () |
Tom Finegan | 44916e7 | 2017-02-27 14:12:31 -0800 | [diff] [blame] | 288 | endif () |
| 289 | |
Tom Finegan | 11934b0 | 2017-07-19 10:24:05 -0700 | [diff] [blame] | 290 | if (CONFIG_CONVOLVE_ROUND) |
James Zern | 93a1005 | 2017-08-05 12:48:37 -0700 | [diff] [blame] | 291 | set(AOM_AV1_COMMON_INTRIN_SSE2 |
| 292 | ${AOM_AV1_COMMON_INTRIN_SSE2} |
| 293 | "${AOM_ROOT}/av1/common/x86/convolve_2d_sse2.c") |
| 294 | if (CONFIG_HIGHBITDEPTH) |
| 295 | set(AOM_AV1_COMMON_INTRIN_SSSE3 |
| 296 | ${AOM_AV1_COMMON_INTRIN_SSSE3} |
| 297 | "${AOM_ROOT}/av1/common/x86/highbd_convolve_2d_ssse3.c") |
| 298 | endif () |
| 299 | |
Tom Finegan | 11934b0 | 2017-07-19 10:24:05 -0700 | [diff] [blame] | 300 | set(AOM_AV1_COMMON_INTRIN_AVX2 |
| 301 | ${AOM_AV1_COMMON_INTRIN_AVX2} |
| 302 | "${AOM_ROOT}/av1/common/x86/convolve_avx2.c") |
| 303 | endif () |
| 304 | |
Tom Finegan | 44916e7 | 2017-02-27 14:12:31 -0800 | [diff] [blame] | 305 | if (CONFIG_EXT_INTER) |
| 306 | set(AOM_AV1_ENCODER_SOURCES |
| 307 | ${AOM_AV1_ENCODER_SOURCES} |
| 308 | "${AOM_ROOT}/av1/encoder/wedge_utils.c") |
| 309 | |
Tom Finegan | 5a24dc8 | 2017-04-13 14:11:54 -0700 | [diff] [blame] | 310 | set(AOM_AV1_ENCODER_INTRIN_SSE2 |
| 311 | ${AOM_AV1_ENCODER_INTRIN_SSE2} |
Tom Finegan | 44916e7 | 2017-02-27 14:12:31 -0800 | [diff] [blame] | 312 | "${AOM_ROOT}/av1/encoder/x86/wedge_utils_sse2.c") |
| 313 | endif () |
| 314 | |
Tom Finegan | 7bb58b1 | 2017-03-02 21:11:36 -0800 | [diff] [blame] | 315 | if (CONFIG_FILTER_INTRA) |
Tom Finegan | 5a24dc8 | 2017-04-13 14:11:54 -0700 | [diff] [blame] | 316 | set(AOM_AV1_COMMON_INTRIN_SSE4_1 |
| 317 | ${AOM_AV1_COMMON_INTRIN_SSE4_1} |
Tom Finegan | 7bb58b1 | 2017-03-02 21:11:36 -0800 | [diff] [blame] | 318 | "${AOM_ROOT}/av1/common/x86/filterintra_sse4.c") |
| 319 | endif () |
| 320 | |
Luc Trudeau | 83fbd57 | 2017-04-21 11:24:34 -0400 | [diff] [blame] | 321 | if (CONFIG_ACCOUNTING) |
| 322 | set(AOM_AV1_DECODER_SOURCES |
| 323 | ${AOM_AV1_DECODER_SOURCES} |
| 324 | "${AOM_ROOT}/av1/decoder/accounting.c" |
| 325 | "${AOM_ROOT}/av1/decoder/accounting.h") |
| 326 | endif () |
| 327 | |
Tom Finegan | 3369832 | 2017-08-07 17:02:56 -0700 | [diff] [blame] | 328 | if (CONFIG_BGSPRITE) |
| 329 | set(AOM_AV1_ENCODER_SOURCES |
| 330 | ${AOM_AV1_ENCODER_SOURCES} |
| 331 | "${AOM_ROOT}/av1/encoder/bgsprite.c" |
| 332 | "${AOM_ROOT}/av1/encoder/bgsprite.h") |
| 333 | endif () |
| 334 | |
Tom Finegan | 9d90097 | 2017-05-05 12:41:20 -0700 | [diff] [blame] | 335 | if (CONFIG_GLOBAL_MOTION) |
| 336 | set(AOM_AV1_ENCODER_SOURCES |
| 337 | ${AOM_AV1_ENCODER_SOURCES} |
| 338 | "${AOM_ROOT}/av1/encoder/corner_detect.c" |
| 339 | "${AOM_ROOT}/av1/encoder/corner_detect.h" |
| 340 | "${AOM_ROOT}/av1/encoder/corner_match.c" |
| 341 | "${AOM_ROOT}/av1/encoder/corner_match.h" |
| 342 | "${AOM_ROOT}/av1/encoder/global_motion.c" |
| 343 | "${AOM_ROOT}/av1/encoder/global_motion.h" |
| 344 | "${AOM_ROOT}/av1/encoder/ransac.c" |
| 345 | "${AOM_ROOT}/av1/encoder/ransac.h" |
| 346 | "${AOM_ROOT}/third_party/fastfeat/fast_9.c" |
| 347 | "${AOM_ROOT}/third_party/fastfeat/fast.c" |
| 348 | "${AOM_ROOT}/third_party/fastfeat/fast.h" |
| 349 | "${AOM_ROOT}/third_party/fastfeat/nonmax.c") |
Tom Finegan | a9c4e51 | 2017-05-12 10:27:58 -0700 | [diff] [blame] | 350 | |
| 351 | set(AOM_AV1_ENCODER_INTRIN_SSE4_1 |
| 352 | ${AOM_AV1_ENCODER_INTRIN_SSE4_1} |
| 353 | "${AOM_ROOT}/av1/encoder/x86/corner_match_sse4.c") |
Tom Finegan | 9d90097 | 2017-05-05 12:41:20 -0700 | [diff] [blame] | 354 | endif () |
| 355 | |
Tom Finegan | 7bb58b1 | 2017-03-02 21:11:36 -0800 | [diff] [blame] | 356 | if (CONFIG_INSPECTION) |
| 357 | set(AOM_AV1_DECODER_SOURCES |
| 358 | ${AOM_AV1_DECODER_SOURCES} |
| 359 | "${AOM_ROOT}/av1/decoder/inspection.c" |
| 360 | "${AOM_ROOT}/av1/decoder/inspection.h") |
| 361 | endif () |
| 362 | |
Tom Finegan | 44916e7 | 2017-02-27 14:12:31 -0800 | [diff] [blame] | 363 | if (CONFIG_INTERNAL_STATS) |
| 364 | set(AOM_AV1_ENCODER_SOURCES |
| 365 | ${AOM_AV1_ENCODER_SOURCES} |
| 366 | "${AOM_ROOT}/av1/encoder/blockiness.c") |
| 367 | endif () |
| 368 | |
Tom Finegan | e29f1e9 | 2017-08-08 11:43:01 -0700 | [diff] [blame] | 369 | if (CONFIG_LV_MAP) |
| 370 | set(AOM_AV1_COMMON_SOURCES |
| 371 | ${AOM_AV1_COMMON_SOURCES} |
| 372 | "${AOM_ROOT}/av1/common/txb_common.c" |
| 373 | "${AOM_ROOT}/av1/common/txb_common.h") |
| 374 | |
| 375 | set(AOM_AV1_DECODER_SOURCES |
| 376 | ${AOM_AV1_DECODER_SOURCES} |
| 377 | "${AOM_ROOT}/av1/decoder/decodetxb.c" |
| 378 | "${AOM_ROOT}/av1/decoder/decodetxb.h") |
| 379 | |
| 380 | set(AOM_AV1_ENCODER_SOURCES |
| 381 | ${AOM_AV1_ENCODER_SOURCES} |
| 382 | "${AOM_ROOT}/av1/encoder/encodetxb.c" |
| 383 | "${AOM_ROOT}/av1/encoder/encodetxb.h") |
| 384 | endif () |
| 385 | |
Luc Trudeau | f816415 | 2017-04-11 16:20:51 -0400 | [diff] [blame] | 386 | if (CONFIG_CFL) |
| 387 | set(AOM_AV1_COMMON_SOURCES |
| 388 | ${AOM_AV1_COMMON_SOURCES} |
| 389 | "${AOM_ROOT}/av1/common/cfl.c" |
| 390 | "${AOM_ROOT}/av1/common/cfl.h") |
| 391 | endif () |
| 392 | |
Tom Finegan | c156224 | 2017-05-24 12:08:20 -0700 | [diff] [blame] | 393 | if (CONFIG_LOOP_RESTORATION) |
| 394 | set(AOM_AV1_COMMON_SOURCES |
| 395 | ${AOM_AV1_COMMON_SOURCES} |
| 396 | "${AOM_ROOT}/av1/common/restoration.c" |
| 397 | "${AOM_ROOT}/av1/common/restoration.h") |
| 398 | |
| 399 | set(AOM_AV1_COMMON_INTRIN_SSE4_1 |
| 400 | ${AOM_AV1_COMMON_INTRIN_SSE4_1} |
| 401 | "${AOM_ROOT}/av1/common/x86/selfguided_sse4.c") |
| 402 | |
| 403 | set(AOM_AV1_ENCODER_SOURCES |
| 404 | ${AOM_AV1_ENCODER_SOURCES} |
| 405 | "${AOM_ROOT}/av1/encoder/pickrst.c" |
| 406 | "${AOM_ROOT}/av1/encoder/pickrst.h") |
| 407 | endif () |
| 408 | |
Joe Young | 89d321f | 2017-09-14 15:59:43 -0700 | [diff] [blame] | 409 | if (CONFIG_INTRA_EDGE) |
| 410 | set(AOM_AV1_COMMON_INTRIN_SSE4_1 |
| 411 | ${AOM_AV1_COMMON_INTRIN_SSE4_1} |
| 412 | "${AOM_ROOT}/av1/common/x86/intra_edge_sse4.c") |
| 413 | endif () |
| 414 | |
Tom Finegan | 27f65d9 | 2017-03-02 22:03:10 -0800 | [diff] [blame] | 415 | if (CONFIG_PVQ) |
| 416 | set(AOM_AV1_COMMON_SOURCES |
| 417 | ${AOM_AV1_COMMON_SOURCES} |
| 418 | "${AOM_ROOT}/av1/common/laplace_tables.c" |
| 419 | "${AOM_ROOT}/av1/common/pvq.c" |
| 420 | "${AOM_ROOT}/av1/common/pvq.h" |
| 421 | "${AOM_ROOT}/av1/common/pvq_state.c" |
| 422 | "${AOM_ROOT}/av1/common/pvq_state.h" |
| 423 | "${AOM_ROOT}/av1/common/partition.c" |
| 424 | "${AOM_ROOT}/av1/common/partition.h" |
| 425 | "${AOM_ROOT}/av1/common/generic_code.c" |
| 426 | "${AOM_ROOT}/av1/common/generic_code.h" |
| 427 | "${AOM_ROOT}/av1/common/zigzag4.c" |
| 428 | "${AOM_ROOT}/av1/common/zigzag8.c" |
| 429 | "${AOM_ROOT}/av1/common/zigzag16.c" |
| 430 | "${AOM_ROOT}/av1/common/zigzag32.c") |
| 431 | |
| 432 | set(AOM_AV1_DECODER_SOURCES |
| 433 | ${AOM_AV1_DECODER_SOURCES} |
| 434 | "${AOM_ROOT}/av1/decoder/decint.h" |
| 435 | "${AOM_ROOT}/av1/decoder/pvq_decoder.c" |
| 436 | "${AOM_ROOT}/av1/decoder/pvq_decoder.h" |
| 437 | "${AOM_ROOT}/av1/decoder/generic_decoder.c" |
| 438 | "${AOM_ROOT}/av1/decoder/laplace_decoder.c") |
| 439 | |
| 440 | set(AOM_AV1_ENCODER_SOURCES |
| 441 | ${AOM_AV1_ENCODER_SOURCES} |
| 442 | "${AOM_ROOT}/av1/encoder/daala_compat_enc.c" |
| 443 | "${AOM_ROOT}/av1/encoder/encint.h" |
| 444 | "${AOM_ROOT}/av1/encoder/pvq_encoder.c" |
| 445 | "${AOM_ROOT}/av1/encoder/pvq_encoder.h" |
| 446 | "${AOM_ROOT}/av1/encoder/generic_encoder.c" |
| 447 | "${AOM_ROOT}/av1/encoder/laplace_encoder.c") |
| 448 | |
Tom Finegan | 5a24dc8 | 2017-04-13 14:11:54 -0700 | [diff] [blame] | 449 | set(AOM_AV1_COMMON_INTRIN_SSE4_1 |
| 450 | ${AOM_AV1_COMMON_INTRIN_SSE4_1} |
Tom Finegan | 27f65d9 | 2017-03-02 22:03:10 -0800 | [diff] [blame] | 451 | "${AOM_ROOT}/av1/common/x86/pvq_sse4.c" |
| 452 | "${AOM_ROOT}/av1/common/x86/pvq_sse4.h") |
| 453 | |
| 454 | if (NOT CONFIG_AV1_ENCODER) |
| 455 | # TODO(tomfinegan): These should probably be in av1/common, and in a |
| 456 | # common source list. For now this mirrors the original build system. |
| 457 | set(AOM_AV1_DECODER_SOURCES |
| 458 | ${AOM_AV1_DECODER_SOURCES} |
| 459 | "${AOM_ROOT}/av1/encoder/dct.c" |
| 460 | "${AOM_ROOT}/av1/encoder/hybrid_fwd_txfm.c" |
| 461 | "${AOM_ROOT}/av1/encoder/hybrid_fwd_txfm.h") |
| 462 | |
Tom Finegan | 5a24dc8 | 2017-04-13 14:11:54 -0700 | [diff] [blame] | 463 | set(AOM_AV1_DECODER_ASM_SSE2 |
| 464 | ${AOM_AV1_DECODER_ASM_SSE2} |
Tom Finegan | 27f65d9 | 2017-03-02 22:03:10 -0800 | [diff] [blame] | 465 | "${AOM_ROOT}/av1/encoder/x86/dct_sse2.asm") |
| 466 | |
Tom Finegan | 5a24dc8 | 2017-04-13 14:11:54 -0700 | [diff] [blame] | 467 | set(AOM_AV1_DECODER_INTRIN_SSE2 |
| 468 | ${AOM_AV1_DECODER_INTRIN_SSE2} |
Tom Finegan | 27f65d9 | 2017-03-02 22:03:10 -0800 | [diff] [blame] | 469 | "${AOM_ROOT}/av1/encoder/x86/dct_intrin_sse2.c") |
| 470 | |
Tom Finegan | 5a24dc8 | 2017-04-13 14:11:54 -0700 | [diff] [blame] | 471 | set(AOM_AV1_DECODER_INTRIN_SSSE3 |
| 472 | ${AOM_AV1_DECODER_INTRIN_SSSE3} |
Tom Finegan | 27f65d9 | 2017-03-02 22:03:10 -0800 | [diff] [blame] | 473 | "${AOM_ROOT}/av1/encoder/x86/dct_ssse3.c") |
| 474 | endif () |
Tom Finegan | 44916e7 | 2017-02-27 14:12:31 -0800 | [diff] [blame] | 475 | endif () |
| 476 | |
David Barker | d8a423c | 2017-04-19 10:32:43 +0100 | [diff] [blame] | 477 | if (CONFIG_WARPED_MOTION OR CONFIG_GLOBAL_MOTION) |
Tom Finegan | 57338fc | 2017-04-05 11:47:45 -0700 | [diff] [blame] | 478 | set(AOM_AV1_COMMON_SOURCES |
| 479 | ${AOM_AV1_COMMON_SOURCES} |
| 480 | "${AOM_ROOT}/av1/common/warped_motion.c" |
| 481 | "${AOM_ROOT}/av1/common/warped_motion.h") |
| 482 | |
Tom Finegan | 5a24dc8 | 2017-04-13 14:11:54 -0700 | [diff] [blame] | 483 | set(AOM_AV1_COMMON_INTRIN_SSE2 |
| 484 | ${AOM_AV1_COMMON_INTRIN_SSE2} |
Tom Finegan | 57338fc | 2017-04-05 11:47:45 -0700 | [diff] [blame] | 485 | "${AOM_ROOT}/av1/common/x86/warp_plane_sse2.c") |
David Barker | d8a423c | 2017-04-19 10:32:43 +0100 | [diff] [blame] | 486 | |
Tom Finegan | 9d90097 | 2017-05-05 12:41:20 -0700 | [diff] [blame] | 487 | set(AOM_AV1_COMMON_INTRIN_SSSE3 |
| 488 | ${AOM_AV1_COMMON_INTRIN_SSSE3} |
David Barker | d8a423c | 2017-04-19 10:32:43 +0100 | [diff] [blame] | 489 | "${AOM_ROOT}/av1/common/x86/warp_plane_ssse3.c") |
| 490 | |
| 491 | if (CONFIG_HIGHBITDEPTH) |
Tom Finegan | 9d90097 | 2017-05-05 12:41:20 -0700 | [diff] [blame] | 492 | set(AOM_AV1_COMMON_INTRIN_SSSE3 |
| 493 | ${AOM_AV1_COMMON_INTRIN_SSSE3} |
David Barker | d8a423c | 2017-04-19 10:32:43 +0100 | [diff] [blame] | 494 | "${AOM_ROOT}/av1/common/x86/highbd_warp_plane_ssse3.c") |
| 495 | endif () |
Tom Finegan | 57338fc | 2017-04-05 11:47:45 -0700 | [diff] [blame] | 496 | endif () |
| 497 | |
RogerZhou | cc5d35d | 2017-08-07 22:20:15 -0700 | [diff] [blame] | 498 | if (CONFIG_HASH_ME) |
| 499 | set(AOM_AV1_ENCODER_SOURCES |
| 500 | ${AOM_AV1_ENCODER_SOURCES} |
| 501 | "${AOM_ROOT}/av1/encoder/hash_motion.h" |
| 502 | "${AOM_ROOT}/av1/encoder/hash_motion.c" |
| 503 | "${AOM_ROOT}/third_party/vector/vector.h" |
| 504 | "${AOM_ROOT}/third_party/vector/vector.c") |
| 505 | endif () |
| 506 | |
hui su | ef125a0 | 2017-07-31 12:56:15 -0700 | [diff] [blame] | 507 | if (CONFIG_Q_ADAPT_PROBS) |
| 508 | set(AOM_AV1_COMMON_SOURCES |
| 509 | ${AOM_AV1_COMMON_SOURCES} |
| 510 | "${AOM_ROOT}/av1/common/token_cdfs.h") |
| 511 | endif () |
| 512 | |
Tom Finegan | f00be13 | 2017-08-15 19:26:52 -0700 | [diff] [blame] | 513 | if (CONFIG_XIPHRC) |
| 514 | set(AOM_AV1_ENCODER_SOURCES |
| 515 | ${AOM_AV1_ENCODER_SOURCES} |
| 516 | "${AOM_ROOT}/av1/encoder/ratectrl_xiph.c" |
| 517 | "${AOM_ROOT}/av1/encoder/ratectrl_xiph.h") |
| 518 | endif () |
| 519 | |
Tom Finegan | 44916e7 | 2017-02-27 14:12:31 -0800 | [diff] [blame] | 520 | # Setup AV1 common/decoder/encoder targets. The libaom target must exist before |
| 521 | # this function is called. |
| 522 | function (setup_av1_targets) |
| 523 | add_library(aom_av1_common OBJECT ${AOM_AV1_COMMON_SOURCES}) |
Tom Finegan | 84f2d79 | 2017-06-15 23:06:44 -0700 | [diff] [blame] | 524 | list(APPEND AOM_LIB_TARGETS aom_av1_common) |
Tom Finegan | 78516fc | 2017-06-20 10:46:26 -0700 | [diff] [blame] | 525 | |
| 526 | create_dummy_source_file("aom_av1" "c" "dummy_source_file") |
| 527 | add_library(aom_av1 OBJECT "${dummy_source_file}") |
| 528 | target_sources(aom PRIVATE $<TARGET_OBJECTS:aom_av1_common>) |
Tom Finegan | 84f2d79 | 2017-06-15 23:06:44 -0700 | [diff] [blame] | 529 | list(APPEND AOM_LIB_TARGETS aom_av1) |
| 530 | |
| 531 | # Not all generators support libraries consisting only of object files. Add a |
| 532 | # dummy source file to the aom_av1 target. |
| 533 | add_dummy_source_file_to_target("aom_av1" "c") |
Tom Finegan | 44916e7 | 2017-02-27 14:12:31 -0800 | [diff] [blame] | 534 | |
| 535 | if (CONFIG_AV1_DECODER) |
| 536 | add_library(aom_av1_decoder OBJECT ${AOM_AV1_DECODER_SOURCES}) |
| 537 | set(AOM_LIB_TARGETS ${AOM_LIB_TARGETS} aom_av1_decoder) |
Tom Finegan | 84f2d79 | 2017-06-15 23:06:44 -0700 | [diff] [blame] | 538 | target_sources(aom PRIVATE $<TARGET_OBJECTS:aom_av1_decoder>) |
Tom Finegan | 44916e7 | 2017-02-27 14:12:31 -0800 | [diff] [blame] | 539 | endif () |
| 540 | |
| 541 | if (CONFIG_AV1_ENCODER) |
| 542 | add_library(aom_av1_encoder OBJECT ${AOM_AV1_ENCODER_SOURCES}) |
| 543 | set(AOM_LIB_TARGETS ${AOM_LIB_TARGETS} aom_av1_encoder) |
Tom Finegan | 84f2d79 | 2017-06-15 23:06:44 -0700 | [diff] [blame] | 544 | target_sources(aom PRIVATE $<TARGET_OBJECTS:aom_av1_encoder>) |
Tom Finegan | 44916e7 | 2017-02-27 14:12:31 -0800 | [diff] [blame] | 545 | endif () |
| 546 | |
| 547 | if (HAVE_SSE2) |
Tom Finegan | 8cc239b | 2017-08-07 12:28:12 -0700 | [diff] [blame] | 548 | require_compiler_flag_nomsvc("-msse2" NO) |
Tom Finegan | 44916e7 | 2017-02-27 14:12:31 -0800 | [diff] [blame] | 549 | add_intrinsics_object_library("-msse2" "sse2" "aom_av1_common" |
Tom Finegan | 78516fc | 2017-06-20 10:46:26 -0700 | [diff] [blame] | 550 | "AOM_AV1_COMMON_INTRIN_SSE2" "aom") |
Tom Finegan | 27f65d9 | 2017-03-02 22:03:10 -0800 | [diff] [blame] | 551 | if (CONFIG_AV1_DECODER) |
Tom Finegan | 5a24dc8 | 2017-04-13 14:11:54 -0700 | [diff] [blame] | 552 | if (AOM_AV1_DECODER_ASM_SSE2) |
Tom Finegan | 78516fc | 2017-06-20 10:46:26 -0700 | [diff] [blame] | 553 | add_asm_library("aom_av1_decoder_sse2" "AOM_AV1_DECODER_ASM_SSE2" "aom") |
Tom Finegan | 27f65d9 | 2017-03-02 22:03:10 -0800 | [diff] [blame] | 554 | endif () |
| 555 | |
Tom Finegan | 5a24dc8 | 2017-04-13 14:11:54 -0700 | [diff] [blame] | 556 | if (AOM_AV1_DECODER_INTRIN_SSE2) |
Tom Finegan | 27f65d9 | 2017-03-02 22:03:10 -0800 | [diff] [blame] | 557 | add_intrinsics_object_library("-msse2" "sse2" "aom_av1_decoder" |
Tom Finegan | 78516fc | 2017-06-20 10:46:26 -0700 | [diff] [blame] | 558 | "AOM_AV1_DECODER_INTRIN_SSE2" "aom") |
Tom Finegan | 27f65d9 | 2017-03-02 22:03:10 -0800 | [diff] [blame] | 559 | endif () |
| 560 | endif () |
| 561 | |
Tom Finegan | 44916e7 | 2017-02-27 14:12:31 -0800 | [diff] [blame] | 562 | if (CONFIG_AV1_ENCODER) |
Tom Finegan | 78516fc | 2017-06-20 10:46:26 -0700 | [diff] [blame] | 563 | add_asm_library("aom_av1_encoder_sse2" "AOM_AV1_ENCODER_ASM_SSE2" "aom") |
Tom Finegan | 44916e7 | 2017-02-27 14:12:31 -0800 | [diff] [blame] | 564 | add_intrinsics_object_library("-msse2" "sse2" "aom_av1_encoder" |
Tom Finegan | 78516fc | 2017-06-20 10:46:26 -0700 | [diff] [blame] | 565 | "AOM_AV1_ENCODER_INTRIN_SSE2" "aom") |
Tom Finegan | 44916e7 | 2017-02-27 14:12:31 -0800 | [diff] [blame] | 566 | endif () |
| 567 | endif () |
| 568 | |
| 569 | if (HAVE_SSSE3) |
Tom Finegan | 8cc239b | 2017-08-07 12:28:12 -0700 | [diff] [blame] | 570 | require_compiler_flag_nomsvc("-mssse3" NO) |
Tom Finegan | 44916e7 | 2017-02-27 14:12:31 -0800 | [diff] [blame] | 571 | add_intrinsics_object_library("-mssse3" "ssse3" "aom_av1_common" |
Tom Finegan | 78516fc | 2017-06-20 10:46:26 -0700 | [diff] [blame] | 572 | "AOM_AV1_COMMON_INTRIN_SSSE3" "aom") |
Tom Finegan | 44916e7 | 2017-02-27 14:12:31 -0800 | [diff] [blame] | 573 | |
Tom Finegan | 27f65d9 | 2017-03-02 22:03:10 -0800 | [diff] [blame] | 574 | if (CONFIG_AV1_DECODER) |
Tom Finegan | 5a24dc8 | 2017-04-13 14:11:54 -0700 | [diff] [blame] | 575 | if (AOM_AV1_DECODER_INTRIN_SSSE3) |
Tom Finegan | 27f65d9 | 2017-03-02 22:03:10 -0800 | [diff] [blame] | 576 | add_intrinsics_object_library("-mssse3" "ssse3" "aom_av1_decoder" |
Tom Finegan | 78516fc | 2017-06-20 10:46:26 -0700 | [diff] [blame] | 577 | "AOM_AV1_DECODER_INTRIN_SSSE3" "aom") |
Tom Finegan | 27f65d9 | 2017-03-02 22:03:10 -0800 | [diff] [blame] | 578 | endif () |
| 579 | endif () |
| 580 | |
Tom Finegan | 44916e7 | 2017-02-27 14:12:31 -0800 | [diff] [blame] | 581 | if (CONFIG_AV1_ENCODER) |
| 582 | add_intrinsics_object_library("-mssse3" "ssse3" "aom_av1_encoder" |
Tom Finegan | 78516fc | 2017-06-20 10:46:26 -0700 | [diff] [blame] | 583 | "AOM_AV1_ENCODER_INTRIN_SSSE3" "aom") |
Tom Finegan | 44916e7 | 2017-02-27 14:12:31 -0800 | [diff] [blame] | 584 | endif () |
| 585 | endif () |
| 586 | |
| 587 | if (HAVE_SSE4_1) |
Tom Finegan | 8cc239b | 2017-08-07 12:28:12 -0700 | [diff] [blame] | 588 | require_compiler_flag_nomsvc("-msse4.1" NO) |
Tom Finegan | 44916e7 | 2017-02-27 14:12:31 -0800 | [diff] [blame] | 589 | add_intrinsics_object_library("-msse4.1" "sse4" "aom_av1_common" |
Tom Finegan | 78516fc | 2017-06-20 10:46:26 -0700 | [diff] [blame] | 590 | "AOM_AV1_COMMON_INTRIN_SSE4_1" "aom") |
Tom Finegan | 44916e7 | 2017-02-27 14:12:31 -0800 | [diff] [blame] | 591 | |
| 592 | if (CONFIG_AV1_ENCODER) |
| 593 | if ("${AOM_TARGET_CPU}" STREQUAL "x86_64") |
| 594 | add_asm_library("aom_av1_encoder_ssse3" |
Tom Finegan | 78516fc | 2017-06-20 10:46:26 -0700 | [diff] [blame] | 595 | "AOM_AV1_ENCODER_ASM_SSSE3_X86_64" "aom") |
Tom Finegan | 44916e7 | 2017-02-27 14:12:31 -0800 | [diff] [blame] | 596 | endif () |
| 597 | |
Tom Finegan | 5a24dc8 | 2017-04-13 14:11:54 -0700 | [diff] [blame] | 598 | if (AOM_AV1_ENCODER_INTRIN_SSE4_1) |
Tom Finegan | 44916e7 | 2017-02-27 14:12:31 -0800 | [diff] [blame] | 599 | add_intrinsics_object_library("-msse4.1" "sse4" "aom_av1_encoder" |
Tom Finegan | 78516fc | 2017-06-20 10:46:26 -0700 | [diff] [blame] | 600 | "AOM_AV1_ENCODER_INTRIN_SSE4_1" "aom") |
Tom Finegan | 44916e7 | 2017-02-27 14:12:31 -0800 | [diff] [blame] | 601 | endif () |
| 602 | endif () |
| 603 | endif () |
| 604 | |
| 605 | if (HAVE_AVX2) |
Tom Finegan | 8cc239b | 2017-08-07 12:28:12 -0700 | [diff] [blame] | 606 | require_compiler_flag_nomsvc("-mavx2" NO) |
Tom Finegan | 44916e7 | 2017-02-27 14:12:31 -0800 | [diff] [blame] | 607 | add_intrinsics_object_library("-mavx2" "avx2" "aom_av1_common" |
Tom Finegan | 78516fc | 2017-06-20 10:46:26 -0700 | [diff] [blame] | 608 | "AOM_AV1_COMMON_INTRIN_AVX2" "aom") |
Tom Finegan | 44916e7 | 2017-02-27 14:12:31 -0800 | [diff] [blame] | 609 | |
| 610 | if (CONFIG_AV1_ENCODER) |
| 611 | add_intrinsics_object_library("-mavx2" "avx2" "aom_av1_encoder" |
Tom Finegan | 78516fc | 2017-06-20 10:46:26 -0700 | [diff] [blame] | 612 | "AOM_AV1_ENCODER_INTRIN_AVX2" "aom") |
Tom Finegan | 44916e7 | 2017-02-27 14:12:31 -0800 | [diff] [blame] | 613 | endif () |
| 614 | endif () |
| 615 | |
Tom Finegan | 5a49c6c | 2017-03-17 08:56:59 -0700 | [diff] [blame] | 616 | if (HAVE_NEON) |
Tom Finegan | 5a24dc8 | 2017-04-13 14:11:54 -0700 | [diff] [blame] | 617 | if (AOM_AV1_COMMON_INTRIN_NEON) |
| 618 | add_intrinsics_object_library("${AOM_INTRIN_NEON_FLAG}" |
Tom Finegan | 5a49c6c | 2017-03-17 08:56:59 -0700 | [diff] [blame] | 619 | "neon" |
| 620 | "aom_av1_common" |
Tom Finegan | 78516fc | 2017-06-20 10:46:26 -0700 | [diff] [blame] | 621 | "AOM_AV1_COMMON_INTRIN_NEON" "aom") |
Tom Finegan | 5a49c6c | 2017-03-17 08:56:59 -0700 | [diff] [blame] | 622 | endif () |
| 623 | |
Tom Finegan | 5a24dc8 | 2017-04-13 14:11:54 -0700 | [diff] [blame] | 624 | if (AOM_AV1_ENCODER_INTRIN_NEON) |
| 625 | add_intrinsics_object_library("${AOM_INTRIN_NEON_FLAG}" |
Tom Finegan | 5a49c6c | 2017-03-17 08:56:59 -0700 | [diff] [blame] | 626 | "neon" |
| 627 | "aom_av1_encoder" |
Tom Finegan | 78516fc | 2017-06-20 10:46:26 -0700 | [diff] [blame] | 628 | "AOM_AV1_ENCODER_INTRIN_NEON" "aom") |
Tom Finegan | 5a49c6c | 2017-03-17 08:56:59 -0700 | [diff] [blame] | 629 | endif () |
| 630 | endif () |
Tom Finegan | d148c96 | 2017-04-04 14:48:26 -0700 | [diff] [blame] | 631 | |
Tom Finegan | d148c96 | 2017-04-04 14:48:26 -0700 | [diff] [blame] | 632 | if (HAVE_MSA) |
| 633 | add_intrinsics_object_library("" "msa" "aom_av1_common" |
Tom Finegan | 78516fc | 2017-06-20 10:46:26 -0700 | [diff] [blame] | 634 | "AOM_AV1_COMMON_INTRIN_MSA" "aom") |
Tom Finegan | d148c96 | 2017-04-04 14:48:26 -0700 | [diff] [blame] | 635 | add_intrinsics_object_library("" "msa" "aom_av1_encoder" |
Tom Finegan | 78516fc | 2017-06-20 10:46:26 -0700 | [diff] [blame] | 636 | "AOM_AV1_ENCODER_INTRIN_MSA" "aom") |
Tom Finegan | d148c96 | 2017-04-04 14:48:26 -0700 | [diff] [blame] | 637 | endif () |
| 638 | |
Tom Finegan | 78516fc | 2017-06-20 10:46:26 -0700 | [diff] [blame] | 639 | target_sources(aom PRIVATE $<TARGET_OBJECTS:aom_dsp>) |
| 640 | target_sources(aom PRIVATE $<TARGET_OBJECTS:aom_scale>) |
Tom Finegan | 84f2d79 | 2017-06-15 23:06:44 -0700 | [diff] [blame] | 641 | |
Tom Finegan | 44916e7 | 2017-02-27 14:12:31 -0800 | [diff] [blame] | 642 | # Pass the new lib targets up to the parent scope instance of |
| 643 | # $AOM_LIB_TARGETS. |
| 644 | set(AOM_LIB_TARGETS ${AOM_LIB_TARGETS} PARENT_SCOPE) |
| 645 | endfunction () |
| 646 | |
| 647 | function (setup_av1_test_targets) |
| 648 | endfunction () |
Tom Finegan | 17ccaec | 2017-05-25 17:47:42 -0700 | [diff] [blame] | 649 | |
| 650 | endif () # AOM_AV1_AV1_CMAKE_ |