forked from OSchip/llvm-project
180 lines
4.0 KiB
CMake
180 lines
4.0 KiB
CMake
set(LLVM_NO_RTTI 1)
|
|
if ( CMAKE_SYSTEM_NAME MATCHES "Windows" )
|
|
add_lldb_executable(lldb-mi
|
|
Driver.cpp
|
|
../../source/Host/windows/getopt/GetOptInc.cpp
|
|
MICmdArgContext.cpp
|
|
MICmdArgSet.cpp
|
|
MICmdArgValBase.cpp
|
|
MICmdArgValConsume.cpp
|
|
MICmdArgValFile.cpp
|
|
MICmdArgValListBase.cpp
|
|
MICmdArgValListOfN.cpp
|
|
MICmdArgValNumber.cpp
|
|
MICmdArgValOptionLong.cpp
|
|
MICmdArgValOptionShort.cpp
|
|
MICmdArgValString.cpp
|
|
MICmdArgValThreadGrp.cpp
|
|
MICmdBase.cpp
|
|
MICmdCommands.cpp
|
|
MICmdCmd.cpp
|
|
MICmdCmdBreak.cpp
|
|
MICmdCmdData.cpp
|
|
MICmdCmdEnviro.cpp
|
|
MICmdCmdExec.cpp
|
|
MICmdCmdFile.cpp
|
|
MICmdCmdGdbInfo.cpp
|
|
MICmdCmdGdbSet.cpp
|
|
MICmdCmdGdbThread.cpp
|
|
MICmdCmdMiscellanous.cpp
|
|
MICmdCmdStack.cpp
|
|
MICmdCmdSupportInfo.cpp
|
|
MICmdCmdSupportList.cpp
|
|
MICmdCmdTarget.cpp
|
|
MICmdCmdThread.cpp
|
|
MICmdCmdTrace.cpp
|
|
MICmdCmdVar.cpp
|
|
MICmdData.cpp
|
|
MICmdFactory.cpp
|
|
MICmdInterpreter.cpp
|
|
MICmdInvoker.cpp
|
|
MICmdMgr.cpp
|
|
MICmdMgrSetCmdDeleteCallback.cpp
|
|
MICmnBase.cpp
|
|
MICmnLLDBBroadcaster.cpp
|
|
MICmnLLDBDebugger.cpp
|
|
MICmnLLDBDebuggerHandleEvents.cpp
|
|
MICmnLLDBDebugSessionInfo.cpp
|
|
MICmnLLDBDebugSessionInfoVarObj.cpp
|
|
MICmnLLDBProxySBValue.cpp
|
|
MICmnLLDBUtilSBValue.cpp
|
|
MICmnLog.cpp
|
|
MICmnLogMediumFile.cpp
|
|
MICmnMIOutOfBandRecord.cpp
|
|
MICmnMIResultRecord.cpp
|
|
MICmnMIValue.cpp
|
|
MICmnMIValueConst.cpp
|
|
MICmnMIValueList.cpp
|
|
MICmnMIValueResult.cpp
|
|
MICmnMIValueTuple.cpp
|
|
MICmnResources.cpp
|
|
MICmnStreamStderr.cpp
|
|
MICmnStreamStdin.cpp
|
|
MICmnStreamStdinLinux.cpp
|
|
MICmnStreamStdinWindows.cpp
|
|
MICmnStreamStdout.cpp
|
|
MICmnThreadMgrStd.cpp
|
|
MIDriver.cpp
|
|
MIDriverBase.cpp
|
|
MIDriverMain.cpp
|
|
MIDriverMgr.cpp
|
|
MIUtilDateTimeStd.cpp
|
|
MIUtilDebug.cpp
|
|
MIUtilFileStd.cpp
|
|
MIUtilMapIdToVariant.cpp
|
|
MIUtilString.cpp
|
|
MIUtilSystemLinux.cpp
|
|
MIUtilSystemOsx.cpp
|
|
MIUtilSystemWindows.cpp
|
|
MIUtilTermios.cpp
|
|
MIUtilThreadBaseStd.cpp
|
|
MIUtilVariant.cpp
|
|
Platform.cpp
|
|
)
|
|
else ()
|
|
add_lldb_executable(lldb-mi
|
|
Driver.cpp
|
|
MICmdArgContext.cpp
|
|
MICmdArgSet.cpp
|
|
MICmdArgValBase.cpp
|
|
MICmdArgValConsume.cpp
|
|
MICmdArgValFile.cpp
|
|
MICmdArgValListBase.cpp
|
|
MICmdArgValListOfN.cpp
|
|
MICmdArgValNumber.cpp
|
|
MICmdArgValOptionLong.cpp
|
|
MICmdArgValOptionShort.cpp
|
|
MICmdArgValString.cpp
|
|
MICmdArgValThreadGrp.cpp
|
|
MICmdBase.cpp
|
|
MICmdCommands.cpp
|
|
MICmdCmd.cpp
|
|
MICmdCmdBreak.cpp
|
|
MICmdCmdData.cpp
|
|
MICmdCmdEnviro.cpp
|
|
MICmdCmdExec.cpp
|
|
MICmdCmdFile.cpp
|
|
MICmdCmdGdbInfo.cpp
|
|
MICmdCmdGdbSet.cpp
|
|
MICmdCmdGdbThread.cpp
|
|
MICmdCmdMiscellanous.cpp
|
|
MICmdCmdStack.cpp
|
|
MICmdCmdSupportInfo.cpp
|
|
MICmdCmdSupportList.cpp
|
|
MICmdCmdTarget.cpp
|
|
MICmdCmdThread.cpp
|
|
MICmdCmdTrace.cpp
|
|
MICmdCmdVar.cpp
|
|
MICmdData.cpp
|
|
MICmdFactory.cpp
|
|
MICmdInterpreter.cpp
|
|
MICmdInvoker.cpp
|
|
MICmdMgr.cpp
|
|
MICmdMgrSetCmdDeleteCallback.cpp
|
|
MICmnBase.cpp
|
|
MICmnLLDBBroadcaster.cpp
|
|
MICmnLLDBDebugger.cpp
|
|
MICmnLLDBDebuggerHandleEvents.cpp
|
|
MICmnLLDBDebugSessionInfo.cpp
|
|
MICmnLLDBDebugSessionInfoVarObj.cpp
|
|
MICmnLLDBProxySBValue.cpp
|
|
MICmnLLDBUtilSBValue.cpp
|
|
MICmnLog.cpp
|
|
MICmnLogMediumFile.cpp
|
|
MICmnMIOutOfBandRecord.cpp
|
|
MICmnMIResultRecord.cpp
|
|
MICmnMIValue.cpp
|
|
MICmnMIValueConst.cpp
|
|
MICmnMIValueList.cpp
|
|
MICmnMIValueResult.cpp
|
|
MICmnMIValueTuple.cpp
|
|
MICmnResources.cpp
|
|
MICmnStreamStderr.cpp
|
|
MICmnStreamStdin.cpp
|
|
MICmnStreamStdinLinux.cpp
|
|
MICmnStreamStdinWindows.cpp
|
|
MICmnStreamStdout.cpp
|
|
MICmnThreadMgrStd.cpp
|
|
MIDriver.cpp
|
|
MIDriverBase.cpp
|
|
MIDriverMain.cpp
|
|
MIDriverMgr.cpp
|
|
MIUtilDateTimeStd.cpp
|
|
MIUtilDebug.cpp
|
|
MIUtilFileStd.cpp
|
|
MIUtilMapIdToVariant.cpp
|
|
MIUtilString.cpp
|
|
MIUtilSystemLinux.cpp
|
|
MIUtilSystemOsx.cpp
|
|
MIUtilSystemWindows.cpp
|
|
MIUtilTermios.cpp
|
|
MIUtilThreadBaseStd.cpp
|
|
MIUtilVariant.cpp
|
|
Platform.cpp
|
|
)
|
|
endif ()
|
|
|
|
target_link_libraries(lldb-mi liblldb)
|
|
if ( NOT CMAKE_SYSTEM_NAME MATCHES "Windows" )
|
|
target_link_libraries(lldb-mi pthread)
|
|
endif ()
|
|
|
|
# TODO: why isn't this done by add_lldb_executable?
|
|
#target_link_libraries(lldb-mi ${LLDB_USED_LIBS})
|
|
#llvm_config(lldb-mi ${LLVM_LINK_COMPONENTS})
|
|
|
|
set_target_properties(lldb-mi PROPERTIES VERSION ${LLDB_VERSION})
|
|
|
|
install(TARGETS lldb-mi
|
|
RUNTIME DESTINATION bin)
|