aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2021-09-15 00:41:18 -0700
committerDan Willemsen <dwillemsen@google.com>2021-10-12 19:19:39 -0700
commit61f9308c4da1fbb1c6a5c13405e3a3550505b335 (patch)
treec8cd19ebf981e58c6bc151e9059fabbd64890b36
parent9625cd6095db79a30f80b2fbcad6b6fda22e9ec7 (diff)
downloadx86_64-w64-mingw32-4.8-61f9308c4da1fbb1c6a5c13405e3a3550505b335.tar.gz
Expose libwinpthread-1.dll for the sdk-repo builds
Bug: 187222815 Change-Id: I105da899af67926e354c42adc3a8b8a873c8f0b2
-rw-r--r--Android.bp34
1 files changed, 34 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index ae93b9fe..e34afa83 100644
--- a/Android.bp
+++ b/Android.bp
@@ -56,7 +56,41 @@ license {
],
}
+license {
+ name: "winpthreads_license",
+ visibility: ["//build/soong"],
+ license_kinds: [
+ "SPDX-license-identifier-BSD",
+ "SPDX-license-identifier-MIT",
+ ],
+ license_text: ["licenses/mingw-w64-svn-r5861/mingw-w64-libraries/winpthreads/COPYING"],
+}
+
filegroup {
name: "mingw-libwinpthread-notice",
srcs: ["licenses/mingw-w64-svn-r5861/mingw-w64-libraries/winpthreads/COPYING"],
}
+
+cc_prebuilt_library_shared {
+ name: "libwinpthread-1",
+ host_supported: true,
+ device_supported: false,
+ stl: "none",
+ licenses: ["winpthreads_license"],
+ multilib: {
+ lib32: {
+ srcs: ["x86_64-w64-mingw32/lib32/libwinpthread-1.dll"],
+ },
+ lib64: {
+ srcs: ["x86_64-w64-mingw32/bin/libwinpthread-1.dll"],
+ },
+ },
+ visibility: ["//development/build"],
+
+ enabled: false,
+ target: {
+ windows: {
+ enabled: true,
+ },
+ },
+}