mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-17 23:21:22 +00:00
Merge remote-tracking branch 'origin/master' into next
This commit is contained in:
commit
e9fce20071
2 changed files with 12 additions and 0 deletions
|
@ -233,6 +233,8 @@ set(SRB2_CONFIG_HAVE_OPENMPT ON CACHE BOOL
|
||||||
"Enable OpenMPT support.")
|
"Enable OpenMPT support.")
|
||||||
set(SRB2_CONFIG_HAVE_CURL ON CACHE BOOL
|
set(SRB2_CONFIG_HAVE_CURL ON CACHE BOOL
|
||||||
"Enable curl support, used for downloading files via HTTP.")
|
"Enable curl support, used for downloading files via HTTP.")
|
||||||
|
set(SRB2_CONFIG_HAVE_THREADS ON CACHE BOOL
|
||||||
|
"Enable multithreading support.")
|
||||||
if(${CMAKE_SYSTEM} MATCHES Windows)
|
if(${CMAKE_SYSTEM} MATCHES Windows)
|
||||||
set(SRB2_CONFIG_HAVE_MIXERX ON CACHE BOOL
|
set(SRB2_CONFIG_HAVE_MIXERX ON CACHE BOOL
|
||||||
"Enable SDL Mixer X support.")
|
"Enable SDL Mixer X support.")
|
||||||
|
@ -473,6 +475,12 @@ if(${SRB2_CONFIG_HAVE_CURL})
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(${SRB2_CONFIG_HAVE_THREADS})
|
||||||
|
set(SRB2_HAVE_THREADS ON)
|
||||||
|
set(SRB2_CORE_HEADERS ${SRB2_CORE_HEADERS} ${CMAKE_CURRENT_SOURCE_DIR}/i_threads.h)
|
||||||
|
add_definitions(-DHAVE_THREADS)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(${SRB2_CONFIG_HWRENDER})
|
if(${SRB2_CONFIG_HWRENDER})
|
||||||
add_definitions(-DHWRENDER)
|
add_definitions(-DHWRENDER)
|
||||||
set(SRB2_HWRENDER_SOURCES
|
set(SRB2_HWRENDER_SOURCES
|
||||||
|
|
|
@ -55,6 +55,10 @@ set(SRB2_SDL2_HEADERS
|
||||||
sdlmain.h
|
sdlmain.h
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if(${SRB2_CONFIG_HAVE_THREADS})
|
||||||
|
set(SRB2_SDL2_SOURCES ${SRB2_SDL2_SOURCES} i_threads.c)
|
||||||
|
endif()
|
||||||
|
|
||||||
source_group("Interface Code" FILES ${SRB2_SDL2_SOURCES} ${SRB2_SDL2_HEADERS})
|
source_group("Interface Code" FILES ${SRB2_SDL2_SOURCES} ${SRB2_SDL2_HEADERS})
|
||||||
|
|
||||||
# Dependency
|
# Dependency
|
||||||
|
|
Loading…
Reference in a new issue