Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lldb / source / Plugins / CMakeLists.txt
blob63f2c5b685a89d71be178e9589b478330cb8827d
1 add_subdirectory(ABI)
2 add_subdirectory(Architecture)
3 add_subdirectory(Disassembler)
4 add_subdirectory(DynamicLoader)
5 add_subdirectory(ExpressionParser)
6 add_subdirectory(Instruction)
7 add_subdirectory(InstrumentationRuntime)
8 add_subdirectory(JITLoader)
9 add_subdirectory(Language)
10 add_subdirectory(LanguageRuntime)
11 add_subdirectory(MemoryHistory)
12 add_subdirectory(ObjectContainer)
13 add_subdirectory(ObjectFile)
14 add_subdirectory(OperatingSystem)
15 add_subdirectory(Platform)
16 add_subdirectory(Process)
17 add_subdirectory(REPL)
18 add_subdirectory(RegisterTypeBuilder)
19 add_subdirectory(ScriptInterpreter)
20 add_subdirectory(StructuredData)
21 add_subdirectory(SymbolFile)
22 add_subdirectory(SystemRuntime)
23 add_subdirectory(SymbolVendor)
24 add_subdirectory(Trace)
25 add_subdirectory(TraceExporter)
26 add_subdirectory(TypeSystem)
27 add_subdirectory(UnwindAssembly)
29 set(LLDB_STRIPPED_PLUGINS)
30 get_property(LLDB_ALL_PLUGINS GLOBAL PROPERTY LLDB_PLUGINS)
32 set(LLDB_ENUM_PLUGINS "")
34 # FIXME: ProcessWindowsCommon needs to be initialized after all other process
35 # plugins but before ProcessGDBRemote.
36 set(LLDB_PROCESS_WINDOWS_PLUGIN "")
37 set(LLDB_PROCESS_GDB_PLUGIN "")
39 foreach(p ${LLDB_ALL_PLUGINS})
40   # Strip lldbPlugin from the plugin name.
41   string(SUBSTRING ${p} 10 -1 pStripped)
42   if(${pStripped} MATCHES "^ScriptInterpreter*")
43     set(LLDB_ENUM_PLUGINS "${LLDB_ENUM_PLUGINS}LLDB_SCRIPT_PLUGIN(${pStripped})\n")
44   elseif(${pStripped} STREQUAL "ProcessWindowsCommon")
45     set(LLDB_PROCESS_WINDOWS_PLUGIN "LLDB_PLUGIN(${pStripped})\n")
46   elseif(${pStripped} STREQUAL "ProcessGDBRemote")
47     set(LLDB_PROCESS_GDB_PLUGIN "LLDB_PLUGIN(${pStripped})\n")
48   else()
49     set(LLDB_ENUM_PLUGINS "${LLDB_ENUM_PLUGINS}LLDB_PLUGIN(${pStripped})\n")
50   endif()
51 endforeach(p)
53 configure_file(
54   ${CMAKE_CURRENT_SOURCE_DIR}/Plugins.def.in
55   ${CMAKE_CURRENT_BINARY_DIR}/Plugins.def
56   )
58 set_property(GLOBAL PROPERTY LLDB_PLUGINS_INCLUDE_DIR ${CMAKE_CURRENT_BINARY_DIR})