[OptTable] Fix typo VALUE => VALUES (NFCI) (#121523)
[llvm-project.git] / lldb / source / Core / CMakeLists.txt
blob6d14f7a87764e055254405eed6eb7250aadcb8f0
1 lldb_tablegen(CoreProperties.inc -gen-lldb-property-defs
2   SOURCE CoreProperties.td
3   TARGET LLDBCorePropertiesGen)
5 lldb_tablegen(CorePropertiesEnum.inc -gen-lldb-property-enum-defs
6   SOURCE CoreProperties.td
7   TARGET LLDBCorePropertiesEnumGen)
9 set(LLDB_CURSES_LIBS)
10 set(LLDB_LIBEDIT_LIBS)
12 if (LLDB_ENABLE_CURSES)
13   list(APPEND LLDB_CURSES_LIBS ${PANEL_LIBRARIES} ${CURSES_LIBRARIES})
14   if (LLVM_BUILD_STATIC)
15     list(APPEND LLDB_CURSES_LIBS gpm)
16   endif()
17 endif()
19 # TODO: Add property `NO_PLUGIN_DEPENDENCIES` to lldbCore
20 add_lldb_library(lldbCore
21   Address.cpp
22   AddressRange.cpp
23   AddressRangeListImpl.cpp
24   AddressResolver.cpp
25   AddressResolverFileLine.cpp
26   Communication.cpp
27   DataFileCache.cpp
28   Debugger.cpp
29   DebuggerEvents.cpp
30   Declaration.cpp
31   Disassembler.cpp
32   DumpDataExtractor.cpp
33   DumpRegisterValue.cpp
34   DumpRegisterInfo.cpp
35   DynamicLoader.cpp
36   EmulateInstruction.cpp
37   FileLineResolver.cpp
38   FormatEntity.cpp
39   Highlighter.cpp
40   IOHandler.cpp
41   IOHandlerCursesGUI.cpp
42   Mangled.cpp
43   Module.cpp
44   ModuleChild.cpp
45   ModuleList.cpp
46   Opcode.cpp
47   PluginManager.cpp
48   Progress.cpp
49   RichManglingContext.cpp
50   SearchFilter.cpp
51   Section.cpp
52   SourceLocationSpec.cpp
53   SourceManager.cpp
54   StreamAsynchronousIO.cpp
55   ThreadedCommunication.cpp
56   UserSettingsController.cpp
57   Value.cpp
59   DEPENDS
60     clang-tablegen-targets
62   LINK_LIBS
63     lldbBreakpoint
64     lldbDataFormatters
65     lldbExpression
66     lldbHost
67     lldbInterpreter
68     lldbSymbol
69     lldbTarget
70     lldbUtility
71     lldbValueObject
72     lldbPluginCPlusPlusLanguage
73     lldbPluginObjCLanguage
74     ${LLDB_CURSES_LIBS}
76   CLANG_LIBS
77     clangDriver
79   LINK_COMPONENTS
80     Support
81     Demangle
82     TargetParser
83   )
85 add_dependencies(lldbCore
86   LLDBCorePropertiesGen
87   LLDBCorePropertiesEnumGen)
89 # Needed to properly resolve references in a debug build.
90 # TODO: Remove once we have better layering
91 set_target_properties(lldbCore PROPERTIES LINK_INTERFACE_MULTIPLICITY 5)
93 if (LLDB_ENABLE_CURSES)
94   target_include_directories(lldbCore PRIVATE ${CURSES_INCLUDE_DIRS})
95 endif()