diff options
author | Nico Weber <nicolasweber@gmx.de> | 2018-12-19 20:21:49 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2018-12-19 20:21:49 +0000 |
commit | 610453e418cfdc9026b30f7b7f338fe3066afd3c (patch) | |
tree | 8d0ff593fa14d2ab375ea736229916def8ed0796 /llvm/utils/gn/secondary/clang/lib/Basic | |
parent | 93c5e2abb6e387569ee5e066a249d6da7a53cad2 (diff) | |
download | bcm5719-llvm-610453e418cfdc9026b30f7b7f338fe3066afd3c.tar.gz bcm5719-llvm-610453e418cfdc9026b30f7b7f338fe3066afd3c.zip |
[gn build] Add build file for clang/lib/Basic and dependencies, 2nd try
Adds a build file for clang-tblgen and an action for running it, and uses that
to process all the .td files in include/clang/Basic.
Also adds an action to write include/clang/Config/config.h and
include/clang/Basic/Version.inc.
Differential Revision: https://reviews.llvm.org/D55847
(The previous commit of this contained unrelated changes, so I reverted the
whole previous commit and I'm now landing only what I intended to land.)
llvm-svn: 349679
Diffstat (limited to 'llvm/utils/gn/secondary/clang/lib/Basic')
-rw-r--r-- | llvm/utils/gn/secondary/clang/lib/Basic/BUILD.gn | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/llvm/utils/gn/secondary/clang/lib/Basic/BUILD.gn b/llvm/utils/gn/secondary/clang/lib/Basic/BUILD.gn new file mode 100644 index 00000000000..60323db120a --- /dev/null +++ b/llvm/utils/gn/secondary/clang/lib/Basic/BUILD.gn @@ -0,0 +1,82 @@ +static_library("Basic") { + output_name = "clangBasic" + configs += [ "//llvm/utils/gn/build:clang_code" ] + public_deps = [ + # public_dep because public header Version.h includes generated Version.inc. + "//clang/include/clang/Basic:AttrList", + "//clang/include/clang/Basic:AttrSubMatchRulesList", + "//clang/include/clang/Basic:DiagnosticGroups", + "//clang/include/clang/Basic:diags_tablegen", + "//clang/include/clang/Basic:version", + ] + deps = [ + "//clang/include/clang/Basic:AttrHasAttributeImpl", + "//clang/include/clang/Basic:arm_fp16", + "//clang/include/clang/Basic:arm_neon", + "//clang/include/clang/Config", + "//llvm/include/llvm/Config:llvm-config", + "//llvm/lib/IR", + "//llvm/lib/MC", + "//llvm/lib/Support", + ] + include_dirs = [ "." ] + sources = [ + "Attributes.cpp", + "Builtins.cpp", + "CharInfo.cpp", + "CodeGenOptions.cpp", + "Cuda.cpp", + "Diagnostic.cpp", + "DiagnosticIDs.cpp", + "DiagnosticOptions.cpp", + "FileManager.cpp", + "FileSystemStatCache.cpp", + "FixedPoint.cpp", + "IdentifierTable.cpp", + "LangOptions.cpp", + "MemoryBufferCache.cpp", + "Module.cpp", + "ObjCRuntime.cpp", + "OpenMPKinds.cpp", + "OperatorPrecedence.cpp", + "SanitizerBlacklist.cpp", + "SanitizerSpecialCaseList.cpp", + "Sanitizers.cpp", + "SourceLocation.cpp", + "SourceManager.cpp", + "TargetInfo.cpp", + "Targets.cpp", + "Targets/AArch64.cpp", + "Targets/AMDGPU.cpp", + "Targets/ARC.cpp", + "Targets/ARM.cpp", + "Targets/AVR.cpp", + "Targets/BPF.cpp", + "Targets/Hexagon.cpp", + "Targets/Lanai.cpp", + "Targets/Le64.cpp", + "Targets/MSP430.cpp", + "Targets/Mips.cpp", + "Targets/NVPTX.cpp", + "Targets/Nios2.cpp", + "Targets/OSTargets.cpp", + "Targets/PNaCl.cpp", + "Targets/PPC.cpp", + "Targets/RISCV.cpp", + "Targets/SPIR.cpp", + "Targets/Sparc.cpp", + "Targets/SystemZ.cpp", + "Targets/TCE.cpp", + "Targets/WebAssembly.cpp", + "Targets/X86.cpp", + "Targets/XCore.cpp", + "TokenKinds.cpp", + + # FIXME: This should be in its own target that passes -DHAVE_SVN_VERSION_INC + # and that also depends on a target generating SVNVersion.inc. + "Version.cpp", + "Warnings.cpp", + "XRayInstr.cpp", + "XRayLists.cpp", + ] +} |