]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blobdiff - resize/Android.bp
AOSP: Allow resize2fs to compile with BUILD_HOST_static
[thirdparty/e2fsprogs.git] / resize / Android.bp
index d55e24c216701a09246dd90532127c38a0496ca5..399201c3b4f3e41a6b2d5815eb54f3d7e6795a26 100644 (file)
@@ -13,12 +13,27 @@ cc_binary {
         "sim_progress.c",
         "resource_track.c",
     ],
-    shared_libs: [
-        "libext2fs",
-        "libext2_com_err",
-        "libext2_e2p",
-        "libext2_uuid",
-        "libext2_blkid",
-    ],
+    // Host binaries can be compiled statically to be re-used in other environments.
+    // For android binaries, we keep shared libraries to keep the binary size smaller.
+    target: {
+        host: {
+            static_libs: [
+                "libext2fs",
+                "libext2_com_err",
+                "libext2_e2p",
+                "libext2_uuid",
+                "libext2_blkid",
+            ],
+        },
+        android: {
+            shared_libs: [
+                "libext2fs",
+                "libext2_com_err",
+                "libext2_e2p",
+                "libext2_uuid",
+                "libext2_blkid",
+            ],
+        },
+    },
     system_shared_libs: ["libc", "libdl"],
 }