| 1 |
import("//lldb/utils/TableGen/lldb_tablegen.gni") |
| 2 |
|
| 3 |
lldb_tablegen("CoreProperties") { |
| 4 |
args = [ "-gen-lldb-property-defs" ] |
| 5 |
} |
| 6 |
|
| 7 |
lldb_tablegen("CorePropertiesEnum") { |
| 8 |
args = [ "-gen-lldb-property-enum-defs" ] |
| 9 |
td_file = "CoreProperties.td" |
| 10 |
} |
| 11 |
|
| 12 |
static_library("Core") { |
| 13 |
output_name = "lldbCore" |
| 14 |
configs += [ |
| 15 |
"//llvm/utils/gn/build:clang_code", |
| 16 |
"//llvm/utils/gn/build:lldb_code", |
| 17 |
] |
| 18 |
deps = [ |
| 19 |
":CoreProperties", |
| 20 |
":CorePropertiesEnum", |
| 21 |
"//clang/lib/Driver", |
| 22 |
|
| 23 |
#"//lldb/source/Breakpoint", # Dependency cycle. |
| 24 |
#"//lldb/source/DataFormatters", # Dependency cycle. |
| 25 |
#"//lldb/source/Expression", # Dependency cycle. |
| 26 |
"//lldb/source/Host", |
| 27 |
"//lldb/source/ValueObject", |
| 28 |
|
| 29 |
#"//lldb/source/Interpreter", # Dependency cycle. |
| 30 |
#"//lldb/source/Symbol", # Dependency cycle. |
| 31 |
#"//lldb/source/Target", # Dependency cycle. |
| 32 |
"//lldb/source/Utility", |
| 33 |
"//llvm/lib/Demangle", |
| 34 |
"//llvm/lib/Support", |
| 35 |
"//llvm/lib/TargetParser", |
| 36 |
"//llvm/lib/Telemetry", |
| 37 |
|
| 38 |
#"//lldb/source/Plugins/Language/CPlusPlus", # 3-hop dependency cycle. |
| 39 |
#"//lldb/source/Plugins/Language/ObjC", # Many-hop dependency cycle. |
| 40 |
|
| 41 |
# FIXME: |
| 42 |
# ${LLDB_CURSES_LIBS} |
| 43 |
] |
| 44 |
|
| 45 |
# FIXME: Link curses, libedit if needed. |
| 46 |
include_dirs = [ ".." ] |
| 47 |
sources = [ |
| 48 |
"Address.cpp", |
| 49 |
"AddressRange.cpp", |
| 50 |
"AddressRangeListImpl.cpp", |
| 51 |
"AddressResolver.cpp", |
| 52 |
"AddressResolverFileLine.cpp", |
| 53 |
"Communication.cpp", |
| 54 |
"DataFileCache.cpp", |
| 55 |
"Debugger.cpp", |
| 56 |
"DebuggerEvents.cpp", |
| 57 |
"Declaration.cpp", |
| 58 |
"DemangledNameInfo.cpp", |
| 59 |
"Disassembler.cpp", |
| 60 |
"DumpDataExtractor.cpp", |
| 61 |
"DumpRegisterInfo.cpp", |
| 62 |
"DumpRegisterValue.cpp", |
| 63 |
"DynamicLoader.cpp", |
| 64 |
"EmulateInstruction.cpp", |
| 65 |
"FileLineResolver.cpp", |
| 66 |
"FormatEntity.cpp", |
| 67 |
"Highlighter.cpp", |
| 68 |
"IOHandler.cpp", |
| 69 |
"IOHandlerCursesGUI.cpp", |
| 70 |
"Mangled.cpp", |
| 71 |
"Module.cpp", |
| 72 |
"ModuleChild.cpp", |
| 73 |
"ModuleList.cpp", |
| 74 |
"Opcode.cpp", |
| 75 |
"PluginManager.cpp", |
| 76 |
"Progress.cpp", |
| 77 |
"ProtocolServer.cpp", |
| 78 |
"RichManglingContext.cpp", |
| 79 |
"SearchFilter.cpp", |
| 80 |
"Section.cpp", |
| 81 |
"SourceLocationSpec.cpp", |
| 82 |
"SourceManager.cpp", |
| 83 |
"Statusline.cpp", |
| 84 |
"StreamAsynchronousIO.cpp", |
| 85 |
"Telemetry.cpp", |
| 86 |
"ThreadedCommunication.cpp", |
| 87 |
"UserSettingsController.cpp", |
| 88 |
"Value.cpp", |
| 89 |
] |
| 90 |
} |