Harish Mahendrakar | 1764139 | 2019-06-14 14:45:41 -0700 | [diff] [blame] | 1 | cc_library { |
Colin Cross | fcddc56 | 2017-04-26 14:12:48 -0700 | [diff] [blame] | 2 | name: "libvpx", |
Johann | df37111 | 2018-01-16 14:31:39 -0800 | [diff] [blame] | 3 | vendor_available: true, |
Jorge Moreira Broche | bded9f1 | 2020-01-02 18:45:22 +0000 | [diff] [blame] | 4 | host_supported: true, |
Harish Mahendrakar | 2356f9b | 2019-05-10 19:27:31 -0700 | [diff] [blame] | 5 | version_script: "exports.lds", |
Colin Cross | fcddc56 | 2017-04-26 14:12:48 -0700 | [diff] [blame] | 6 | |
Jorge Moreira Broche | bded9f1 | 2020-01-02 18:45:22 +0000 | [diff] [blame] | 7 | target: { |
| 8 | darwin: { |
| 9 | enabled: false, |
| 10 | }, |
| 11 | }, |
| 12 | |
Colin Cross | fcddc56 | 2017-04-26 14:12:48 -0700 | [diff] [blame] | 13 | arch: { |
Johann | 9d86dd8 | 2019-01-18 09:13:56 -0800 | [diff] [blame] | 14 | // configured to require the neon unit |
Colin Cross | fcddc56 | 2017-04-26 14:12:48 -0700 | [diff] [blame] | 15 | arm: { |
Colin Cross | fcddc56 | 2017-04-26 14:12:48 -0700 | [diff] [blame] | 16 | neon: { |
Johann | 9d86dd8 | 2019-01-18 09:13:56 -0800 | [diff] [blame] | 17 | // Want arm, not thumb, optimized |
| 18 | instruction_set: "arm", |
| 19 | |
Dan Willemsen | fac5991 | 2018-10-05 14:54:21 -0700 | [diff] [blame] | 20 | srcs: libvpx_arm_neon_c_srcs + libvpx_arm_neon_asm_srcs, |
Colin Cross | fcddc56 | 2017-04-26 14:12:48 -0700 | [diff] [blame] | 21 | local_include_dirs: ["config/arm-neon"], |
| 22 | }, |
| 23 | }, |
| 24 | |
| 25 | arm64: { |
| 26 | srcs: libvpx_arm64_c_srcs, |
| 27 | local_include_dirs: ["config/arm64"], |
| 28 | }, |
| 29 | |
Colin Cross | fcddc56 | 2017-04-26 14:12:48 -0700 | [diff] [blame] | 30 | x86: { |
| 31 | srcs: libvpx_x86_c_srcs + libvpx_x86_asm_srcs, |
| 32 | local_include_dirs: ["config/x86"], |
Jorge Moreira Broche | bded9f1 | 2020-01-02 18:45:22 +0000 | [diff] [blame] | 33 | cflags: [ |
| 34 | "-mssse3", |
| 35 | ], |
Colin Cross | fcddc56 | 2017-04-26 14:12:48 -0700 | [diff] [blame] | 36 | }, |
| 37 | |
| 38 | x86_64: { |
Johann | 57b1512 | 2019-01-29 14:24:45 -0800 | [diff] [blame] | 39 | srcs: libvpx_x86_64_c_srcs + libvpx_x86_64_asm_srcs, |
| 40 | local_include_dirs: ["config/x86_64"], |
Jorge Moreira Broche | bded9f1 | 2020-01-02 18:45:22 +0000 | [diff] [blame] | 41 | cflags: [ |
| 42 | "-mssse3", |
| 43 | ], |
Colin Cross | fcddc56 | 2017-04-26 14:12:48 -0700 | [diff] [blame] | 44 | }, |
| 45 | }, |
| 46 | |
| 47 | cflags: [ |
| 48 | "-O3", |
| 49 | "-Wno-unused-parameter", |
| 50 | ], |
| 51 | |
| 52 | export_include_dirs: ["libvpx"], |
| 53 | |
| 54 | sanitize: { |
Johann | 9c8a1ae | 2019-01-16 10:31:45 -0800 | [diff] [blame] | 55 | integer_overflow: true, |
| 56 | misc_undefined: ["bounds"], |
| 57 | // Enable CFI if this becomes a shared library. |
| 58 | // cfi: true, |
Pirama Arumuga Nainar | e43bab5 | 2020-07-28 14:36:17 -0700 | [diff] [blame] | 59 | blocklist: "libvpx_blocklist.txt", |
Colin Cross | fcddc56 | 2017-04-26 14:12:48 -0700 | [diff] [blame] | 60 | }, |
| 61 | } |
Harish Mahendrakar | ef01cf0 | 2019-09-05 17:10:26 -0700 | [diff] [blame] | 62 | |
| 63 | cc_fuzz { |
| 64 | name: "vp9_dec_fuzzer", |
| 65 | host_supported: true, |
| 66 | srcs: [ |
| 67 | "libvpx/examples/vpx_dec_fuzzer.cc", |
| 68 | ], |
| 69 | target: { |
| 70 | darwin: { |
| 71 | enabled: false, |
| 72 | }, |
| 73 | }, |
| 74 | arch: { |
| 75 | arm: { |
| 76 | neon: { |
| 77 | local_include_dirs: ["config/arm-neon"], |
| 78 | }, |
| 79 | }, |
| 80 | |
| 81 | arm64: { |
| 82 | local_include_dirs: ["config/arm64"], |
| 83 | }, |
| 84 | |
| 85 | x86: { |
| 86 | local_include_dirs: ["config/x86"], |
| 87 | }, |
| 88 | |
| 89 | x86_64: { |
| 90 | local_include_dirs: ["config/x86_64"], |
| 91 | }, |
| 92 | }, |
| 93 | cflags: ["-DDECODER=vp9"], |
| 94 | static_libs: [ |
| 95 | "libvpx", |
| 96 | ], |
| 97 | } |
| 98 | |
| 99 | cc_fuzz { |
| 100 | name: "vp8_dec_fuzzer", |
| 101 | host_supported: true, |
| 102 | srcs: [ |
| 103 | "libvpx/examples/vpx_dec_fuzzer.cc", |
| 104 | ], |
| 105 | target: { |
| 106 | darwin: { |
| 107 | enabled: false, |
| 108 | }, |
| 109 | }, |
| 110 | arch: { |
| 111 | arm: { |
| 112 | neon: { |
| 113 | local_include_dirs: ["config/arm-neon"], |
| 114 | }, |
| 115 | }, |
| 116 | |
| 117 | arm64: { |
| 118 | local_include_dirs: ["config/arm64"], |
| 119 | }, |
| 120 | |
| 121 | x86: { |
| 122 | local_include_dirs: ["config/x86"], |
| 123 | }, |
| 124 | |
| 125 | x86_64: { |
| 126 | local_include_dirs: ["config/x86_64"], |
| 127 | }, |
| 128 | }, |
| 129 | |
| 130 | cflags: ["-DDECODER=vp8"], |
| 131 | static_libs: [ |
| 132 | "libvpx", |
| 133 | ], |
| 134 | } |