1// *** THIS PACKAGE HAS SPECIAL LICENSING CONDITIONS.  PLEASE
2//     CONSULT THE OWNERS AND [email protected] 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
59license {
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
69cc_prebuilt_library_shared {
70    name: "libwinpthread-1",
71    host_supported: true,
72    device_supported: false,
73    stl: "none",
74    licenses: ["winpthreads_license"],
75    multilib: {
76        lib32: {
77            srcs: ["x86_64-w64-mingw32/lib32/libwinpthread-1.dll"],
78        },
79        lib64: {
80            srcs: ["x86_64-w64-mingw32/bin/libwinpthread-1.dll"],
81        },
82    },
83    visibility: ["//development/build"],
84
85    enabled: false,
86    target: {
87        windows: {
88            enabled: true,
89        },
90    },
91}
92
93cc_prebuilt_library_static {
94    name: "libwinpthread",
95    host_supported: true,
96    enabled: false,
97    target: {
98        windows: {
99            enabled: true,
100        },
101        windows_x86: {
102            srcs: ["x86_64-w64-mingw32/lib32/libwinpthread.a"],
103        },
104        windows_x86_64: {
105            srcs: ["x86_64-w64-mingw32/lib/libwinpthread.a"],
106        },
107    },
108    stl: "none",
109    licenses: ["winpthreads_license"],
110}
111