aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuhammad Haseeb Ahmad <mhahmad@google.com>2022-06-23 00:03:34 +0000
committerMuhammad Haseeb Ahmad <mhahmad@google.com>2022-06-23 21:38:33 +0000
commit8a3f399d196951bd2c867f07bc8834417f6e9bc7 (patch)
treec52dc7ffc78302154d542f23e2216f84b1f999b1
parentef7d020fc69e774d6fd43e44ed3c94f4843d04d7 (diff)
downloadbrotli-8a3f399d196951bd2c867f07bc8834417f6e9bc7.tar.gz
Make a libbrotli_encoder_jni shared library from encoder_jni.cc
This is required for the JavaCompressFuzzer: https://r.android.com/2135512 Test: m libbrotli_encoder_jni Bug: 236747140 Change-Id: I5c1ce687618fc4b9a8254d813d4e29b94e83e408
-rwxr-xr-xAndroid.bp15
1 files changed, 15 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index 03b4914..4aca318 100755
--- a/Android.bp
+++ b/Android.bp
@@ -102,6 +102,21 @@ cc_binary {
static_libs: ["libbrotli"],
}
+cc_library_shared {
+ name: "libbrotli_encoder_jni",
+ host_supported: true,
+ srcs: [
+ "java/org/brotli/wrapper/enc/encoder_jni.cc",
+ ],
+ static_libs: [
+ "libnativehelper_lazy",
+ "libbrotli",
+ ],
+ cflags: [
+ "-Wno-unused-parameter",
+ ],
+}
+
//
// Support for brotli in java code.
//