aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2020-01-16 13:51:30 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2020-01-16 13:51:30 +0000
commit02392be07c27e38ecfbd605a06c49d3af22e5c2c (patch)
treea9e81d46cf95c4edbbf2cbc0cfe9263e1b1609a2
parentc3649bb6f07a467d45b86ef37501c5b573e40e93 (diff)
parentef01cf0b9e73962e715ed9963b109e8c2d30b3df (diff)
downloadlibvpx-02392be07c27e38ecfbd605a06c49d3af22e5c2c.tar.gz
Merge "Updated Android.bp to build fuzzer targets"android-r-preview-1
-rw-r--r--Android.bp73
-rw-r--r--Android.bp.in73
2 files changed, 146 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index 70e113c07..1f0761c76 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1163,3 +1163,76 @@ cc_library {
blacklist: "libvpx_blacklist.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",
+ ],
+}
diff --git a/Android.bp.in b/Android.bp.in
index 91a0ec645..612551c88 100644
--- a/Android.bp.in
+++ b/Android.bp.in
@@ -59,3 +59,76 @@ cc_library {
blacklist: "libvpx_blacklist.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",
+ ],
+}