[PATCH] D59379: gn build: Add build files for clang-doc
Nico Weber via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 14 11:54:49 PDT 2019
thakis created this revision.
thakis added reviewers: phosek, mbonadei.
Herald added a project: LLVM.
https://reviews.llvm.org/D59379
Files:
llvm/utils/gn/secondary/BUILD.gn
llvm/utils/gn/secondary/clang-tools-extra/clang-doc/BUILD.gn
llvm/utils/gn/secondary/clang-tools-extra/clang-doc/tool/BUILD.gn
Index: llvm/utils/gn/secondary/clang-tools-extra/clang-doc/tool/BUILD.gn
===================================================================
--- /dev/null
+++ llvm/utils/gn/secondary/clang-tools-extra/clang-doc/tool/BUILD.gn
@@ -0,0 +1,16 @@
+executable("clang-doc") {
+ configs += [ "//llvm/utils/gn/build:clang_code" ]
+ deps = [
+ "//clang-tools-extra/clang-doc",
+ "//clang/lib/AST",
+ "//clang/lib/ASTMatchers",
+ "//clang/lib/Basic",
+ "//clang/lib/Frontend",
+ "//clang/lib/Tooling",
+ "//clang/lib/Tooling/Core",
+ ]
+ include_dirs = [ ".." ]
+ sources = [
+ "ClangDocMain.cpp",
+ ]
+}
Index: llvm/utils/gn/secondary/clang-tools-extra/clang-doc/BUILD.gn
===================================================================
--- /dev/null
+++ llvm/utils/gn/secondary/clang-tools-extra/clang-doc/BUILD.gn
@@ -0,0 +1,29 @@
+static_library("clang-doc") {
+ output_name = "clangDoc"
+ configs += [ "//llvm/utils/gn/build:clang_code" ]
+ deps = [
+ "//clang/lib/AST",
+ "//clang/lib/ASTMatchers",
+ "//clang/lib/Analysis",
+ "//clang/lib/Basic",
+ "//clang/lib/Frontend",
+ "//clang/lib/Index",
+ "//clang/lib/Lex",
+ "//clang/lib/Tooling",
+ "//clang/lib/Tooling/Core",
+ "//llvm/lib/Bitcode/Reader",
+ "//llvm/lib/Bitcode/Writer",
+ "//llvm/lib/Support",
+ ]
+ sources = [
+ "BitcodeReader.cpp",
+ "BitcodeWriter.cpp",
+ "ClangDoc.cpp",
+ "Generators.cpp",
+ "MDGenerator.cpp",
+ "Mapper.cpp",
+ "Representation.cpp",
+ "Serialize.cpp",
+ "YAMLGenerator.cpp",
+ ]
+}
Index: llvm/utils/gn/secondary/BUILD.gn
===================================================================
--- llvm/utils/gn/secondary/BUILD.gn
+++ llvm/utils/gn/secondary/BUILD.gn
@@ -5,6 +5,7 @@
group("default") {
deps = [
"//clang-tools-extra/clang-apply-replacements/tool:clang-apply-replacements",
+ "//clang-tools-extra/clang-doc/tool:clang-doc",
"//clang-tools-extra/clang-tidy/tool:clang-tidy",
"//clang/test",
"//lld/test",
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59379.190697.patch
Type: text/x-patch
Size: 2029 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190314/48594857/attachment.bin>
More information about the llvm-commits
mailing list