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", 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/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", + ] +}