[llvm] r350024 - [gn build] Add build files for clang/tools/{clang-diff, clang-import-test, diagtool and clang/lib/Tooling, clang/lib/Tooling/ASTDiff
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 23 06:15:26 PST 2018
Author: nico
Date: Sun Dec 23 06:15:26 2018
New Revision: 350024
URL: http://llvm.org/viewvc/llvm-project?rev=350024&view=rev
Log:
[gn build] Add build files for clang/tools/{clang-diff,clang-import-test,diagtool and clang/lib/Tooling, clang/lib/Tooling/ASTDiff
Needed for check-clang.
Differential Revision: https://reviews.llvm.org/D56054
Added:
llvm/trunk/utils/gn/secondary/clang/lib/Tooling/ASTDiff/
llvm/trunk/utils/gn/secondary/clang/lib/Tooling/ASTDiff/BUILD.gn
llvm/trunk/utils/gn/secondary/clang/lib/Tooling/BUILD.gn
llvm/trunk/utils/gn/secondary/clang/tools/clang-diff/
llvm/trunk/utils/gn/secondary/clang/tools/clang-diff/BUILD.gn
llvm/trunk/utils/gn/secondary/clang/tools/clang-import-test/
llvm/trunk/utils/gn/secondary/clang/tools/clang-import-test/BUILD.gn
llvm/trunk/utils/gn/secondary/clang/tools/diagtool/
llvm/trunk/utils/gn/secondary/clang/tools/diagtool/BUILD.gn
Modified:
llvm/trunk/utils/gn/secondary/BUILD.gn
Modified: llvm/trunk/utils/gn/secondary/BUILD.gn
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/gn/secondary/BUILD.gn?rev=350024&r1=350023&r2=350024&view=diff
==============================================================================
--- llvm/trunk/utils/gn/secondary/BUILD.gn (original)
+++ llvm/trunk/utils/gn/secondary/BUILD.gn Sun Dec 23 06:15:26 2018
@@ -1,7 +1,10 @@
group("default") {
deps = [
":clang",
+ "//clang/tools/clang-diff",
"//clang/tools/clang-format",
+ "//clang/tools/clang-import-test",
+ "//clang/tools/diagtool",
"//lld/test",
"//llvm/tools/llvm-cat",
"//llvm/tools/llvm-lto",
Added: llvm/trunk/utils/gn/secondary/clang/lib/Tooling/ASTDiff/BUILD.gn
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/gn/secondary/clang/lib/Tooling/ASTDiff/BUILD.gn?rev=350024&view=auto
==============================================================================
--- llvm/trunk/utils/gn/secondary/clang/lib/Tooling/ASTDiff/BUILD.gn (added)
+++ llvm/trunk/utils/gn/secondary/clang/lib/Tooling/ASTDiff/BUILD.gn Sun Dec 23 06:15:26 2018
@@ -0,0 +1,13 @@
+static_library("ASTDiff") {
+ output_name = "clangToolingASTDiff"
+ configs += [ "//llvm/utils/gn/build:clang_code" ]
+ deps = [
+ "//clang/lib/AST",
+ "//clang/lib/Basic",
+ "//clang/lib/Lex",
+ "//llvm/lib/Support",
+ ]
+ sources = [
+ "ASTDiff.cpp",
+ ]
+}
Added: llvm/trunk/utils/gn/secondary/clang/lib/Tooling/BUILD.gn
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/gn/secondary/clang/lib/Tooling/BUILD.gn?rev=350024&view=auto
==============================================================================
--- llvm/trunk/utils/gn/secondary/clang/lib/Tooling/BUILD.gn (added)
+++ llvm/trunk/utils/gn/secondary/clang/lib/Tooling/BUILD.gn Sun Dec 23 06:15:26 2018
@@ -0,0 +1,31 @@
+static_library("Tooling") {
+ output_name = "clangTooling"
+ configs += [ "//llvm/utils/gn/build:clang_code" ]
+ deps = [
+ "//clang/include/clang/Driver:Options",
+ "//clang/lib/AST",
+ "//clang/lib/ASTMatchers",
+ "//clang/lib/Basic",
+ "//clang/lib/Driver",
+ "//clang/lib/Format",
+ "//clang/lib/Frontend",
+ "//clang/lib/Lex",
+ "//clang/lib/Rewrite",
+ "//clang/lib/Tooling/Core",
+ ]
+ sources = [
+ "AllTUsExecution.cpp",
+ "ArgumentsAdjusters.cpp",
+ "CommonOptionsParser.cpp",
+ "CompilationDatabase.cpp",
+ "Execution.cpp",
+ "FileMatchTrie.cpp",
+ "FixIt.cpp",
+ "InterpolatingCompilationDatabase.cpp",
+ "JSONCompilationDatabase.cpp",
+ "Refactoring.cpp",
+ "RefactoringCallbacks.cpp",
+ "StandaloneExecution.cpp",
+ "Tooling.cpp",
+ ]
+}
Added: llvm/trunk/utils/gn/secondary/clang/tools/clang-diff/BUILD.gn
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/gn/secondary/clang/tools/clang-diff/BUILD.gn?rev=350024&view=auto
==============================================================================
--- llvm/trunk/utils/gn/secondary/clang/tools/clang-diff/BUILD.gn (added)
+++ llvm/trunk/utils/gn/secondary/clang/tools/clang-diff/BUILD.gn Sun Dec 23 06:15:26 2018
@@ -0,0 +1,13 @@
+executable("clang-diff") {
+ configs += [ "//llvm/utils/gn/build:clang_code" ]
+ deps = [
+ "//clang/lib/Basic",
+ "//clang/lib/Frontend",
+ "//clang/lib/Tooling",
+ "//clang/lib/Tooling/ASTDiff",
+ "//llvm/lib/Support",
+ ]
+ sources = [
+ "ClangDiff.cpp",
+ ]
+}
Added: llvm/trunk/utils/gn/secondary/clang/tools/clang-import-test/BUILD.gn
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/gn/secondary/clang/tools/clang-import-test/BUILD.gn?rev=350024&view=auto
==============================================================================
--- llvm/trunk/utils/gn/secondary/clang/tools/clang-import-test/BUILD.gn (added)
+++ llvm/trunk/utils/gn/secondary/clang/tools/clang-import-test/BUILD.gn Sun Dec 23 06:15:26 2018
@@ -0,0 +1,17 @@
+executable("clang-import-test") {
+ configs += [ "//llvm/utils/gn/build:clang_code" ]
+ deps = [
+ "//clang/lib/AST",
+ "//clang/lib/Basic",
+ "//clang/lib/CodeGen",
+ "//clang/lib/Driver",
+ "//clang/lib/Frontend",
+ "//clang/lib/Lex",
+ "//clang/lib/Parse",
+ "//llvm/lib/IR",
+ "//llvm/lib/Support",
+ ]
+ sources = [
+ "clang-import-test.cpp",
+ ]
+}
Added: llvm/trunk/utils/gn/secondary/clang/tools/diagtool/BUILD.gn
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/gn/secondary/clang/tools/diagtool/BUILD.gn?rev=350024&view=auto
==============================================================================
--- llvm/trunk/utils/gn/secondary/clang/tools/diagtool/BUILD.gn (added)
+++ llvm/trunk/utils/gn/secondary/clang/tools/diagtool/BUILD.gn Sun Dec 23 06:15:26 2018
@@ -0,0 +1,18 @@
+executable("diagtool") {
+ configs += [ "//llvm/utils/gn/build:clang_code" ]
+ deps = [
+ "//clang/include/clang/Basic:DiagnosticIndexName",
+ "//clang/lib/Basic",
+ "//clang/lib/Frontend",
+ "//llvm/lib/Support",
+ ]
+ sources = [
+ "DiagTool.cpp",
+ "DiagnosticNames.cpp",
+ "FindDiagnosticID.cpp",
+ "ListWarnings.cpp",
+ "ShowEnabledWarnings.cpp",
+ "TreeView.cpp",
+ "diagtool_main.cpp",
+ ]
+}
More information about the llvm-commits
mailing list