aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhamzeh <hamzeh@google.com>2024-01-16 15:24:03 -0800
committerhamzeh <hamzeh@google.com>2024-01-16 16:51:42 -0800
commit36058c195332b668781421ed33bcdd1838a8a5c4 (patch)
tree12588f64044a9ad05744ca2a4bf07601913c0d5c
parent15fdf31c61251f3e5aa3b188df2770eb153b9484 (diff)
downloadzopfli-36058c195332b668781421ed33bcdd1838a8a5c4.tar.gz
Add library definition for test purposes
Bug: 314823441 Test: m libzopflipng_fuzz Change-Id: I6f24058c8a798593899b6ca65733e5f3697c9ab0
-rw-r--r--Android.bp21
1 files changed, 21 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index 8a1c818..b0f97d7 100644
--- a/Android.bp
+++ b/Android.bp
@@ -69,3 +69,24 @@ cc_binary_host {
],
}
+
+cc_library {
+ name: "liblodepng_fuzz",
+
+ cflags: [
+ "-O2",
+ "-Wno-unused-parameter",
+ "-Werror",
+ ],
+ srcs: [
+ "src/zopflipng/lodepng/lodepng.cpp",
+ "src/zopflipng/lodepng/lodepng_util.cpp",
+ "src/zopflipng/zopflipng_lib.cc",
+ "src/zopflipng/zopflipng_bin.cc",
+ ],
+
+ static_libs: [
+ "libzopfli",
+ ],
+
+}