llvm-project/lldb/source/Symbol/CMakeLists.txt
Nico Weber cfe0284749 [gn build] Add build files for LLDB
This is enough to get the lit-based tests to pass on macOS.

Doesn't yet add build targets for:
- Any LLDB unit tests
- swig bindings
- various targets not needed by lit tests

LLDB has many dependency cycles, something GN doesn't allow. For
that reason, I've omitted some dependency edges. Hopefully we can
clean up the cycles one day.

LLDB has a public/private header distinction, but mostly ignores it.
Many libraries include private headers from other modules.

Since LLDB is the first target the LLVM/GN build that uses Objective-C++
code, add some machinery to the toolchain file to handle that.

Differential Revision: https://reviews.llvm.org/D109185
2021-09-07 15:25:04 -04:00

53 lines
876 B
CMake

set(LLVM_OPTIONAL_SOURCES LocateSymbolFileMacOSX.cpp)
if (CMAKE_SYSTEM_NAME MATCHES "Darwin")
set(PLATFORM_SOURCES
LocateSymbolFileMacOSX.cpp
)
endif()
add_lldb_library(lldbSymbol
ArmUnwindInfo.cpp
Block.cpp
CompactUnwindInfo.cpp
CompileUnit.cpp
CompilerDecl.cpp
CompilerDeclContext.cpp
CompilerType.cpp
DWARFCallFrameInfo.cpp
DebugMacros.cpp
DeclVendor.cpp
FuncUnwinders.cpp
Function.cpp
LineEntry.cpp
LineTable.cpp
LocateSymbolFile.cpp
ObjectFile.cpp
PostfixExpression.cpp
Symbol.cpp
SymbolContext.cpp
SymbolFile.cpp
SymbolVendor.cpp
Symtab.cpp
Type.cpp
TypeList.cpp
TypeMap.cpp
TypeSystem.cpp
UnwindPlan.cpp
UnwindTable.cpp
Variable.cpp
VariableList.cpp
${PLATFORM_SOURCES}
LINK_LIBS
lldbCore
lldbExpression
lldbHost
lldbTarget
lldbUtility
LINK_COMPONENTS
Support
)