mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 02:06:06 +00:00

Because of its dependency on clang (and potentially other compilers downstream, such as swift) lldb_private::GetVersion already lives in its own library called lldbBase. Despite that, its implementation was spread across unrelated files. This patch improves things by introducing a Version library with its own directory, header and implementation file. The benefits of this patch include: - We can get rid of the ugly quoting macros. - Other parts of LLDB can read the version number from lldb/Version/Version.inc. - The implementation can be swapped out for tools like lldb-server than don't need to depend on clang at all. Differential revision: https://reviews.llvm.org/D115211
60 lines
1.4 KiB
CMake
60 lines
1.4 KiB
CMake
lldb_tablegen(CommandOptions.inc -gen-lldb-option-defs
|
|
SOURCE Options.td
|
|
TARGET LLDBOptionsGen)
|
|
|
|
add_lldb_library(lldbCommands
|
|
CommandCompletions.cpp
|
|
CommandObjectApropos.cpp
|
|
CommandObjectBreakpoint.cpp
|
|
CommandObjectBreakpointCommand.cpp
|
|
CommandObjectCommands.cpp
|
|
CommandObjectDisassemble.cpp
|
|
CommandObjectExpression.cpp
|
|
CommandObjectFrame.cpp
|
|
CommandObjectGUI.cpp
|
|
CommandObjectHelp.cpp
|
|
CommandObjectLanguage.cpp
|
|
CommandObjectLog.cpp
|
|
CommandObjectMemory.cpp
|
|
CommandObjectMemoryTag.cpp
|
|
CommandObjectMultiword.cpp
|
|
CommandObjectPlatform.cpp
|
|
CommandObjectPlugin.cpp
|
|
CommandObjectProcess.cpp
|
|
CommandObjectQuit.cpp
|
|
CommandObjectRegexCommand.cpp
|
|
CommandObjectRegister.cpp
|
|
CommandObjectReproducer.cpp
|
|
CommandObjectScript.cpp
|
|
CommandObjectSession.cpp
|
|
CommandObjectSettings.cpp
|
|
CommandObjectSource.cpp
|
|
CommandObjectStats.cpp
|
|
CommandObjectTarget.cpp
|
|
CommandObjectThread.cpp
|
|
CommandObjectThreadUtil.cpp
|
|
CommandObjectTrace.cpp
|
|
CommandObjectType.cpp
|
|
CommandObjectVersion.cpp
|
|
CommandObjectWatchpoint.cpp
|
|
CommandObjectWatchpointCommand.cpp
|
|
CommandOptionsProcessLaunch.cpp
|
|
|
|
LINK_LIBS
|
|
lldbBreakpoint
|
|
lldbCore
|
|
lldbDataFormatters
|
|
lldbExpression
|
|
lldbHost
|
|
lldbInterpreter
|
|
lldbSymbol
|
|
lldbTarget
|
|
lldbUtility
|
|
lldbVersion
|
|
|
|
LINK_COMPONENTS
|
|
Support
|
|
)
|
|
|
|
add_dependencies(lldbCommands LLDBOptionsGen)
|