• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1cc_library_static {
2    name: "libaom",
3    host_supported: true,
4    vendor_available: true,
5    cflags: [
6        "-O3",
7    ],
8
9    export_include_dirs: [
10        "libaom",
11    ],
12
13    arch: {
14        arm64: {
15            local_include_dirs: [
16                "config/",
17                "config/arm64/",
18            ],
19            srcs: aom_av1_common_sources +
20                aom_av1_decoder_sources +
21                aom_dsp_common_sources +
22                aom_dsp_decoder_sources +
23                aom_mem_sources +
24                ["libaom/aom_ports/arm_cpudetect.c"] +
25                aom_rtcd_sources +
26                aom_scale_sources +
27                aom_sources +
28                aom_util_sources +
29                aom_av1_common_intrin_neon +
30                aom_dsp_common_intrin_neon,
31        },
32
33        // configured to require the neon unit
34        arm: {
35            neon: {
36                local_include_dirs: [
37                    "config/",
38                    "config/arm/",
39                ],
40                srcs: aom_av1_common_sources +
41                    aom_av1_decoder_sources +
42                    aom_dsp_common_sources +
43                    aom_dsp_decoder_sources +
44                    aom_mem_sources +
45                    aom_rtcd_sources +
46                    ["libaom/aom_ports/arm_cpudetect.c"] +
47                    aom_scale_sources +
48                    aom_sources +
49                    aom_util_sources +
50                    aom_av1_common_intrin_neon +
51                    aom_dsp_common_intrin_neon,
52            },
53        },
54
55        x86_64: {
56            local_include_dirs: [
57                "config/",
58                "config/x86_64/",
59            ],
60            cflags: [
61                "-mssse3",
62            ],
63            srcs: aom_av1_common_sources +
64                aom_av1_decoder_sources +
65                aom_dsp_common_sources +
66                aom_dsp_decoder_sources +
67                aom_mem_sources +
68                aom_rtcd_sources +
69                aom_scale_sources +
70                aom_sources +
71                aom_util_sources +
72                aom_dsp_common_asm_sse2 +
73                aom_dsp_common_asm_ssse3 +
74                aom_ports_asm_x86 +
75                aom_av1_common_intrin_sse2 +
76                aom_dsp_common_intrin_sse2 +
77                aom_av1_common_intrin_ssse3 +
78                aom_dsp_common_intrin_ssse3,
79        },
80
81        x86: {
82            local_include_dirs: [
83                "config/",
84                "config/x86/",
85            ],
86            cflags: [
87                "-mssse3",
88            ],
89            srcs: aom_av1_common_sources +
90                aom_av1_decoder_sources +
91                aom_dsp_common_sources +
92                aom_dsp_decoder_sources +
93                aom_mem_sources +
94                aom_rtcd_sources +
95                aom_scale_sources +
96                aom_sources +
97                aom_util_sources +
98                aom_dsp_common_asm_sse2 +
99                aom_dsp_common_asm_ssse3 +
100                aom_ports_asm_x86 +
101                aom_av1_common_intrin_sse2 +
102                aom_dsp_common_intrin_sse2 +
103                aom_av1_common_intrin_ssse3 +
104                aom_dsp_common_intrin_ssse3,
105        },
106
107    },
108
109    sanitize: {
110        blocklist: "libaom_blocklist.txt",
111    },
112
113}
114
115cc_fuzz {
116    name: "av1_dec_fuzzer",
117    host_supported: true,
118    srcs: [
119        "libaom/examples/av1_dec_fuzzer.cc",
120    ],
121    arch: {
122        arm: {
123            neon: {
124                local_include_dirs: [
125                    "config/",
126                    "config/arm/",
127                ],
128            },
129        },
130
131        arm64: {
132            local_include_dirs: [
133                "config/",
134                "config/arm64/",
135            ],
136        },
137
138        x86: {
139            local_include_dirs: [
140                "config/",
141                "config/x86/",
142            ],
143        },
144
145        x86_64: {
146            local_include_dirs: [
147                "config/",
148                "config/x86_64/",
149            ],
150        },
151    },
152    static_libs: [
153        "libaom",
154    ],
155}
156