Make libwinpthread a prebuilt_cc_library_static
Test: m && ci
Change-Id: I9ca07765b2bca2dc2d490539a58f31e6dc65f46a
diff --git a/Android.bp b/Android.bp
index e34afa8..5452aff 100644
--- a/Android.bp
+++ b/Android.bp
@@ -94,3 +94,23 @@
},
},
}
+
+cc_prebuilt_library_static {
+ name: "libwinpthread",
+ host_supported: true,
+ enabled: false,
+ target: {
+ windows: {
+ enabled: true,
+ },
+ windows_x86: {
+ srcs: ["x86_64-w64-mingw32/lib32/libwinpthread.a"],
+ },
+ windows_x86_64: {
+ srcs: ["x86_64-w64-mingw32/lib/libwinpthread.a"],
+ },
+ },
+ stl: "none",
+ notice: ":mingw-libwinpthread-notice",
+ licenses: ["winpthreads_license"],
+}