1package {
2    // See: http://go/android-license-faq
3    // A large-scale-change added 'default_applicable_licenses' to import
4    // all of the 'license_kinds' from "external_llvm_license"
5    // to get the below license kinds:
6    //   SPDX-license-identifier-NCSA
7    default_applicable_licenses: ["external_llvm_license"],
8}
9
10cc_library_static {
11    name: "libLLVMMipsCodeGen",
12    defaults: [
13        "llvm-lib-defaults",
14        "llvm-mips-defaults",
15    ],
16    srcs: ["*.cpp"],
17}
18
19cc_defaults {
20    name: "llvm-mips-defaults",
21    generated_headers: ["llvm-gen-mips"],
22    static_libs: ["llvm-mips-headers"],
23}
24
25cc_library_static {
26    name: "llvm-mips-headers",
27    vendor_available: true,
28    product_available: true,
29    host_supported: true,
30    // TODO(b/153609531): remove when no longer needed.
31    native_bridge_supported: true,
32    target: {
33        windows: {
34            enabled: true,
35        },
36    },
37    export_include_dirs: ["."],
38}
39
40llvm_tblgen {
41    name: "llvm-gen-mips",
42    in: "Mips.td",
43    outs: [
44        "MipsGenRegisterInfo.inc",
45        "MipsGenInstrInfo.inc",
46        "MipsGenCodeEmitter.inc",
47        "MipsGenMCCodeEmitter.inc",
48        "MipsGenMCPseudoLowering.inc",
49        "MipsGenAsmWriter.inc",
50        "MipsGenAsmMatcher.inc",
51        "MipsGenDAGISel.inc",
52        "MipsGenFastISel.inc",
53        "MipsGenCallingConv.inc",
54        "MipsGenSubtargetInfo.inc",
55        "MipsGenDisassemblerTables.inc",
56    ],
57}
58
59subdirs = ["*"]
60