partition_tools: Add lpunpack_static target
* For use in extract-utils
Change-Id: I54d1d9c4eafa70215c73f6b8760624275d0ed102
diff --git a/partition_tools/Android.bp b/partition_tools/Android.bp
index c280060..b8e3bf1 100644
--- a/partition_tools/Android.bp
+++ b/partition_tools/Android.bp
@@ -179,3 +179,26 @@
"-D_FILE_OFFSET_BITS=64",
],
}
+
+cc_binary_host {
+ name: "lpunpack_static",
+ defaults: ["lp_defaults"],
+ static_libs: [
+ "libbase",
+ "libcrypto",
+ "libcrypto_utils",
+ "libext4_utils",
+ "liblog",
+ "liblp",
+ "libsparse",
+ "libz"
+ ],
+ srcs: [
+ "lpunpack.cc",
+ ],
+ cppflags: [
+ "-D_FILE_OFFSET_BITS=64",
+ ],
+ stl: "libc++_static",
+ static_executable: true,
+}