xref: /aosp_15_r20/external/llvm/lib/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_library_static {
11*9880d681SAndroid Build Coastguard Worker    name: "libLLVMTableGen",
12*9880d681SAndroid Build Coastguard Worker    defaults: ["llvm-defaults-no-generated-headers"],
13*9880d681SAndroid Build Coastguard Worker    cflags: [
14*9880d681SAndroid Build Coastguard Worker        "-W",
15*9880d681SAndroid Build Coastguard Worker        "-Wall",
16*9880d681SAndroid Build Coastguard Worker        "-Wno-unused-lambda-capture",
17*9880d681SAndroid Build Coastguard Worker        "-Wno-unused-parameter",
18*9880d681SAndroid Build Coastguard Worker    ],
19*9880d681SAndroid Build Coastguard Worker    srcs: ["*.cpp"],
20*9880d681SAndroid Build Coastguard Worker    target: {
21*9880d681SAndroid Build Coastguard Worker        // llvm-defaults turns off host builds by default, turn it back on for
22*9880d681SAndroid Build Coastguard Worker        // modules that are used to build llvm-tblgen
23*9880d681SAndroid Build Coastguard Worker        host: {
24*9880d681SAndroid Build Coastguard Worker            enabled: true,
25*9880d681SAndroid Build Coastguard Worker        },
26*9880d681SAndroid Build Coastguard Worker    },
27*9880d681SAndroid Build Coastguard Worker}
28