If we're not touching them, we don't need to do anything special to pass them along -- with one important caveat: due to how cmake arguments work, the implicitly passed arguments need to be specified before arguments that we handle. This isn't particularly nice, but the alternative is enumerating all arguments that can be used by llvm_add_library and the macros it calls (it also relies on implicit passing of some arguments to llvm_process_sources).
36 lines
892 B
CMake
36 lines
892 B
CMake
# Dbghelp is used on windows for writing minidump files.
|
|
if(WIN32)
|
|
set(DBGHELP_LINK_FILES dbghelp)
|
|
else()
|
|
set(DBGHELP_LINK_FILES "")
|
|
endif()
|
|
|
|
lldb_tablegen(ObjectFilePECOFFProperties.inc -gen-lldb-property-defs
|
|
SOURCE ObjectFilePECOFFProperties.td
|
|
TARGET LLDBPluginObjectFilePECOFFPropertiesGen)
|
|
|
|
lldb_tablegen(ObjectFilePECOFFPropertiesEnum.inc -gen-lldb-property-enum-defs
|
|
SOURCE ObjectFilePECOFFProperties.td
|
|
TARGET LLDBPluginObjectFilePECOFFPropertiesEnumGen)
|
|
|
|
add_lldb_library(lldbPluginObjectFilePECOFF PLUGIN
|
|
ObjectFilePECOFF.cpp
|
|
PECallFrameInfo.cpp
|
|
WindowsMiniDump.cpp
|
|
|
|
LINK_COMPONENTS
|
|
BinaryFormat
|
|
Support
|
|
TargetParser
|
|
LINK_LIBS
|
|
lldbCore
|
|
lldbHost
|
|
lldbSymbol
|
|
lldbTarget
|
|
${DBGHELP_LINK_FILES}
|
|
)
|
|
|
|
add_dependencies(lldbPluginObjectFilePECOFF
|
|
LLDBPluginObjectFilePECOFFPropertiesGen
|
|
LLDBPluginObjectFilePECOFFPropertiesEnumGen)
|