Skip to content

Commit

Permalink
Merge from daggo-openjk/qvm_support
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexCS1337 committed Aug 1, 2024
2 parents df99996 + 1271456 commit 44c52bc
Show file tree
Hide file tree
Showing 40 changed files with 6,776 additions and 734 deletions.
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,11 @@ endif()
# ${Architecture} must match ARCH_STRING in q_platform.h,
# and is used in DLL names (jagamex86.dll, jagamex86.dylib, jagamei386.so).
if(WIN32)

if(MSVC)
enable_language(ASM_MASM)
endif()

set(X86 ON)
if(CMAKE_SIZEOF_VOID_P MATCHES "8")
set(Architecture "x86_64")
Expand All @@ -126,6 +131,7 @@ else()
set(Architecture "arm64")
add_definitions(-DPNG_ARM_NEON_OPT=0)
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^arm")
set(ARM32 ON)
set(Architecture "arm")
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^i.86$")
set(X86 ON)
Expand Down Expand Up @@ -226,6 +232,8 @@ if(MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /arch:SSE2")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP")

set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /safeseh:no")

# We don't try to control symbol visibility under MSVC.
set(OPENJK_VISIBILITY_FLAGS "")
elseif (("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU") OR ("${CMAKE_C_COMPILER_ID}" MATCHES "Clang"))
Expand Down
19 changes: 19 additions & 0 deletions codemp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -259,10 +259,29 @@ if(BuildMPEngine OR BuildMPDed)
"${MPDir}/qcommon/tags.h"
"${MPDir}/qcommon/timing.h"
"${MPDir}/qcommon/vm.cpp"
"${MPDir}/qcommon/vm_local.h"
"${MPDir}/qcommon/vm_interpreted.cpp"
"${MPDir}/qcommon/z_memman_pc.cpp"

${SharedCommonFiles}
)

if(X86)
set(MPEngineAndDedCommonFiles ${MPEngineAndDedCommonFiles}
"${MPDir}/qcommon/vm_x86.cpp"
)
elseif(ARM32)
set(MPEngineAndDedCommonFiles ${MPEngineAndDedCommonFiles}
"${MPDir}/qcommon/vm_arm.cpp"
)
endif()

if(MSVC)
set(MPEngineAndDedCommonFiles ${MPEngineAndDedCommonFiles}
"${MPDir}/win32/q3asm.asm"
)
endif()

if(WIN32)
set(MPEngineAndDedCommonFiles ${MPEngineAndDedCommonFiles})
endif(WIN32)
Expand Down
375 changes: 275 additions & 100 deletions codemp/client/cl_cgameapi.cpp

Large diffs are not rendered by default.

Loading

0 comments on commit 44c52bc

Please sign in to comment.