• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1lldb_tablegen(CoreProperties.inc -gen-lldb-property-defs
2  SOURCE CoreProperties.td
3  TARGET LLDBCorePropertiesGen)
4
5lldb_tablegen(CorePropertiesEnum.inc -gen-lldb-property-enum-defs
6  SOURCE CoreProperties.td
7  TARGET LLDBCorePropertiesEnumGen)
8
9set(LLDB_CURSES_LIBS)
10set(LLDB_LIBEDIT_LIBS)
11
12if (LLDB_ENABLE_CURSES)
13  list(APPEND LLDB_CURSES_LIBS ${CURSES_LIBRARIES} ${PANEL_LIBRARIES})
14  if(LLVM_ENABLE_TERMINFO)
15    list(APPEND LLDB_CURSES_LIBS ${TERMINFO_LIB})
16  endif()
17  if (LLVM_BUILD_STATIC)
18    list(APPEND LLDB_CURSES_LIBS gpm)
19  endif()
20endif()
21
22add_lldb_library(lldbCore
23  Address.cpp
24  AddressRange.cpp
25  AddressResolver.cpp
26  AddressResolverFileLine.cpp
27  AddressResolverName.cpp
28  Communication.cpp
29  Debugger.cpp
30  Disassembler.cpp
31  DumpDataExtractor.cpp
32  DumpRegisterValue.cpp
33  DynamicLoader.cpp
34  EmulateInstruction.cpp
35  FileLineResolver.cpp
36  FileSpecList.cpp
37  FormatEntity.cpp
38  Highlighter.cpp
39  IOHandler.cpp
40  IOHandlerCursesGUI.cpp
41  Mangled.cpp
42  Module.cpp
43  ModuleChild.cpp
44  ModuleList.cpp
45  Opcode.cpp
46  PluginManager.cpp
47  RichManglingContext.cpp
48  SearchFilter.cpp
49  Section.cpp
50  SourceManager.cpp
51  StreamAsynchronousIO.cpp
52  StreamFile.cpp
53  UserSettingsController.cpp
54  Value.cpp
55  ValueObject.cpp
56  ValueObjectCast.cpp
57  ValueObjectChild.cpp
58  ValueObjectConstResult.cpp
59  ValueObjectConstResultCast.cpp
60  ValueObjectConstResultChild.cpp
61  ValueObjectConstResultImpl.cpp
62  ValueObjectDynamicValue.cpp
63  ValueObjectList.cpp
64  ValueObjectMemory.cpp
65  ValueObjectRegister.cpp
66  ValueObjectSyntheticFilter.cpp
67  ValueObjectVariable.cpp
68
69  DEPENDS
70    clang-tablegen-targets
71
72  LINK_LIBS
73    lldbBreakpoint
74    lldbDataFormatters
75    lldbExpression
76    lldbHost
77    lldbInterpreter
78    lldbSymbol
79    lldbTarget
80    lldbUtility
81    lldbPluginCPlusPlusLanguage
82    lldbPluginObjCLanguage
83    ${LLDB_CURSES_LIBS}
84
85  CLANG_LIBS
86    clangDriver
87
88  LINK_COMPONENTS
89    Support
90    Demangle
91  )
92
93add_dependencies(lldbCore
94  LLDBCorePropertiesGen
95  LLDBCorePropertiesEnumGen)
96
97# Needed to properly resolve references in a debug build.
98# TODO: Remove once we have better layering
99set_target_properties(lldbCore PROPERTIES LINK_INTERFACE_MULTIPLICITY 5)
100
101if (LLDB_ENABLE_LIBEDIT)
102  target_include_directories(lldbCore PRIVATE ${LibEdit_INCLUDE_DIRS})
103endif()
104
105if (LLDB_ENABLE_CURSES)
106  target_include_directories(lldbCore PRIVATE ${CURSES_INCLUDE_DIRS})
107endif()
108