From: Nico Weber Date: Wed, 27 Mar 2019 00:17:05 +0000 (+0000) Subject: gn build: Add build files for clang-include-fixer and find-all-symbols X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7b016165658561a2ec5bdffea134fe50cc9bcf7a;p=llvm gn build: Add build files for clang-include-fixer and find-all-symbols Differential Revision: https://reviews.llvm.org/D59838 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@357042 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/gn/secondary/BUILD.gn b/utils/gn/secondary/BUILD.gn index 0143e80de80..948a56fd141 100644 --- a/utils/gn/secondary/BUILD.gn +++ b/utils/gn/secondary/BUILD.gn @@ -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 index 00000000000..22be333af8a --- /dev/null +++ b/utils/gn/secondary/clang-tools-extra/clang-include-fixer/BUILD.gn @@ -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 index 00000000000..82aa2b1656e --- /dev/null +++ b/utils/gn/secondary/clang-tools-extra/clang-include-fixer/find-all-symbols/BUILD.gn @@ -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 index 00000000000..cca71164674 --- /dev/null +++ b/utils/gn/secondary/clang-tools-extra/clang-include-fixer/find-all-symbols/tool/BUILD.gn @@ -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 index 00000000000..01b0861d28a --- /dev/null +++ b/utils/gn/secondary/clang-tools-extra/clang-include-fixer/tool/BUILD.gn @@ -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", + ] +}