]> granicus.if.org Git - llvm/commitdiff
gn build: Add build files for clang-include-fixer and find-all-symbols
authorNico Weber <nicolasweber@gmx.de>
Wed, 27 Mar 2019 00:17:05 +0000 (00:17 +0000)
committerNico Weber <nicolasweber@gmx.de>
Wed, 27 Mar 2019 00:17:05 +0000 (00:17 +0000)
Differential Revision: https://reviews.llvm.org/D59838

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@357042 91177308-0d34-0410-b5e6-96231b3b80d8

utils/gn/secondary/BUILD.gn
utils/gn/secondary/clang-tools-extra/clang-include-fixer/BUILD.gn [new file with mode: 0644]
utils/gn/secondary/clang-tools-extra/clang-include-fixer/find-all-symbols/BUILD.gn [new file with mode: 0644]
utils/gn/secondary/clang-tools-extra/clang-include-fixer/find-all-symbols/tool/BUILD.gn [new file with mode: 0644]
utils/gn/secondary/clang-tools-extra/clang-include-fixer/tool/BUILD.gn [new file with mode: 0644]

index 0143e80de8077a36ad4489aa5a42257440257fa5..948a56fd1412224b1a30bebf232b252ef9af89e4 100644 (file)
@@ -7,6 +7,8 @@ group("default") {
     "//clang-tools-extra/clang-apply-replacements/tool:clang-apply-replacements",
     "//clang-tools-extra/clang-change-namespace/tool:clang-change-namespace",
     "//clang-tools-extra/clang-doc/tool:clang-doc",
+    "//clang-tools-extra/clang-include-fixer/find-all-symbols/tool:find-all-symbols",
+    "//clang-tools-extra/clang-include-fixer/tool:clang-include-fixer",
     "//clang-tools-extra/clang-move/tool:clang-move",
     "//clang-tools-extra/clang-query/tool:clang-query",
     "//clang-tools-extra/clang-reorder-fields/tool:clang-reorder-fields",
diff --git a/utils/gn/secondary/clang-tools-extra/clang-include-fixer/BUILD.gn b/utils/gn/secondary/clang-tools-extra/clang-include-fixer/BUILD.gn
new file mode 100644 (file)
index 0000000..22be333
--- /dev/null
@@ -0,0 +1,26 @@
+static_library("clang-include-fixer") {
+  output_name = "clangIncludeFixer"
+  configs += [ "//llvm/utils/gn/build:clang_code" ]
+  deps = [
+    "//clang-tools-extra/clang-include-fixer/find-all-symbols",
+    "//clang/lib/AST",
+    "//clang/lib/Basic",
+    "//clang/lib/Format",
+    "//clang/lib/Frontend",
+    "//clang/lib/Lex",
+    "//clang/lib/Parse",
+    "//clang/lib/Sema",
+    "//clang/lib/Serialization",
+    "//clang/lib/Tooling",
+    "//clang/lib/Tooling/Core",
+    "//llvm/lib/Support",
+  ]
+  sources = [
+    "FuzzySymbolIndex.cpp",
+    "InMemorySymbolIndex.cpp",
+    "IncludeFixer.cpp",
+    "IncludeFixerContext.cpp",
+    "SymbolIndexManager.cpp",
+    "YamlSymbolIndex.cpp",
+  ]
+}
diff --git a/utils/gn/secondary/clang-tools-extra/clang-include-fixer/find-all-symbols/BUILD.gn b/utils/gn/secondary/clang-tools-extra/clang-include-fixer/find-all-symbols/BUILD.gn
new file mode 100644 (file)
index 0000000..82aa2b1
--- /dev/null
@@ -0,0 +1,23 @@
+static_library("find-all-symbols") {
+  output_name = "findAllSymbols"
+  configs += [ "//llvm/utils/gn/build:clang_code" ]
+  deps = [
+    "//clang/lib/AST",
+    "//clang/lib/ASTMatchers",
+    "//clang/lib/Basic",
+    "//clang/lib/Frontend",
+    "//clang/lib/Lex",
+    "//clang/lib/Tooling",
+    "//llvm/lib/Support",
+  ]
+  sources = [
+    "FindAllMacros.cpp",
+    "FindAllSymbols.cpp",
+    "FindAllSymbolsAction.cpp",
+    "HeaderMapCollector.cpp",
+    "PathConfig.cpp",
+    "PragmaCommentHandler.cpp",
+    "STLPostfixHeaderMap.cpp",
+    "SymbolInfo.cpp",
+  ]
+}
diff --git a/utils/gn/secondary/clang-tools-extra/clang-include-fixer/find-all-symbols/tool/BUILD.gn b/utils/gn/secondary/clang-tools-extra/clang-include-fixer/find-all-symbols/tool/BUILD.gn
new file mode 100644 (file)
index 0000000..cca7116
--- /dev/null
@@ -0,0 +1,17 @@
+executable("find-all-symbols") {
+  configs += [ "//llvm/utils/gn/build:clang_code" ]
+  deps = [
+    "//clang-tools-extra/clang-include-fixer/find-all-symbols",
+    "//clang/lib/AST",
+    "//clang/lib/ASTMatchers",
+    "//clang/lib/Basic",
+    "//clang/lib/Frontend",
+    "//clang/lib/Lex",
+    "//clang/lib/Serialization",
+    "//clang/lib/Tooling",
+  ]
+  include_dirs = [ ".." ]
+  sources = [
+    "FindAllSymbolsMain.cpp",
+  ]
+}
diff --git a/utils/gn/secondary/clang-tools-extra/clang-include-fixer/tool/BUILD.gn b/utils/gn/secondary/clang-tools-extra/clang-include-fixer/tool/BUILD.gn
new file mode 100644 (file)
index 0000000..01b0861
--- /dev/null
@@ -0,0 +1,18 @@
+executable("clang-include-fixer") {
+  configs += [ "//llvm/utils/gn/build:clang_code" ]
+  deps = [
+    "//clang-tools-extra/clang-include-fixer",
+    "//clang-tools-extra/clang-include-fixer/find-all-symbols",
+    "//clang/lib/Basic",
+    "//clang/lib/Format",
+    "//clang/lib/Frontend",
+    "//clang/lib/Rewrite",
+    "//clang/lib/Serialization",
+    "//clang/lib/Tooling",
+    "//clang/lib/Tooling/Core",
+  ]
+  include_dirs = [ ".." ]
+  sources = [
+    "ClangIncludeFixer.cpp",
+  ]
+}