[llvm] r350025 - [gn build] Add build files for clang/tools/{clang-refactor, clang-rename}, clang/utils/hmaptool, clang/lib/Tooling/Refactoring
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 23 06:17:13 PST 2018
Author: nico
Date: Sun Dec 23 06:17:13 2018
New Revision: 350025
URL: http://llvm.org/viewvc/llvm-project?rev=350025&view=rev
Log:
[gn build] Add build files for clang/tools/{clang-refactor,clang-rename}, clang/utils/hmaptool, clang/lib/Tooling/Refactoring
Needed for check-clang.
Differential Revision: https://reviews.llvm.org/D56055
Added:
llvm/trunk/utils/gn/secondary/clang/lib/Tooling/Refactoring/
llvm/trunk/utils/gn/secondary/clang/lib/Tooling/Refactoring/BUILD.gn
llvm/trunk/utils/gn/secondary/clang/tools/clang-refactor/
llvm/trunk/utils/gn/secondary/clang/tools/clang-refactor/BUILD.gn
llvm/trunk/utils/gn/secondary/clang/tools/clang-rename/
llvm/trunk/utils/gn/secondary/clang/tools/clang-rename/BUILD.gn
llvm/trunk/utils/gn/secondary/clang/utils/hmaptool/
llvm/trunk/utils/gn/secondary/clang/utils/hmaptool/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=350025&r1=350024&r2=350025&view=diff
==============================================================================
--- llvm/trunk/utils/gn/secondary/BUILD.gn (original)
+++ llvm/trunk/utils/gn/secondary/BUILD.gn Sun Dec 23 06:17:13 2018
@@ -4,7 +4,10 @@ group("default") {
"//clang/tools/clang-diff",
"//clang/tools/clang-format",
"//clang/tools/clang-import-test",
+ "//clang/tools/clang-refactor",
+ "//clang/tools/clang-rename",
"//clang/tools/diagtool",
+ "//clang/utils/hmaptool",
"//lld/test",
"//llvm/tools/llvm-cat",
"//llvm/tools/llvm-lto",
Added: llvm/trunk/utils/gn/secondary/clang/lib/Tooling/Refactoring/BUILD.gn
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/gn/secondary/clang/lib/Tooling/Refactoring/BUILD.gn?rev=350025&view=auto
==============================================================================
--- llvm/trunk/utils/gn/secondary/clang/lib/Tooling/Refactoring/BUILD.gn (added)
+++ llvm/trunk/utils/gn/secondary/clang/lib/Tooling/Refactoring/BUILD.gn Sun Dec 23 06:17:13 2018
@@ -0,0 +1,29 @@
+static_library("Refactoring") {
+ output_name = "clangToolingRefactor"
+ configs += [ "//llvm/utils/gn/build:clang_code" ]
+ deps = [
+ "//clang/lib/AST",
+ "//clang/lib/ASTMatchers",
+ "//clang/lib/Basic",
+ "//clang/lib/Format",
+ "//clang/lib/Index",
+ "//clang/lib/Lex",
+ "//clang/lib/Rewrite",
+ "//clang/lib/Tooling/Core",
+ "//llvm/lib/Support",
+ ]
+ include_dirs = [ "." ]
+ sources = [
+ "ASTSelection.cpp",
+ "ASTSelectionRequirements.cpp",
+ "AtomicChange.cpp",
+ "Extract/Extract.cpp",
+ "Extract/SourceExtraction.cpp",
+ "RefactoringActions.cpp",
+ "Rename/RenamingAction.cpp",
+ "Rename/SymbolOccurrences.cpp",
+ "Rename/USRFinder.cpp",
+ "Rename/USRFindingAction.cpp",
+ "Rename/USRLocFinder.cpp",
+ ]
+}
Added: llvm/trunk/utils/gn/secondary/clang/tools/clang-refactor/BUILD.gn
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/gn/secondary/clang/tools/clang-refactor/BUILD.gn?rev=350025&view=auto
==============================================================================
--- llvm/trunk/utils/gn/secondary/clang/tools/clang-refactor/BUILD.gn (added)
+++ llvm/trunk/utils/gn/secondary/clang/tools/clang-refactor/BUILD.gn Sun Dec 23 06:17:13 2018
@@ -0,0 +1,19 @@
+executable("clang-refactor") {
+ configs += [ "//llvm/utils/gn/build:clang_code" ]
+ deps = [
+ "//clang/lib/AST",
+ "//clang/lib/Basic",
+ "//clang/lib/Format",
+ "//clang/lib/Frontend",
+ "//clang/lib/Lex",
+ "//clang/lib/Rewrite",
+ "//clang/lib/Tooling",
+ "//clang/lib/Tooling/Refactoring",
+ "//llvm/lib/Option",
+ "//llvm/lib/Support",
+ ]
+ sources = [
+ "ClangRefactor.cpp",
+ "TestSupport.cpp",
+ ]
+}
Added: llvm/trunk/utils/gn/secondary/clang/tools/clang-rename/BUILD.gn
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/gn/secondary/clang/tools/clang-rename/BUILD.gn?rev=350025&view=auto
==============================================================================
--- llvm/trunk/utils/gn/secondary/clang/tools/clang-rename/BUILD.gn (added)
+++ llvm/trunk/utils/gn/secondary/clang/tools/clang-rename/BUILD.gn Sun Dec 23 06:17:13 2018
@@ -0,0 +1,16 @@
+executable("clang-rename") {
+ configs += [ "//llvm/utils/gn/build:clang_code" ]
+ deps = [
+ "//clang/lib/Basic",
+ "//clang/lib/Frontend",
+ "//clang/lib/Rewrite",
+ "//clang/lib/Tooling",
+ "//clang/lib/Tooling/Core",
+ "//clang/lib/Tooling/Refactoring",
+ "//llvm/lib/Option",
+ "//llvm/lib/Support",
+ ]
+ sources = [
+ "ClangRename.cpp",
+ ]
+}
Added: llvm/trunk/utils/gn/secondary/clang/utils/hmaptool/BUILD.gn
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/gn/secondary/clang/utils/hmaptool/BUILD.gn?rev=350025&view=auto
==============================================================================
--- llvm/trunk/utils/gn/secondary/clang/utils/hmaptool/BUILD.gn (added)
+++ llvm/trunk/utils/gn/secondary/clang/utils/hmaptool/BUILD.gn Sun Dec 23 06:17:13 2018
@@ -0,0 +1,8 @@
+copy("hmaptool") {
+ sources = [
+ "hmaptool",
+ ]
+ outputs = [
+ "$root_out_dir/bin/{{source_file_part}}",
+ ]
+}
More information about the llvm-commits
mailing list