Whamcloud - gitweb
ci.yml: test cross-compiling for Android
[tools/e2fsprogs.git] / Android.bp
index e596664..1e6aa1a 100644 (file)
@@ -42,21 +42,28 @@ license {
 
 cc_defaults {
     name: "e2fsprogs-defaults",
-    cflags: ["-Wall", "-Werror", "-Wno-pointer-arith"],
+    cflags: [
+        "-Wall",
+        "-Werror",
+        // Some warnings that Android's build system enables by default are not
+        // supported by upstream e2fsprogs.  When such a warning shows up,
+        // disable it below.  Please don't disable warnings that upstream
+        // e2fsprogs is supposed to support; for those, fix the code instead.
+        "-Wno-pointer-arith",
+        "-Wno-sign-compare",
+        "-Wno-type-limits",
+        "-Wno-typedef-redefinition",
+        "-Wno-unused-parameter",
+    ],
     target: {
-        darwin: {
-            // Still has unfixed/unsuppressed warnings.
-            cflags: ["-Wno-error"],
-        },
-        windows: {
-            cflags: [
-                "-Wno-typedef-redefinition",
-                "-Wno-unused-parameter",
-                "-Wno-unused-variable",
+        bionic: {
+            system_shared_libs: [
+                "libc",
+                "libdl",
             ],
         },
-        bionic: {
-            system_shared_libs: ["libc", "libdl"],
+        windows: {
+            include_dirs: ["external/e2fsprogs/include/mingw"],
         },
     },
 }