xref: /openbsd-src/gnu/llvm/lldb/source/Plugins/ObjectFile/PECOFF/CMakeLists.txt (revision f6aab3d83b51b91c24247ad2c2573574de475a82)
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-defs
9  SOURCE ObjectFilePECOFFProperties.td
10  TARGET LLDBPluginObjectFilePECOFFPropertiesGen)
11
12lldb_tablegen(ObjectFilePECOFFPropertiesEnum.inc -gen-lldb-property-enum-defs
13  SOURCE ObjectFilePECOFFProperties.td
14  TARGET LLDBPluginObjectFilePECOFFPropertiesEnumGen)
15
16add_lldb_library(lldbPluginObjectFilePECOFF PLUGIN
17  ObjectFilePECOFF.cpp
18  PECallFrameInfo.cpp
19  WindowsMiniDump.cpp
20
21  LINK_LIBS
22    lldbCore
23    lldbHost
24    lldbSymbol
25    lldbTarget
26    ${DBGHELP_LINK_FILES}
27  LINK_COMPONENTS
28    BinaryFormat
29    Support
30    TargetParser
31  )
32
33add_dependencies(lldbPluginObjectFilePECOFF
34  LLDBPluginObjectFilePECOFFPropertiesGen
35  LLDBPluginObjectFilePECOFFPropertiesEnumGen)
36