xref: /aosp_15_r20/external/llvm/utils/TableGen/Android.bp (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Workerpackage {
2*9880d681SAndroid Build Coastguard Worker    // See: http://go/android-license-faq
3*9880d681SAndroid Build Coastguard Worker    // A large-scale-change added 'default_applicable_licenses' to import
4*9880d681SAndroid Build Coastguard Worker    // all of the 'license_kinds' from "external_llvm_license"
5*9880d681SAndroid Build Coastguard Worker    // to get the below license kinds:
6*9880d681SAndroid Build Coastguard Worker    //   SPDX-license-identifier-NCSA
7*9880d681SAndroid Build Coastguard Worker    default_applicable_licenses: ["external_llvm_license"],
8*9880d681SAndroid Build Coastguard Worker}
9*9880d681SAndroid Build Coastguard Worker
10*9880d681SAndroid Build Coastguard Workercc_binary_host {
11*9880d681SAndroid Build Coastguard Worker    name: "llvm-tblgen",
12*9880d681SAndroid Build Coastguard Worker    defaults: ["llvm-defaults-no-generated-headers"],
13*9880d681SAndroid Build Coastguard Worker    srcs: ["*.cpp"],
14*9880d681SAndroid Build Coastguard Worker
15*9880d681SAndroid Build Coastguard Worker    static_libs: [
16*9880d681SAndroid Build Coastguard Worker        "libLLVMSupport",
17*9880d681SAndroid Build Coastguard Worker        "libLLVMTableGen",
18*9880d681SAndroid Build Coastguard Worker    ],
19*9880d681SAndroid Build Coastguard Worker    cflags: [
20*9880d681SAndroid Build Coastguard Worker        "-Wno-user-defined-warnings",
21*9880d681SAndroid Build Coastguard Worker    ],
22*9880d681SAndroid Build Coastguard Worker    target: {
23*9880d681SAndroid Build Coastguard Worker        windows: {
24*9880d681SAndroid Build Coastguard Worker            enabled: false,
25*9880d681SAndroid Build Coastguard Worker        },
26*9880d681SAndroid Build Coastguard Worker        // llvm-defaults turns off host builds by default, turn it back on for
27*9880d681SAndroid Build Coastguard Worker        // modules that are used to build llvm-tblgen
28*9880d681SAndroid Build Coastguard Worker        host: {
29*9880d681SAndroid Build Coastguard Worker            enabled: true,
30*9880d681SAndroid Build Coastguard Worker        },
31*9880d681SAndroid Build Coastguard Worker    },
32*9880d681SAndroid Build Coastguard Worker}
33