OSDN Git Service

gn build: Merge r365091.
[android-x86/external-llvm.git] / utils / gn / secondary / llvm / unittests / BUILD.gn
1 import("//llvm/lib/Target/targets.gni")
2
3 group("unittests") {
4   deps = [
5     "ADT:ADTTests",
6     "Analysis:AnalysisTests",
7     "AsmParser:AsmParserTests",
8     "BinaryFormat:BinaryFormatTests",
9     "Bitcode:BitcodeTests",
10     "Bitstream:BitstreamTests",
11     "CodeGen:CodeGenTests",
12     "CodeGen/GlobalISel:GlobalISelTests",
13     "DebugInfo/CodeView:DebugInfoCodeViewTests",
14     "DebugInfo/DWARF:DebugInfoDWARFTests",
15     "DebugInfo/GSYM:DebugInfoGSYMTests",
16     "DebugInfo/MSF:DebugInfoMSFTests",
17     "DebugInfo/PDB:DebugInfoPDBTests",
18     "Demangle:DemangleTests",
19     "ExecutionEngine:ExecutionEngineTests",
20     "ExecutionEngine/JITLink:JITLinkTests",
21     "ExecutionEngine/MCJIT:MCJITTests",
22     "ExecutionEngine/Orc:OrcJITTests",
23     "FuzzMutate:FuzzMutateTests",
24     "IR:IRTests",
25     "LineEditor:LineEditorTests",
26     "Linker:LinkerTests",
27     "MC:MCTests",
28     "MI:MITests",
29     "Object:ObjectTests",
30     "ObjectYAML:ObjectYAMLTests",
31     "Option:OptionTests",
32     "Passes:PluginsTests",
33     "ProfileData:ProfileDataTests",
34     "Remarks:RemarksTests",
35     "Support:SupportTests",
36     "Support/DynamicLibrary:DynamicLibraryTests",
37     "TextAPI:TextAPITests",
38     "Transforms/IPO:IPOTests",
39     "Transforms/Scalar:ScalarTests",
40     "Transforms/Utils:UtilsTests",
41     "Transforms/Vectorize:VectorizeTests",
42     "XRay:XRayTests",
43     "tools/llvm-cfi-verify:CFIVerifyTests",
44     "tools/llvm-exegesis:LLVMExegesisTests",
45   ]
46
47   # Target-dependent unit tests.
48   # FIXME: This matches how they are set up in the cmake build,
49   # but if we disable an arch after building with it on, this
50   # setup leaves behind stale executables.
51   if (llvm_build_AArch64) {
52     deps += [
53       "Target/AArch64:AArch64Tests",
54       "tools/llvm-exegesis/AArch64:LLVMExegesisAArch64Tests",
55     ]
56   }
57   if (llvm_build_ARM) {
58     deps += [ "tools/llvm-exegesis/ARM:LLVMExegesisARMTests" ]
59   }
60   if (llvm_build_WebAssembly) {
61     deps += [ "Target/WebAssembly:WebAssemblyTests" ]
62   }
63   if (llvm_build_PowerPC) {
64     deps += [ "tools/llvm-exegesis/PowerPC:LLVMExegesisPowerPCTests" ]
65   }
66   if (llvm_build_X86) {
67     deps += [ "tools/llvm-exegesis/X86:LLVMExegesisX86Tests" ]
68   }
69
70   testonly = true
71 }