Debian Codegraph @

llvm/utils/gn/secondary/clang-tools-extra/unittests/clang-doc/BUILD.gn

raw
1 import("//llvm/utils/gn/build/write_cmake_config.gni")
2 import("//third-party/unittest/unittest.gni")
3
4 write_cmake_config("config") {
5 input = "config.h.cmake"
6 output = "$target_gen_dir/config.h"
7 values = [ "CLANG_DOC_TEST_ASSET_DIR=" +
8 rebase_path("//clang-tools-extra/clang-doc/assets") ]
9 }
10
11 unittest("ClangDocTests") {
12 configs += [ "//llvm/utils/gn/build:clang_code" ]
13 deps = [
14 ":config",
15 "//clang-tools-extra/clang-doc",
16 "//clang/lib/AST",
17 "//clang/lib/ASTMatchers",
18 "//clang/lib/Basic",
19 "//clang/lib/Format",
20 "//clang/lib/Frontend",
21 "//clang/lib/Rewrite",
22 "//clang/lib/Serialization",
23 "//clang/lib/Tooling",
24 "//clang/lib/Tooling/Core",
25 "//llvm/lib/Bitcode/Reader",
26 "//llvm/lib/Bitcode/Writer",
27 "//llvm/lib/Support",
28 "//llvm/lib/Testing/Support",
29 ]
30
31 include_dirs = [
32 "//clang-tools-extra/clang-doc",
33
34 # To pick up generated config.h.
35 target_gen_dir,
36 ]
37
38 sources = [
39 "BitcodeTest.cpp",
40 "ClangDocTest.cpp",
41 "GeneratorTest.cpp",
42 "HTMLGeneratorTest.cpp",
43 "HTMLMustacheGeneratorTest.cpp",
44 "JSONGeneratorTest.cpp",
45 "MDGeneratorTest.cpp",
46 "MergeTest.cpp",
47 "SerializeTest.cpp",
48 "YAMLGeneratorTest.cpp",
49 ]
50 }