From ba3e19c9a567b8fad665936f2b08d5a265861b49 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Mon, 27 Mar 2017 22:58:44 -0700 Subject: Build bzip2/bunzip2/bzcat. Bug: http://b/36653808 Test: builds (cherry picked from commit 9fa5f2d123ef61213bb74d261a982a5da30147de) Change-Id: Ia218b519c92d2a38f22a4de28c30d1acad723aa6 --- Android.bp | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/Android.bp b/Android.bp index b0f642b..897dc77 100644 --- a/Android.bp +++ b/Android.bp @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. - cc_library_static { name: "libbz", host_supported: true, @@ -41,3 +40,19 @@ cc_library_static { sdk_version: "9", stl: "none", } + +cc_binary { + name: "bzip2", + srcs: ["bzip2.c"], + // This is only static because we don't currently have libbz.so on device. + // If that changes, change this too. + static_libs: ["libbz"], + stl: "none", + cflags: [ + "-Wno-unused-parameter", + ], + symlinks: [ + "bunzip2", + "bzcat", + ], +} -- cgit v1.2.3