Debian Codegraph @

llvm/utils/gn/secondary/bolt/unittests/Core/BUILD.gn

raw
1 import("//llvm/lib/Target/targets.gni")
2 import("//third-party/unittest/unittest.gni")
3
4 unittest("CoreTests") {
5 configs += [ "//llvm/utils/gn/build:bolt_code" ]
6 deps = [
7 "//bolt/include/bolt/Core:TargetConfig.def",
8 "//bolt/lib/Core",
9 "//bolt/lib/Rewrite",
10 "//bolt/lib/Profile",
11 "//llvm/lib/DebugInfo/DWARF",
12 "//llvm/lib/MC",
13 "//llvm/lib/Object",
14 "//llvm/lib/Target:TargetsToBuild",
15 "//llvm/lib/Testing/Support",
16 ]
17 sources = [
18 "BinaryContext.cpp",
19 "DynoStats.cpp",
20 "MCPlusBuilder.cpp",
21 "MemoryMaps.cpp",
22 ]
23
24 defines = []
25 include_dirs = []
26 if (llvm_build_AArch64) {
27 defines += [ "AARCH64_AVAILABLE" ]
28
29 # This target reaches into the internal headers of LLVM's AArch64 library.
30 # That target doesn't expect that, so it doesn't use public_deps for
31 # tblgen-generated headers used only in internal headers (...which this
32 # target here questionably includes). So depend on the target that generates
33 # those headers here.
34 include_dirs += [ "//llvm/lib/Target/AArch64" ]
35 deps += [
36 "//llvm/lib/Target/AArch64/MCTargetDesc",
37 "//llvm/lib/Target/AArch64/Utils",
38 "//llvm/lib/Target/AArch64:AArch64GenSDNodeInfo",
39 ]
40 }
41 if (llvm_build_X86) {
42 defines += [ "X86_AVAILABLE" ]
43
44 # This target reaches into the internal headers of LLVM's X86 library.
45 # That target doesn't expect that, so it doesn't use public_deps for
46 # tblgen-generated headers used only in internal headers (...which this
47 # target here questionably includes). So depend on the target that generates
48 # those headers here.
49 include_dirs += [ "//llvm/lib/Target/X86" ]
50 deps += [ "//llvm/lib/Target/X86/MCTargetDesc" ]
51 }
52 }