James Zern | c69f4f7 | 2021-10-14 12:23:33 -0700 | [diff] [blame] | 1 | package { |
| 2 | default_applicable_licenses: ["external_libaom_license"], |
| 3 | } |
| 4 | |
| 5 | // Added automatically by a large-scale-change that took the approach of |
| 6 | // 'apply every license found to every target'. While this makes sure we respect |
| 7 | // every license restriction, it may not be entirely correct. |
| 8 | // |
| 9 | // e.g. GPL in an MIT project might only apply to the contrib/ directory. |
| 10 | // |
| 11 | // Please consider splitting the single license below into multiple licenses, |
| 12 | // taking care not to lose any license_kind information, and overriding the |
| 13 | // default license using the 'licenses: [...]' property on targets as needed. |
| 14 | // |
| 15 | // For unused files, consider creating a 'fileGroup' with "//visibility:private" |
| 16 | // to attach the license to, and including a comment whether the files may be |
| 17 | // used in the current project. |
| 18 | // See: http://go/android-license-faq |
| 19 | license { |
| 20 | name: "external_libaom_license", |
| 21 | visibility: [":__subpackages__"], |
| 22 | license_kinds: [ |
| 23 | "SPDX-license-identifier-BSD", |
| 24 | "SPDX-license-identifier-ISC", |
| 25 | "SPDX-license-identifier-MIT", |
| 26 | "legacy_reciprocal", |
| 27 | "legacy_unencumbered", |
| 28 | ], |
| 29 | license_text: [ |
| 30 | "libaom/LICENSE", |
| 31 | "libaom/PATENTS", |
| 32 | ], |
| 33 | } |
| 34 | |
Ray Essick | 247da04 | 2018-11-29 14:14:00 -0800 | [diff] [blame] | 35 | cc_library_static { |
| 36 | name: "libaom", |
Harish Mahendrakar | aab07a4 | 2019-09-06 11:05:23 -0700 | [diff] [blame] | 37 | host_supported: true, |
Ray Essick | 247da04 | 2018-11-29 14:14:00 -0800 | [diff] [blame] | 38 | vendor_available: true, |
| 39 | cflags: [ |
| 40 | "-O3", |
| 41 | ], |
| 42 | |
| 43 | export_include_dirs: [ |
| 44 | "libaom", |
| 45 | ], |
| 46 | |
Ray Essick | 247da04 | 2018-11-29 14:14:00 -0800 | [diff] [blame] | 47 | arch: { |
| 48 | arm64: { |
| 49 | local_include_dirs: [ |
Johann | 39f1322 | 2019-01-09 11:48:14 -0800 | [diff] [blame] | 50 | "config/", |
Ray Essick | 247da04 | 2018-11-29 14:14:00 -0800 | [diff] [blame] | 51 | "config/arm64/", |
| 52 | ], |
Johann | 39f1322 | 2019-01-09 11:48:14 -0800 | [diff] [blame] | 53 | srcs: aom_av1_common_sources + |
Johann | 38edf10 | 2019-01-11 12:45:55 -0800 | [diff] [blame] | 54 | aom_av1_decoder_sources + |
| 55 | aom_dsp_common_sources + |
| 56 | aom_dsp_decoder_sources + |
| 57 | aom_mem_sources + |
| 58 | ["libaom/aom_ports/arm_cpudetect.c"] + |
| 59 | aom_rtcd_sources + |
| 60 | aom_scale_sources + |
| 61 | aom_sources + |
| 62 | aom_util_sources + |
| 63 | aom_av1_common_intrin_neon + |
| 64 | aom_dsp_common_intrin_neon, |
Ray Essick | 247da04 | 2018-11-29 14:14:00 -0800 | [diff] [blame] | 65 | }, |
| 66 | |
Ray Essick | bbd26a9 | 2018-12-10 21:34:38 -0800 | [diff] [blame] | 67 | // configured to require the neon unit |
Johann | 39f1322 | 2019-01-09 11:48:14 -0800 | [diff] [blame] | 68 | arm: { |
Johann | 38edf10 | 2019-01-11 12:45:55 -0800 | [diff] [blame] | 69 | neon: { |
Johann | 39f1322 | 2019-01-09 11:48:14 -0800 | [diff] [blame] | 70 | local_include_dirs: [ |
| 71 | "config/", |
| 72 | "config/arm/", |
| 73 | ], |
| 74 | srcs: aom_av1_common_sources + |
Johann | 38edf10 | 2019-01-11 12:45:55 -0800 | [diff] [blame] | 75 | aom_av1_decoder_sources + |
| 76 | aom_dsp_common_sources + |
| 77 | aom_dsp_decoder_sources + |
| 78 | aom_mem_sources + |
| 79 | aom_rtcd_sources + |
| 80 | ["libaom/aom_ports/arm_cpudetect.c"] + |
| 81 | aom_scale_sources + |
| 82 | aom_sources + |
| 83 | aom_util_sources + |
| 84 | aom_av1_common_intrin_neon + |
| 85 | aom_dsp_common_intrin_neon, |
| 86 | }, |
Johann | 39f1322 | 2019-01-09 11:48:14 -0800 | [diff] [blame] | 87 | }, |
Ray Essick | 247da04 | 2018-11-29 14:14:00 -0800 | [diff] [blame] | 88 | |
| 89 | x86_64: { |
| 90 | local_include_dirs: [ |
Johann | 39f1322 | 2019-01-09 11:48:14 -0800 | [diff] [blame] | 91 | "config/", |
Ray Essick | 247da04 | 2018-11-29 14:14:00 -0800 | [diff] [blame] | 92 | "config/x86_64/", |
| 93 | ], |
Harish Mahendrakar | aab07a4 | 2019-09-06 11:05:23 -0700 | [diff] [blame] | 94 | cflags: [ |
| 95 | "-mssse3", |
| 96 | ], |
Johann | 39f1322 | 2019-01-09 11:48:14 -0800 | [diff] [blame] | 97 | srcs: aom_av1_common_sources + |
Johann | 38edf10 | 2019-01-11 12:45:55 -0800 | [diff] [blame] | 98 | aom_av1_decoder_sources + |
| 99 | aom_dsp_common_sources + |
| 100 | aom_dsp_decoder_sources + |
| 101 | aom_mem_sources + |
| 102 | aom_rtcd_sources + |
| 103 | aom_scale_sources + |
| 104 | aom_sources + |
| 105 | aom_util_sources + |
| 106 | aom_dsp_common_asm_sse2 + |
| 107 | aom_dsp_common_asm_ssse3 + |
| 108 | aom_ports_asm_x86 + |
| 109 | aom_av1_common_intrin_sse2 + |
| 110 | aom_dsp_common_intrin_sse2 + |
| 111 | aom_av1_common_intrin_ssse3 + |
| 112 | aom_dsp_common_intrin_ssse3, |
Ray Essick | 247da04 | 2018-11-29 14:14:00 -0800 | [diff] [blame] | 113 | }, |
| 114 | |
| 115 | x86: { |
| 116 | local_include_dirs: [ |
Johann | 39f1322 | 2019-01-09 11:48:14 -0800 | [diff] [blame] | 117 | "config/", |
Ray Essick | 247da04 | 2018-11-29 14:14:00 -0800 | [diff] [blame] | 118 | "config/x86/", |
| 119 | ], |
Harish Mahendrakar | aab07a4 | 2019-09-06 11:05:23 -0700 | [diff] [blame] | 120 | cflags: [ |
| 121 | "-mssse3", |
| 122 | ], |
Johann | 39f1322 | 2019-01-09 11:48:14 -0800 | [diff] [blame] | 123 | srcs: aom_av1_common_sources + |
Johann | 38edf10 | 2019-01-11 12:45:55 -0800 | [diff] [blame] | 124 | aom_av1_decoder_sources + |
| 125 | aom_dsp_common_sources + |
| 126 | aom_dsp_decoder_sources + |
| 127 | aom_mem_sources + |
| 128 | aom_rtcd_sources + |
| 129 | aom_scale_sources + |
| 130 | aom_sources + |
| 131 | aom_util_sources + |
Johann | 3d220f9 | 2019-01-11 12:43:22 -0800 | [diff] [blame] | 132 | aom_dsp_common_asm_sse2 + |
| 133 | aom_dsp_common_asm_ssse3 + |
| 134 | aom_ports_asm_x86 + |
| 135 | aom_av1_common_intrin_sse2 + |
| 136 | aom_dsp_common_intrin_sse2 + |
| 137 | aom_av1_common_intrin_ssse3 + |
| 138 | aom_dsp_common_intrin_ssse3, |
Ray Essick | 247da04 | 2018-11-29 14:14:00 -0800 | [diff] [blame] | 139 | }, |
| 140 | |
| 141 | }, |
| 142 | |
Liu, Kai1 | 85035c2 | 2019-08-22 09:44:23 +0800 | [diff] [blame] | 143 | sanitize: { |
Pirama Arumuga Nainar | 49f6f65 | 2020-07-28 14:34:28 -0700 | [diff] [blame] | 144 | blocklist: "libaom_blocklist.txt", |
Liu, Kai1 | 85035c2 | 2019-08-22 09:44:23 +0800 | [diff] [blame] | 145 | }, |
| 146 | |
Ray Essick | 247da04 | 2018-11-29 14:14:00 -0800 | [diff] [blame] | 147 | } |
Harish Mahendrakar | 5ad98b0 | 2019-09-06 11:10:39 -0700 | [diff] [blame] | 148 | |
| 149 | cc_fuzz { |
| 150 | name: "av1_dec_fuzzer", |
| 151 | host_supported: true, |
| 152 | srcs: [ |
| 153 | "libaom/examples/av1_dec_fuzzer.cc", |
| 154 | ], |
| 155 | arch: { |
| 156 | arm: { |
| 157 | neon: { |
| 158 | local_include_dirs: [ |
| 159 | "config/", |
| 160 | "config/arm/", |
| 161 | ], |
| 162 | }, |
| 163 | }, |
| 164 | |
| 165 | arm64: { |
| 166 | local_include_dirs: [ |
| 167 | "config/", |
| 168 | "config/arm64/", |
| 169 | ], |
| 170 | }, |
| 171 | |
| 172 | x86: { |
| 173 | local_include_dirs: [ |
| 174 | "config/", |
| 175 | "config/x86/", |
| 176 | ], |
| 177 | }, |
| 178 | |
| 179 | x86_64: { |
| 180 | local_include_dirs: [ |
| 181 | "config/", |
| 182 | "config/x86_64/", |
| 183 | ], |
| 184 | }, |
| 185 | }, |
| 186 | static_libs: [ |
| 187 | "libaom", |
| 188 | ], |
| 189 | } |