Debian Codegraph @

llvm/utils/gn/secondary/clang/unittests/BUILD.gn

raw
1 import("//clang/lib/StaticAnalyzer/Frontend/enable.gni")
2
3 group("unittests") {
4 deps = [
5 "AST:ASTTests",
6 "AST/ByteCode:InterpTests",
7 "ASTMatchers:ASTMatchersTests",
8 "ASTMatchers/Dynamic:DynamicASTMatchersTests",
9 "Basic:BasicTests",
10 "CodeGen:ClangCodeGenTests",
11 "CrossTU:CrossTUTests",
12 "DependencyScanning:ClangDependencyScanningTests",
13 "Driver:ClangDriverTests",
14 "Format:FormatTests",
15 "Frontend:FrontendTests",
16 "Index:IndexTests",
17 "InstallAPI:InstallAPITests",
18 "Interpreter:ClangReplInterpreterTests",
19 "Lex:LexTests",
20 "Parse:ParseTests",
21 "Rewrite:RewriteTests",
22 "Sema:SemaTests",
23 "Serialization:SerializationTests",
24 "Support:ClangSupportTests",
25 "Tooling:ToolingTests",
26 "Tooling/Syntax:SyntaxTests",
27 ]
28 if (clang_enable_static_analyzer) {
29 deps += [
30 "Analysis:ClangAnalysisTests",
31 "Analysis/FlowSensitive:ClangAnalysisFlowSensitiveTests",
32 "Analysis/Scalable:ClangScalableAnalysisTests",
33 "StaticAnalyzer:StaticAnalysisTests",
34 ]
35 }
36 if (host_os != "win") {
37 deps += [
38 # FIXME: libclang unit tests are disabled on Windows due
39 # to failures, mostly in libclang.VirtualFileOverlay_*.
40 # FIXME: Also, the executable can't find libclang.dll since that's
41 # in a different directory.
42 "libclang:libclangTests",
43 "libclang/CrashTests:libclangCrashTests",
44
45 # Exceptions on Windows are not yet supported.
46 "Interpreter/ExceptionTests:ClangReplInterpreterExceptionTests",
47 ]
48 }
49 testonly = true
50 }
51
52 # CMake puts most tests into an AllClangUnitTests target. The GN build
53 # doesn't do this. This keeps the sync script happy.
54 group("dummy_sources") {
55 sources = [ "AllClangUnitTests.cpp" ]
56 not_needed(sources)
57 }