xref: /aosp_15_r20/external/llvm/lib/Support/Android.bp (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Workerpackage {
2*9880d681SAndroid Build Coastguard Worker    default_applicable_licenses: ["external_llvm_lib_Support_license"],
3*9880d681SAndroid Build Coastguard Worker}
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Worker// Added automatically by a large-scale-change that took the approach of
6*9880d681SAndroid Build Coastguard Worker// 'apply every license found to every target'. While this makes sure we respect
7*9880d681SAndroid Build Coastguard Worker// every license restriction, it may not be entirely correct.
8*9880d681SAndroid Build Coastguard Worker//
9*9880d681SAndroid Build Coastguard Worker// e.g. GPL in an MIT project might only apply to the contrib/ directory.
10*9880d681SAndroid Build Coastguard Worker//
11*9880d681SAndroid Build Coastguard Worker// Please consider splitting the single license below into multiple licenses,
12*9880d681SAndroid Build Coastguard Worker// taking care not to lose any license_kind information, and overriding the
13*9880d681SAndroid Build Coastguard Worker// default license using the 'licenses: [...]' property on targets as needed.
14*9880d681SAndroid Build Coastguard Worker//
15*9880d681SAndroid Build Coastguard Worker// For unused files, consider creating a 'fileGroup' with "//visibility:private"
16*9880d681SAndroid Build Coastguard Worker// to attach the license to, and including a comment whether the files may be
17*9880d681SAndroid Build Coastguard Worker// used in the current project.
18*9880d681SAndroid Build Coastguard Worker// See: http://go/android-license-faq
19*9880d681SAndroid Build Coastguard Workerlicense {
20*9880d681SAndroid Build Coastguard Worker    name: "external_llvm_lib_Support_license",
21*9880d681SAndroid Build Coastguard Worker    visibility: [":__subpackages__"],
22*9880d681SAndroid Build Coastguard Worker    license_kinds: [
23*9880d681SAndroid Build Coastguard Worker        "SPDX-license-identifier-BSD",
24*9880d681SAndroid Build Coastguard Worker        "SPDX-license-identifier-MIT",
25*9880d681SAndroid Build Coastguard Worker        "SPDX-license-identifier-NCSA",
26*9880d681SAndroid Build Coastguard Worker        "legacy_unencumbered",
27*9880d681SAndroid Build Coastguard Worker    ],
28*9880d681SAndroid Build Coastguard Worker    license_text: [
29*9880d681SAndroid Build Coastguard Worker        "COPYRIGHT.regex",
30*9880d681SAndroid Build Coastguard Worker    ],
31*9880d681SAndroid Build Coastguard Worker}
32*9880d681SAndroid Build Coastguard Worker
33*9880d681SAndroid Build Coastguard Workercc_library_static {
34*9880d681SAndroid Build Coastguard Worker    name: "libLLVMSupport",
35*9880d681SAndroid Build Coastguard Worker    vendor_available: true,
36*9880d681SAndroid Build Coastguard Worker    product_available: true,
37*9880d681SAndroid Build Coastguard Worker    defaults: ["llvm-defaults-no-generated-headers"],
38*9880d681SAndroid Build Coastguard Worker    target: {
39*9880d681SAndroid Build Coastguard Worker        // llvm-defaults turns off host builds by default, turn it back on for
40*9880d681SAndroid Build Coastguard Worker        // modules that are used to build llvm-tblgen
41*9880d681SAndroid Build Coastguard Worker        host: {
42*9880d681SAndroid Build Coastguard Worker            enabled: true,
43*9880d681SAndroid Build Coastguard Worker        },
44*9880d681SAndroid Build Coastguard Worker        windows: {
45*9880d681SAndroid Build Coastguard Worker            enabled: true,
46*9880d681SAndroid Build Coastguard Worker        },
47*9880d681SAndroid Build Coastguard Worker    },
48*9880d681SAndroid Build Coastguard Worker    srcs: [
49*9880d681SAndroid Build Coastguard Worker        "*.c",
50*9880d681SAndroid Build Coastguard Worker        "*.cpp",
51*9880d681SAndroid Build Coastguard Worker    ],
52*9880d681SAndroid Build Coastguard Worker}
53