blob: 5452aff45666d07ef5e9deb3dd8f3e24e597f835 [file] [log] [blame]
Bob Badour62426032021-02-03 17:23:25 -08001// *** THIS PACKAGE HAS SPECIAL LICENSING CONDITIONS. PLEASE
2// CONSULT THE OWNERS AND opensource-licensing@google.com BEFORE
3// DEPENDING ON IT IN YOUR PROJECT. ***
4package {
5 default_applicable_licenses: [
6 "prebuilts_gcc_linux-x86_host_x86_64-w64-mingw32-4.8_license",
7 ],
8}
9
10// Added automatically by a large-scale-change that took the approach of
11// 'apply every license found to every target'. While this makes sure we respect
12// every license restriction, it may not be entirely correct.
13//
14// e.g. GPL in an MIT project might only apply to the contrib/ directory.
15//
16// Please consider splitting the single license below into multiple licenses,
17// taking care not to lose any license_kind information, and overriding the
18// default license using the 'licenses: [...]' property on targets as needed.
19//
20// For unused files, consider creating a 'filegroup' with "//visibility:private"
21// to attach the license to, and including a comment whether the files may be
22// used in the current project.
23//
24// large-scale-change included anything that looked like it might be a license
25// text as a license_text. e.g. LICENSE, NOTICE, COPYING etc.
26//
27// Please consider removing redundant or irrelevant files from 'license_text:'.
28//
29// large-scale-change filtered out the below license kinds as false-positives:
30// SPDX-license-identifier-AGPL
31// http://go/android-license-faq
32license {
33 name: "prebuilts_gcc_linux-x86_host_x86_64-w64-mingw32-4.8_license",
34 visibility: [":__subpackages__"],
35 license_kinds: [
36 "SPDX-license-identifier-0BSD",
37 "SPDX-license-identifier-Apache-2.0",
38 "SPDX-license-identifier-BSD",
39 "SPDX-license-identifier-BSL-1.0",
40 "SPDX-license-identifier-GFDL", // by exception only
41 "SPDX-license-identifier-GPL",
42 "SPDX-license-identifier-GPL-2.0",
43 "SPDX-license-identifier-GPL-3.0",
44 "SPDX-license-identifier-ISC",
45 "SPDX-license-identifier-LGPL",
46 "SPDX-license-identifier-LGPL-2.1",
47 "SPDX-license-identifier-LGPL-3.0",
48 "SPDX-license-identifier-MIT",
49 "SPDX-license-identifier-ZPL",
50 "legacy_by_exception_only", // by exception only
51 "legacy_unencumbered",
52 ],
53 license_text: [
54 "NOTICE",
55 "licenses/**/*",
56 ],
57}
58
Dan Willemsen61f93082021-09-15 00:41:18 -070059license {
60 name: "winpthreads_license",
61 visibility: ["//build/soong"],
62 license_kinds: [
63 "SPDX-license-identifier-BSD",
64 "SPDX-license-identifier-MIT",
65 ],
66 license_text: ["licenses/mingw-w64-svn-r5861/mingw-w64-libraries/winpthreads/COPYING"],
67}
68
Jaewoong Jung0a795302018-11-27 17:13:40 +000069filegroup {
70 name: "mingw-libwinpthread-notice",
71 srcs: ["licenses/mingw-w64-svn-r5861/mingw-w64-libraries/winpthreads/COPYING"],
72}
Dan Willemsen61f93082021-09-15 00:41:18 -070073
74cc_prebuilt_library_shared {
75 name: "libwinpthread-1",
76 host_supported: true,
77 device_supported: false,
78 stl: "none",
79 licenses: ["winpthreads_license"],
80 multilib: {
81 lib32: {
82 srcs: ["x86_64-w64-mingw32/lib32/libwinpthread-1.dll"],
83 },
84 lib64: {
85 srcs: ["x86_64-w64-mingw32/bin/libwinpthread-1.dll"],
86 },
87 },
88 visibility: ["//development/build"],
89
90 enabled: false,
91 target: {
92 windows: {
93 enabled: true,
94 },
95 },
96}
Liz Kammera6fee372022-01-07 11:36:58 -050097
98cc_prebuilt_library_static {
99 name: "libwinpthread",
100 host_supported: true,
101 enabled: false,
102 target: {
103 windows: {
104 enabled: true,
105 },
106 windows_x86: {
107 srcs: ["x86_64-w64-mingw32/lib32/libwinpthread.a"],
108 },
109 windows_x86_64: {
110 srcs: ["x86_64-w64-mingw32/lib/libwinpthread.a"],
111 },
112 },
113 stl: "none",
114 notice: ":mingw-libwinpthread-notice",
115 licenses: ["winpthreads_license"],
116}