blob: 97696e56c7f6d6535c737208f31417b4f12017cf [file] [log] [blame]
Harish Mahendrakar2356f9b2019-05-10 19:27:31 -07001cc_library_shared {
Colin Crossfcddc562017-04-26 14:12:48 -07002 name: "libvpx",
Johanndf371112018-01-16 14:31:39 -08003 vendor_available: true,
Harish Mahendrakar2356f9b2019-05-10 19:27:31 -07004 version_script: "exports.lds",
Colin Crossfcddc562017-04-26 14:12:48 -07005
6 arch: {
Johann9d86dd82019-01-18 09:13:56 -08007 // configured to require the neon unit
Colin Crossfcddc562017-04-26 14:12:48 -07008 arm: {
Colin Crossfcddc562017-04-26 14:12:48 -07009 neon: {
Johann9d86dd82019-01-18 09:13:56 -080010 // Want arm, not thumb, optimized
11 instruction_set: "arm",
12
Dan Willemsenfac59912018-10-05 14:54:21 -070013 srcs: libvpx_arm_neon_c_srcs + libvpx_arm_neon_asm_srcs,
Colin Crossfcddc562017-04-26 14:12:48 -070014 local_include_dirs: ["config/arm-neon"],
15 },
16 },
17
18 arm64: {
19 srcs: libvpx_arm64_c_srcs,
20 local_include_dirs: ["config/arm64"],
21 },
22
Colin Crossfcddc562017-04-26 14:12:48 -070023 x86: {
24 srcs: libvpx_x86_c_srcs + libvpx_x86_asm_srcs,
25 local_include_dirs: ["config/x86"],
26 },
27
28 x86_64: {
Johann57b15122019-01-29 14:24:45 -080029 srcs: libvpx_x86_64_c_srcs + libvpx_x86_64_asm_srcs,
30 local_include_dirs: ["config/x86_64"],
Colin Crossfcddc562017-04-26 14:12:48 -070031 },
32 },
33
34 cflags: [
35 "-O3",
36 "-Wno-unused-parameter",
37 ],
38
39 export_include_dirs: ["libvpx"],
40
41 sanitize: {
Johann9c8a1ae2019-01-16 10:31:45 -080042 integer_overflow: true,
43 misc_undefined: ["bounds"],
44 // Enable CFI if this becomes a shared library.
45 // cfi: true,
Johann9c8a1ae2019-01-16 10:31:45 -080046 blacklist: "libvpx_blacklist.txt",
Colin Crossfcddc562017-04-26 14:12:48 -070047 },
48}