diff options
author | Harish Mahendrakar <harish.mahendrakar@ittiam.com> | 2019-09-05 17:10:26 -0700 |
---|---|---|
committer | Harish Mahendrakar <harish.mahendrakar@ittiam.com> | 2020-01-14 09:54:49 -0800 |
commit | ef01cf0b9e73962e715ed9963b109e8c2d30b3df (patch) | |
tree | a9e81d46cf95c4edbbf2cbc0cfe9263e1b1609a2 | |
parent | c3649bb6f07a467d45b86ef37501c5b573e40e93 (diff) | |
download | libvpx-ef01cf0b9e73962e715ed9963b109e8c2d30b3df.tar.gz |
Updated Android.bp to build fuzzer targets
Test: vp9_dec_fuzzer
Test: vp8_dec_fuzzer
Bug: 135060698
Change-Id: I9d0c4fbab4ac7b40abb4560467f577e8747d8d37
-rw-r--r-- | Android.bp | 73 | ||||
-rw-r--r-- | Android.bp.in | 73 |
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", + ], +} |