ImageMagick: only build the jpeg coder. am: 8af99f17ba
am: 728d38fb7b

Change-Id: I2988a4e02f4420c1c8bd835ccc3cbdcc7df1b539
diff --git a/coders/Android.bp b/coders/Android.bp
index d273dc5..1db6067 100644
--- a/coders/Android.bp
+++ b/coders/Android.bp
@@ -17,24 +17,9 @@
 
     sdk_version: "24",
 
-    srcs: ["*.c"],
+    srcs: ["jpeg.c"],
 
-    exclude_srcs: [
-        // Removed because requires LIBTIFF
-        "tiff.c",
-    ],
-
-    cflags: [
-        "-DHAVE_CONFIG_H",
-        "-Wall",
-        "-Werror",
-        "-Wno-for-loop-analysis",
-        "-Wno-sign-compare",
-        "-Wno-shift-negative-value",
-        "-Wno-tautological-constant-out-of-range-compare",
-        "-Wno-unused-function",
-        "-Wno-unused-parameter",
-    ],
+    cflags: ["-DHAVE_CONFIG_H"],
 
     header_libs: ["Magick_headers"],
     static_libs: ["libjpeg_static_ndk"],
diff --git a/coders/coders-list.h b/coders/coders-list.h
index 68086d3..359d117 100644
--- a/coders/coders-list.h
+++ b/coders/coders-list.h
@@ -14,6 +14,7 @@
   limitations under the License.
 */
 
+#if 0
 AddMagickCoder(AAI)
 AddMagickCoder(ART)
 AddMagickCoder(AVS)
@@ -85,9 +86,11 @@
 #if defined(MAGICKCORE_JP2_DELEGATE) || defined(MAGICKCORE_LIBOPENJP2_DELEGATE)
   AddMagickCoder(JP2)
 #endif
+#endif
 #if defined(MAGICKCORE_JPEG_DELEGATE)
   AddMagickCoder(JPEG)
 #endif
+#if 0
 AddMagickCoder(JSON)
 AddMagickCoder(LABEL)
 AddMagickCoder(MAC)
@@ -184,3 +187,4 @@
 #endif
 AddMagickCoder(YCBCR)
 AddMagickCoder(YUV)
+#endif