Merge "Build bzip2/bunzip2/bzcat."
am: fc47d4667b
Change-Id: I4eec4fc8efa4ec63ccbc1fd5f04ec87cf798b2a7
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 @@
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",
+ ],
+}