You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
135 lines
2.6 KiB
135 lines
2.6 KiB
4 months ago
|
cc_library {
|
||
|
name: "libvpx",
|
||
|
vendor_available: true,
|
||
|
host_supported: true,
|
||
|
version_script: "exports.lds",
|
||
|
|
||
|
target: {
|
||
|
darwin: {
|
||
|
enabled: false,
|
||
|
},
|
||
|
},
|
||
|
|
||
|
arch: {
|
||
|
// configured to require the neon unit
|
||
|
arm: {
|
||
|
neon: {
|
||
|
// Want arm, not thumb, optimized
|
||
|
instruction_set: "arm",
|
||
|
|
||
|
srcs: libvpx_arm_neon_c_srcs + libvpx_arm_neon_asm_srcs,
|
||
|
local_include_dirs: ["config/arm-neon"],
|
||
|
},
|
||
|
},
|
||
|
|
||
|
arm64: {
|
||
|
srcs: libvpx_arm64_c_srcs,
|
||
|
local_include_dirs: ["config/arm64"],
|
||
|
},
|
||
|
|
||
|
x86: {
|
||
|
srcs: libvpx_x86_c_srcs + libvpx_x86_asm_srcs,
|
||
|
local_include_dirs: ["config/x86"],
|
||
|
cflags: [
|
||
|
"-mssse3",
|
||
|
],
|
||
|
},
|
||
|
|
||
|
x86_64: {
|
||
|
srcs: libvpx_x86_64_c_srcs + libvpx_x86_64_asm_srcs,
|
||
|
local_include_dirs: ["config/x86_64"],
|
||
|
cflags: [
|
||
|
"-mssse3",
|
||
|
],
|
||
|
},
|
||
|
},
|
||
|
|
||
|
cflags: [
|
||
|
"-O3",
|
||
|
"-Wno-unused-parameter",
|
||
|
],
|
||
|
|
||
|
export_include_dirs: ["libvpx"],
|
||
|
|
||
|
sanitize: {
|
||
|
integer_overflow: true,
|
||
|
misc_undefined: ["bounds"],
|
||
|
// Enable CFI if this becomes a shared library.
|
||
|
// cfi: true,
|
||
|
blocklist: "libvpx_blocklist.txt",
|
||
|
},
|
||
|
}
|
||
|
|
||
|
cc_fuzz {
|
||
|
name: "vp9_dec_fuzzer",
|
||
|
host_supported: true,
|
||
|
srcs: [
|
||
|
"libvpx/examples/vpx_dec_fuzzer.cc",
|
||
|
],
|
||
|
target: {
|
||
|
darwin: {
|
||
|
enabled: false,
|
||
|
},
|
||
|
},
|
||
|
arch: {
|
||
|
arm: {
|
||
|
neon: {
|
||
|
local_include_dirs: ["config/arm-neon"],
|
||
|
},
|
||
|
},
|
||
|
|
||
|
arm64: {
|
||
|
local_include_dirs: ["config/arm64"],
|
||
|
},
|
||
|
|
||
|
x86: {
|
||
|
local_include_dirs: ["config/x86"],
|
||
|
},
|
||
|
|
||
|
x86_64: {
|
||
|
local_include_dirs: ["config/x86_64"],
|
||
|
},
|
||
|
},
|
||
|
cflags: ["-DDECODER=vp9"],
|
||
|
static_libs: [
|
||
|
"libvpx",
|
||
|
],
|
||
|
}
|
||
|
|
||
|
cc_fuzz {
|
||
|
name: "vp8_dec_fuzzer",
|
||
|
host_supported: true,
|
||
|
srcs: [
|
||
|
"libvpx/examples/vpx_dec_fuzzer.cc",
|
||
|
],
|
||
|
target: {
|
||
|
darwin: {
|
||
|
enabled: false,
|
||
|
},
|
||
|
},
|
||
|
arch: {
|
||
|
arm: {
|
||
|
neon: {
|
||
|
local_include_dirs: ["config/arm-neon"],
|
||
|
},
|
||
|
},
|
||
|
|
||
|
arm64: {
|
||
|
local_include_dirs: ["config/arm64"],
|
||
|
},
|
||
|
|
||
|
x86: {
|
||
|
local_include_dirs: ["config/x86"],
|
||
|
},
|
||
|
|
||
|
x86_64: {
|
||
|
local_include_dirs: ["config/x86_64"],
|
||
|
},
|
||
|
},
|
||
|
|
||
|
cflags: ["-DDECODER=vp8"],
|
||
|
static_libs: [
|
||
|
"libvpx",
|
||
|
],
|
||
|
}
|