| 1 |
import("//llvm/utils/gn/build/write_vcsrevision.gni") |
| 2 |
|
| 3 |
config("write_vcsrevision_config") { |
| 4 |
# To pick up the generated inc file. |
| 5 |
include_dirs = [ target_gen_dir ] |
| 6 |
visibility = [ ":write_vcsversion" ] |
| 7 |
} |
| 8 |
|
| 9 |
write_vcsrevision("write_vcsversion") { |
| 10 |
visibility = [ ":Basic" ] |
| 11 |
header = "$target_gen_dir/VCSVersion.inc" |
| 12 |
names = [ |
| 13 |
"LLVM", |
| 14 |
"CLANG", |
| 15 |
] |
| 16 |
public_configs = [ ":write_vcsrevision_config" ] |
| 17 |
} |
| 18 |
|
| 19 |
static_library("Basic") { |
| 20 |
output_name = "clangBasic" |
| 21 |
configs += [ "//llvm/utils/gn/build:clang_code" ] |
| 22 |
public_deps = [ |
| 23 |
# public_dep because public header Version.h includes generated Version.inc. |
| 24 |
"//clang/include/clang/Basic:AttrList", |
| 25 |
"//clang/include/clang/Basic:AttrSubMatchRulesList", |
| 26 |
"//clang/include/clang/Basic:Builtins", |
| 27 |
"//clang/include/clang/Basic:BuiltinsBPF", |
| 28 |
"//clang/include/clang/Basic:BuiltinsRISCV", |
| 29 |
"//clang/include/clang/Basic:DiagnosticGroups", |
| 30 |
"//clang/include/clang/Basic:RegularKeywordAttrInfo", |
| 31 |
"//clang/include/clang/Basic:arm_cde_builtins", |
| 32 |
"//clang/include/clang/Basic:arm_mve_builtins", |
| 33 |
"//clang/include/clang/Basic:arm_sme_builtins", |
| 34 |
"//clang/include/clang/Basic:arm_sve_builtins", |
| 35 |
"//clang/include/clang/Basic:arm_sve_typeflags", |
| 36 |
"//clang/include/clang/Basic:diags_tablegen", |
| 37 |
"//clang/include/clang/Basic:riscv_sifive_vector_builtins", |
| 38 |
"//clang/include/clang/Basic:riscv_vector_builtins", |
| 39 |
"//clang/include/clang/Basic:version", |
| 40 |
|
| 41 |
# public_dep because public header AttributeCommonInfo.h includes generated |
| 42 |
# AttrParsedAttrList.inc. |
| 43 |
"//clang/include/clang/Sema:AttrParsedAttrList", |
| 44 |
|
| 45 |
# public_dep because public header OpenMPKinds.h includes generated |
| 46 |
# OMP.h.inc. |
| 47 |
"//llvm/include/llvm/Frontend/OpenMP:public_tablegen", |
| 48 |
] |
| 49 |
deps = [ |
| 50 |
":write_vcsversion", |
| 51 |
"//clang/include/clang/Basic:AttrHasAttributeImpl", |
| 52 |
"//clang/include/clang/Basic:arm_fp16", |
| 53 |
"//clang/include/clang/Basic:arm_neon", |
| 54 |
"//clang/include/clang/Config", |
| 55 |
"//clang/include/clang/Sema:AttrParsedAttrKinds", |
| 56 |
"//clang/include/clang/Sema:AttrSpellingListIndex", |
| 57 |
"//llvm/include/llvm/Config:llvm-config", |
| 58 |
"//llvm/lib/Option", |
| 59 |
"//llvm/lib/Support", |
| 60 |
"//llvm/lib/TargetParser", |
| 61 |
] |
| 62 |
include_dirs = [ "." ] |
| 63 |
sources = [ |
| 64 |
"ASTSourceDescriptor.cpp", |
| 65 |
"Attributes.cpp", |
| 66 |
"Builtins.cpp", |
| 67 |
"CLWarnings.cpp", |
| 68 |
"CharInfo.cpp", |
| 69 |
"CodeGenOptions.cpp", |
| 70 |
"Cuda.cpp", |
| 71 |
"DarwinSDKInfo.cpp", |
| 72 |
"Diagnostic.cpp", |
| 73 |
"DiagnosticIDs.cpp", |
| 74 |
"DiagnosticOptions.cpp", |
| 75 |
"ExpressionTraits.cpp", |
| 76 |
"FileEntry.cpp", |
| 77 |
"FileManager.cpp", |
| 78 |
"FileSystemStatCache.cpp", |
| 79 |
"IdentifierTable.cpp", |
| 80 |
"LangOptions.cpp", |
| 81 |
"LangStandards.cpp", |
| 82 |
"MakeSupport.cpp", |
| 83 |
"Module.cpp", |
| 84 |
"NoSanitizeList.cpp", |
| 85 |
"ObjCRuntime.cpp", |
| 86 |
"OpenCLOptions.cpp", |
| 87 |
"OpenMPKinds.cpp", |
| 88 |
"OperatorPrecedence.cpp", |
| 89 |
"ParsedAttrInfo.cpp", |
| 90 |
"ProfileList.cpp", |
| 91 |
"SanitizerSpecialCaseList.cpp", |
| 92 |
"Sanitizers.cpp", |
| 93 |
"Sarif.cpp", |
| 94 |
"SourceLocation.cpp", |
| 95 |
"SourceManager.cpp", |
| 96 |
"SourceMgrAdapter.cpp", |
| 97 |
"Stack.cpp", |
| 98 |
"TargetID.cpp", |
| 99 |
"TargetInfo.cpp", |
| 100 |
"Targets.cpp", |
| 101 |
"Targets/AArch64.cpp", |
| 102 |
"Targets/AMDGPU.cpp", |
| 103 |
"Targets/ARC.cpp", |
| 104 |
"Targets/ARM.cpp", |
| 105 |
"Targets/AVR.cpp", |
| 106 |
"Targets/BPF.cpp", |
| 107 |
"Targets/CSKY.cpp", |
| 108 |
"Targets/DirectX.cpp", |
| 109 |
"Targets/Hexagon.cpp", |
| 110 |
"Targets/Lanai.cpp", |
| 111 |
"Targets/Le64.cpp", |
| 112 |
"Targets/LoongArch.cpp", |
| 113 |
"Targets/M68k.cpp", |
| 114 |
"Targets/MSP430.cpp", |
| 115 |
"Targets/Mips.cpp", |
| 116 |
"Targets/NVPTX.cpp", |
| 117 |
"Targets/OSTargets.cpp", |
| 118 |
"Targets/PNaCl.cpp", |
| 119 |
"Targets/PPC.cpp", |
| 120 |
"Targets/RISCV.cpp", |
| 121 |
"Targets/SPIR.cpp", |
| 122 |
"Targets/Sparc.cpp", |
| 123 |
"Targets/SystemZ.cpp", |
| 124 |
"Targets/TCE.cpp", |
| 125 |
"Targets/VE.cpp", |
| 126 |
"Targets/WebAssembly.cpp", |
| 127 |
"Targets/X86.cpp", |
| 128 |
"Targets/XCore.cpp", |
| 129 |
"TokenKinds.cpp", |
| 130 |
"TypeTraits.cpp", |
| 131 |
"Version.cpp", |
| 132 |
"Warnings.cpp", |
| 133 |
"XRayInstr.cpp", |
| 134 |
"XRayLists.cpp", |
| 135 |
] |
| 136 |
} |