• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// For the host only
2// =====================================================
3clang_binary_host {
4    name: "clang-format",
5    defaults: ["clang-defaults"],
6    srcs: ["ClangFormat.cpp"],
7
8    static_libs: [
9        "libclangFormat",
10        "libclangFrontendTool",
11        "libclangFrontend",
12        "libclangARCMigrate",
13        "libclangDriver",
14        "libclangSerialization",
15        "libclangCodeGen",
16        "libclangRewriteFrontend",
17        "libclangRewrite",
18        "libclangToolingCore",
19        "libclangParse",
20        "libclangSema",
21        "libclangStaticAnalyzerFrontend",
22        "libclangStaticAnalyzerCheckers",
23        "libclangStaticAnalyzerMPIChecker",
24        "libclangStaticAnalyzerCore",
25        "libclangAnalysis",
26        "libclangEdit",
27        "libclangAST",
28        "libclangLex",
29        "libclangBasic",
30        "libLLVMARMAsmParser",
31        "libLLVMARMCodeGen",
32        "libLLVMARMAsmPrinter",
33        "libLLVMARMDisassembler",
34        "libLLVMARMDesc",
35        "libLLVMARMInfo",
36        "libLLVMMipsAsmParser",
37        "libLLVMMipsCodeGen",
38        "libLLVMMipsDisassembler",
39        "libLLVMMipsAsmPrinter",
40        "libLLVMMipsDesc",
41        "libLLVMMipsInfo",
42        "libLLVMX86Info",
43        "libLLVMX86AsmParser",
44        "libLLVMX86CodeGen",
45        "libLLVMX86Disassembler",
46        "libLLVMX86Desc",
47        "libLLVMX86AsmPrinter",
48        "libLLVMX86Utils",
49        "libLLVMAArch64Info",
50        "libLLVMAArch64AsmParser",
51        "libLLVMAArch64CodeGen",
52        "libLLVMAArch64Disassembler",
53        "libLLVMAArch64Desc",
54        "libLLVMAArch64AsmPrinter",
55        "libLLVMAArch64Utils",
56        "libLLVMIRReader",
57        "libLLVMAsmParser",
58        "libLLVMAsmPrinter",
59        "libLLVMBitReader",
60        "libLLVMBitWriter",
61        "libLLVMSelectionDAG",
62        "libLLVMipo",
63        "libLLVMInstCombine",
64        "libLLVMInstrumentation",
65        "libLLVMCodeGen",
66        "libLLVMObject",
67        "libLLVMLinker",
68        "libLLVMMC",
69        "libLLVMMCParser",
70        "libLLVMScalarOpts",
71        "libLLVMTransformObjCARC",
72        "libLLVMTransformUtils",
73        "libLLVMVectorize",
74        "libLLVMAnalysis",
75        "libLLVMCore",
76        "libLLVMOption",
77        "libLLVMTarget",
78        "libLLVMProfileData",
79        "libLLVMObject",
80        "libLLVMMCDisassembler",
81        "libLLVMSupport",
82    ],
83
84    target: {
85        windows: {
86            host_ldlibs: [
87                "-limagehlp",
88                "-lversion",
89            ],
90        },
91        darwin: {
92            host_ldlibs: [
93                "-lm",
94                "-lpthread",
95                "-ldl",
96            ],
97        },
98        linux: {
99            host_ldlibs: [
100                "-lm",
101                "-lpthread",
102                "-ldl",
103            ],
104        },
105    },
106}
107