set(LLDB_PLUGIN_PROCESS_UTILITY_SRC
  AuxVector.cpp
  FreeBSDSignals.cpp
  GDBRemoteSignals.cpp
  HistoryThread.cpp
  HistoryUnwind.cpp
  InferiorCallPOSIX.cpp
  LinuxProcMaps.cpp
  LinuxSignals.cpp
  MemoryTagManagerAArch64MTE.cpp
  NativeProcessSoftwareSingleStep.cpp
  NativeRegisterContextDBReg_arm64.cpp
  NativeRegisterContextDBReg_x86.cpp
  NativeRegisterContextRegisterInfo.cpp
  NetBSDSignals.cpp
  RegisterContext_x86.cpp
  RegisterContextDarwin_arm.cpp
  RegisterContextDarwin_arm64.cpp
  RegisterContextDarwin_i386.cpp
  RegisterContextDarwin_x86_64.cpp
  RegisterContextDummy.cpp
  RegisterContextFreeBSD_i386.cpp
  RegisterContextFreeBSD_mips64.cpp
  RegisterContextFreeBSD_powerpc.cpp
  RegisterContextFreeBSD_x86_64.cpp
  RegisterContextHistory.cpp
  RegisterContextLinux_i386.cpp
  RegisterContextLinux_x86_64.cpp
  RegisterContextLinux_s390x.cpp
  RegisterContextMach_arm.cpp
  RegisterContextMach_i386.cpp
  RegisterContextMach_x86_64.cpp
  RegisterContextMemory.cpp
  RegisterContextNetBSD_i386.cpp
  RegisterContextNetBSD_x86_64.cpp
  RegisterContextOpenBSD_i386.cpp
  RegisterContextOpenBSD_x86_64.cpp
  RegisterContextPOSIX_arm.cpp
  RegisterContextPOSIX_arm64.cpp
  RegisterContextPOSIX_loongarch64.cpp
  RegisterContextPOSIX_mips64.cpp
  RegisterContextPOSIX_powerpc.cpp
  RegisterContextPOSIX_ppc64le.cpp
  RegisterContextPOSIX_riscv64.cpp
  RegisterContextPOSIX_s390x.cpp
  RegisterContextPOSIX_x86.cpp
  RegisterContextThreadMemory.cpp
  RegisterContextWindows_i386.cpp
  RegisterContextWindows_x86_64.cpp
  RegisterFlagsDetector_arm64.cpp
  RegisterInfos_x86_64_with_base_shared.cpp
  RegisterInfoPOSIX_arm.cpp
  RegisterInfoPOSIX_arm64.cpp
  RegisterInfoPOSIX_loongarch64.cpp
  RegisterInfoPOSIX_ppc64le.cpp
  RegisterInfoPOSIX_riscv64.cpp
  StopInfoMachException.cpp
  ThreadMemory.cpp)

if (MS_DEBUGGER)
    list(APPEND LLDB_PLUGIN_PROCESS_UTILITY_SRC
      RegisterInfoPOSIX_ascend.cpp
      RegisterInfoPOSIX_ascend310P.cpp
      RegisterInfoPOSIX_ascend910B.cpp
      RegisterInfoPOSIX_ascend950.cpp)

  add_lldb_library(lldbPluginProcessUtility
    ${LLDB_PLUGIN_PROCESS_UTILITY_SRC}

    LINK_LIBS
      lldbDeviceContext
      lldbBreakpoint
      lldbCore
      lldbDataFormatters
      lldbExpression
      lldbHost
      lldbSymbol
      lldbTarget
      lldbUtility
    LINK_COMPONENTS
      Support
      TargetParser
   )
else()
  add_lldb_library(lldbPluginProcessUtility
    ${LLDB_PLUGIN_PROCESS_UTILITY_SRC}

    LINK_LIBS
      lldbBreakpoint
      lldbCore
      lldbDataFormatters
      lldbExpression
      lldbHost
      lldbSymbol
      lldbTarget
      lldbUtility
    LINK_COMPONENTS
      Support
      TargetParser
  )
endif()