blob: 478fd75e2bd882e53807e4750248b536b6b71de6 [file] [log] [blame]
James Zernc69f4f72021-10-14 12:23:33 -07001package {
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
19license {
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 Essick247da042018-11-29 14:14:00 -080035cc_library_static {
36 name: "libaom",
Harish Mahendrakaraab07a42019-09-06 11:05:23 -070037 host_supported: true,
Ray Essick247da042018-11-29 14:14:00 -080038 vendor_available: true,
39 cflags: [
40 "-O3",
41 ],
42
43 export_include_dirs: [
44 "libaom",
45 ],
46
Ray Essick247da042018-11-29 14:14:00 -080047 arch: {
48 arm64: {
49 local_include_dirs: [
Johann39f13222019-01-09 11:48:14 -080050 "config/",
Ray Essick247da042018-11-29 14:14:00 -080051 "config/arm64/",
52 ],
Johann39f13222019-01-09 11:48:14 -080053 srcs: aom_av1_common_sources +
Johann38edf102019-01-11 12:45:55 -080054 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 Essick247da042018-11-29 14:14:00 -080065 },
66
Ray Essickbbd26a92018-12-10 21:34:38 -080067 // configured to require the neon unit
Johann39f13222019-01-09 11:48:14 -080068 arm: {
Johann38edf102019-01-11 12:45:55 -080069 neon: {
Johann39f13222019-01-09 11:48:14 -080070 local_include_dirs: [
71 "config/",
72 "config/arm/",
73 ],
74 srcs: aom_av1_common_sources +
Johann38edf102019-01-11 12:45:55 -080075 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 },
Johann39f13222019-01-09 11:48:14 -080087 },
Ray Essick247da042018-11-29 14:14:00 -080088
89 x86_64: {
90 local_include_dirs: [
Johann39f13222019-01-09 11:48:14 -080091 "config/",
Ray Essick247da042018-11-29 14:14:00 -080092 "config/x86_64/",
93 ],
Harish Mahendrakaraab07a42019-09-06 11:05:23 -070094 cflags: [
95 "-mssse3",
96 ],
Johann39f13222019-01-09 11:48:14 -080097 srcs: aom_av1_common_sources +
Johann38edf102019-01-11 12:45:55 -080098 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 Essick247da042018-11-29 14:14:00 -0800113 },
114
115 x86: {
116 local_include_dirs: [
Johann39f13222019-01-09 11:48:14 -0800117 "config/",
Ray Essick247da042018-11-29 14:14:00 -0800118 "config/x86/",
119 ],
Harish Mahendrakaraab07a42019-09-06 11:05:23 -0700120 cflags: [
121 "-mssse3",
122 ],
Johann39f13222019-01-09 11:48:14 -0800123 srcs: aom_av1_common_sources +
Johann38edf102019-01-11 12:45:55 -0800124 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 +
Johann3d220f92019-01-11 12:43:22 -0800132 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 Essick247da042018-11-29 14:14:00 -0800139 },
140
141 },
142
Liu, Kai185035c22019-08-22 09:44:23 +0800143 sanitize: {
Pirama Arumuga Nainar49f6f652020-07-28 14:34:28 -0700144 blocklist: "libaom_blocklist.txt",
Liu, Kai185035c22019-08-22 09:44:23 +0800145 },
146
Ray Essick247da042018-11-29 14:14:00 -0800147}
Harish Mahendrakar5ad98b02019-09-06 11:10:39 -0700148
149cc_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}