Include <limits.h> for SIZE_MAX DO NOT MERGE am: 147ea0d6d7  -s ours am: 9136831f9c  -s ours am: 8bfff4f29f am: c13e1d18d0  -s ours am: 206e3e54ee am: 99f10c5f71 am: ae38ad3b65 am: 9df4114375  -s ours am: 3e6f70a03a am: 61bde09c83 am: 91d92e11d7 am: c5faa6691b
am: 6b2dede201

Change-Id: I2122fb0178df1e5fa29043cf112e624473ff4ecd
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 0000000..9bfb163
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,24 @@
+cc_library_static {
+    name: "libgif",
+
+    sdk_version: "9",
+
+    srcs: [
+        "dgif_lib.c",
+        "egif_lib.c",
+        "gifalloc.c",
+        "gif_err.c",
+        "gif_hash.c",
+        "openbsd-reallocarray.c",
+        "quantize.c",
+    ],
+
+    cflags: [
+        "-Wno-format",
+        "-Wno-sign-compare",
+        "-Wno-unused-parameter",
+        "-DHAVE_CONFIG_H",
+    ],
+
+    export_include_dirs: ["."],
+}
diff --git a/Android.mk b/Android.mk
deleted file mode 100644
index 437a8f7..0000000
--- a/Android.mk
+++ /dev/null
@@ -1,18 +0,0 @@
-LOCAL_PATH:= $(call my-dir)
-include $(CLEAR_VARS)
-
-LOCAL_SDK_VERSION := 9
-
-LOCAL_SRC_FILES := \
-    dgif_lib.c     \
-    egif_lib.c     \
-    gifalloc.c     \
-    gif_err.c      \
-    gif_hash.c     \
-    openbsd-reallocarray.c     \
-    quantize.c
-
-LOCAL_CFLAGS += -Wno-format -Wno-sign-compare -Wno-unused-parameter -DHAVE_CONFIG_H
-LOCAL_MODULE:= libgif
-
-include $(BUILD_STATIC_LIBRARY)