36 lines · plain
1# Dbghelp is used on windows for writing minidump files.2if(WIN32)3 set(DBGHELP_LINK_FILES dbghelp)4else()5 set(DBGHELP_LINK_FILES "")6endif()7 8lldb_tablegen(ObjectFilePECOFFProperties.inc -gen-lldb-property-defs9 SOURCE ObjectFilePECOFFProperties.td10 TARGET LLDBPluginObjectFilePECOFFPropertiesGen)11 12lldb_tablegen(ObjectFilePECOFFPropertiesEnum.inc -gen-lldb-property-enum-defs13 SOURCE ObjectFilePECOFFProperties.td14 TARGET LLDBPluginObjectFilePECOFFPropertiesEnumGen)15 16add_lldb_library(lldbPluginObjectFilePECOFF PLUGIN17 ObjectFilePECOFF.cpp18 PECallFrameInfo.cpp19 WindowsMiniDump.cpp20 21 LINK_COMPONENTS22 BinaryFormat23 Support24 TargetParser25 LINK_LIBS26 lldbCore27 lldbHost28 lldbSymbol29 lldbTarget30 ${DBGHELP_LINK_FILES}31 )32 33add_dependencies(lldbPluginObjectFilePECOFF34 LLDBPluginObjectFilePECOFFPropertiesGen35 LLDBPluginObjectFilePECOFFPropertiesEnumGen)36