2023-08-14 10:20:50 +00:00
|
|
|
cmake_minimum_required( VERSION 3.16.0 )
|
2014-06-15 18:36:49 +00:00
|
|
|
|
2017-04-23 09:23:56 +00:00
|
|
|
include(precompiled_headers)
|
2016-04-10 11:08:54 +00:00
|
|
|
|
2014-06-15 18:36:49 +00:00
|
|
|
if( COMMAND cmake_policy )
|
|
|
|
cmake_policy( SET CMP0003 NEW )
|
2016-02-20 10:38:30 +00:00
|
|
|
endif()
|
2014-06-15 18:36:49 +00:00
|
|
|
|
|
|
|
include( CheckCXXSourceCompiles )
|
|
|
|
include( CheckFunctionExists )
|
|
|
|
include( CheckCXXCompilerFlag )
|
2016-10-02 20:05:26 +00:00
|
|
|
include( CheckIncludeFile )
|
|
|
|
include( CheckIncludeFiles )
|
2014-10-18 09:33:39 +00:00
|
|
|
include( CheckLibraryExists )
|
2014-06-15 18:36:49 +00:00
|
|
|
include( FindPkgConfig )
|
|
|
|
|
2021-05-21 22:48:30 +00:00
|
|
|
if( DEM_CMAKE_COMPILER_IS_GNUCXX_COMPATIBLE )
|
2014-06-15 18:36:49 +00:00
|
|
|
option( NO_STRIP "Do not strip Release or MinSizeRel builds" )
|
|
|
|
# At least some versions of Xcode fail if you strip with the linker
|
|
|
|
# instead of the separate strip utility.
|
|
|
|
if( APPLE )
|
|
|
|
set( NO_STRIP ON )
|
2016-02-06 02:19:29 +00:00
|
|
|
endif()
|
|
|
|
endif()
|
2014-06-15 18:36:49 +00:00
|
|
|
|
2014-12-10 20:11:26 +00:00
|
|
|
if( APPLE )
|
|
|
|
option( OSX_COCOA_BACKEND "Use native Cocoa backend instead of SDL" ON )
|
2016-02-06 02:19:29 +00:00
|
|
|
endif()
|
2014-08-03 09:38:56 +00:00
|
|
|
|
2022-11-08 10:23:49 +00:00
|
|
|
option( ZDOOM_ENABLE_SWR "Enable software renderer" ON )
|
|
|
|
if( NOT ZDOOM_ENABLE_SWR )
|
|
|
|
add_definitions( -DNO_SWRENDERER )
|
|
|
|
endif()
|
|
|
|
|
2021-05-21 22:48:30 +00:00
|
|
|
target_architecture(TARGET_ARCHITECTURE)
|
|
|
|
message(STATUS "Architecture is ${TARGET_ARCHITECTURE}")
|
|
|
|
|
|
|
|
if ( ${TARGET_ARCHITECTURE} MATCHES "arm64" )
|
|
|
|
set (ARM64 aarch64)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
# Right now only 64 bit is supported.
|
|
|
|
if( ${TARGET_ARCHITECTURE} MATCHES "x86_64" )
|
2014-06-15 18:36:49 +00:00
|
|
|
set( X64 64 )
|
2019-02-04 09:40:32 +00:00
|
|
|
add_definitions( -DARCH_IA32 )
|
|
|
|
endif()
|
2014-06-15 18:36:49 +00:00
|
|
|
|
2021-05-21 22:48:30 +00:00
|
|
|
if( NOT PROJECT_LIBRARIES )
|
|
|
|
set( PROJECT_LIBRARIES "" )
|
2016-02-06 02:19:29 +00:00
|
|
|
endif()
|
2014-01-18 23:10:48 +00:00
|
|
|
|
2022-12-17 01:40:05 +00:00
|
|
|
add_definitions( -DTHIS_IS_GZDOOM )
|
|
|
|
|
2014-06-15 18:36:49 +00:00
|
|
|
if( WIN32 )
|
2018-02-23 08:21:42 +00:00
|
|
|
|
2014-06-15 18:36:49 +00:00
|
|
|
add_definitions( -D_WIN32 )
|
2018-02-23 08:21:42 +00:00
|
|
|
|
2021-05-21 22:48:30 +00:00
|
|
|
set( PROJECT_LIBRARIES
|
2023-05-14 04:39:55 +00:00
|
|
|
psapi
|
2014-06-15 18:36:49 +00:00
|
|
|
wsock32
|
|
|
|
winmm
|
2022-10-25 22:05:23 +00:00
|
|
|
dinput8
|
2014-06-15 18:36:49 +00:00
|
|
|
ole32
|
|
|
|
user32
|
|
|
|
gdi32
|
|
|
|
comctl32
|
|
|
|
comdlg32
|
|
|
|
ws2_32
|
|
|
|
setupapi
|
2018-12-18 23:23:38 +00:00
|
|
|
oleaut32
|
2021-05-21 22:48:30 +00:00
|
|
|
dbghelp
|
|
|
|
legacy_stdio_definitions )
|
2016-11-24 05:47:53 +00:00
|
|
|
|
2021-05-21 22:48:30 +00:00
|
|
|
if( DEM_CMAKE_COMPILER_IS_GNUCXX_COMPATIBLE )
|
2018-04-22 16:50:12 +00:00
|
|
|
if( DX_dxguid_LIBRARY )
|
2021-05-21 22:48:30 +00:00
|
|
|
list( APPEND PROJECT_LIBRARIES "${DX_dxguid_LIBRARY}" )
|
2018-04-22 16:50:12 +00:00
|
|
|
endif()
|
|
|
|
endif()
|
2016-02-06 02:19:29 +00:00
|
|
|
else()
|
2014-06-15 18:36:49 +00:00
|
|
|
if( APPLE )
|
|
|
|
set( NO_GTK ON )
|
2016-11-12 23:32:09 +00:00
|
|
|
set( DYN_GTK OFF )
|
2016-04-09 07:51:19 +00:00
|
|
|
|
|
|
|
# Prevent inclusion of fp.h and FixMath.h from Carbon framework
|
|
|
|
# Declarations from these files are not used but cause the following conflicts:
|
|
|
|
# - redefinition of 'FixedToFloat' and 'FloatToFixed' macros
|
|
|
|
# - redefinition of 'pi' as different kind of symbol
|
|
|
|
add_definitions( -D__FP__ -D__FIXMATH__ )
|
2016-02-06 02:19:29 +00:00
|
|
|
else()
|
2014-06-15 18:36:49 +00:00
|
|
|
option( NO_GTK "Disable GTK+ dialogs (Not applicable to Windows)" )
|
2016-11-12 23:32:09 +00:00
|
|
|
option( DYN_GTK "Load GTK+ at runtime instead of compile time" ON )
|
2014-06-15 18:36:49 +00:00
|
|
|
|
|
|
|
# Use GTK+ for the IWAD picker, if available.
|
|
|
|
if( NOT NO_GTK )
|
2016-11-12 23:32:09 +00:00
|
|
|
pkg_check_modules( GTK3 gtk+-3.0 )
|
|
|
|
if( GTK3_FOUND )
|
|
|
|
if( NOT DYN_GTK )
|
2021-05-21 22:48:30 +00:00
|
|
|
set( PROJECT_LIBRARIES ${PROJECT_LIBRARIES} ${GTK3_LIBRARIES} )
|
2016-11-12 23:32:09 +00:00
|
|
|
endif()
|
2023-07-01 12:36:48 +00:00
|
|
|
include_directories( SYSTEM ${GTK3_INCLUDE_DIRS} )
|
2016-11-12 23:32:09 +00:00
|
|
|
link_directories( ${GTK3_LIBRARY_DIRS} )
|
2016-02-06 02:19:29 +00:00
|
|
|
else()
|
2016-11-12 23:32:09 +00:00
|
|
|
pkg_check_modules( GTK2 gtk+-2.0 )
|
|
|
|
if( GTK2_FOUND )
|
|
|
|
if( NOT DYN_GTK )
|
2021-05-21 22:48:30 +00:00
|
|
|
set( PROJECT_LIBRARIES ${PROJECT_LIBRARIES} ${GTK2_LIBRARIES} )
|
2016-11-12 23:32:09 +00:00
|
|
|
endif()
|
2023-07-01 12:36:48 +00:00
|
|
|
include_directories( SYSTEM ${GTK2_INCLUDE_DIRS} )
|
2016-11-12 23:32:09 +00:00
|
|
|
link_directories( ${GTK2_LIBRARY_DIRS} )
|
|
|
|
else()
|
|
|
|
set( NO_GTK ON )
|
|
|
|
endif()
|
2016-02-06 02:19:29 +00:00
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
endif()
|
2018-02-23 08:21:42 +00:00
|
|
|
|
2021-05-21 22:48:30 +00:00
|
|
|
if ( NOT WIN32 )
|
|
|
|
option( NO_SDL_JOYSTICK "Disable SDL joystick support (Not applicable to Windows)" OFF )
|
|
|
|
if ( NO_SDL_JOYSTICK )
|
|
|
|
add_definitions( -DNO_SDL_JOYSTICK=1 )
|
|
|
|
endif()
|
|
|
|
endif()
|
2020-06-04 09:48:59 +00:00
|
|
|
|
2014-06-15 18:36:49 +00:00
|
|
|
if( NO_GTK )
|
2016-11-12 23:32:09 +00:00
|
|
|
add_definitions( -DNO_GTK )
|
|
|
|
elseif( DYN_GTK )
|
|
|
|
add_definitions( -DDYN_GTK=1 )
|
|
|
|
else()
|
|
|
|
add_definitions( -DDYN_GTK=0 )
|
2016-02-06 02:19:29 +00:00
|
|
|
endif()
|
2016-11-12 23:32:09 +00:00
|
|
|
|
2014-12-16 21:20:54 +00:00
|
|
|
# Non-Windows version also needs SDL except native OS X backend
|
2014-08-03 09:38:56 +00:00
|
|
|
if( NOT APPLE OR NOT OSX_COCOA_BACKEND )
|
2021-05-02 18:47:50 +00:00
|
|
|
find_package( SDL2 REQUIRED )
|
2023-07-01 12:36:48 +00:00
|
|
|
include_directories( SYSTEM "${SDL2_INCLUDE_DIR}" )
|
2021-05-21 22:48:30 +00:00
|
|
|
set( PROJECT_LIBRARIES ${PROJECT_LIBRARIES} "${SDL2_LIBRARY}" )
|
2016-02-06 02:19:29 +00:00
|
|
|
endif()
|
2014-06-15 18:36:49 +00:00
|
|
|
|
2016-02-06 02:19:29 +00:00
|
|
|
endif()
|
2014-06-15 18:36:49 +00:00
|
|
|
|
|
|
|
if( NOT NO_OPENAL )
|
2023-08-21 18:50:36 +00:00
|
|
|
if ( "vcpkg-openal-soft" IN_LIST VCPKG_MANIFEST_FEATURES )
|
|
|
|
# Statically link to OpenAL from vcpkg
|
|
|
|
find_package( OpenAL CONFIG REQUIRED )
|
|
|
|
list( APPEND PROJECT_LIBRARIES OpenAL::OpenAL )
|
|
|
|
elseif ( NOT DYN_OPENAL ) # DYN_OPENAL uses local copies of the headers.
|
2017-04-17 15:05:09 +00:00
|
|
|
find_package( OpenAL )
|
|
|
|
mark_as_advanced(CLEAR OPENAL_INCLUDE_DIR)
|
|
|
|
if( OPENAL_INCLUDE_DIR )
|
2023-07-01 12:36:48 +00:00
|
|
|
include_directories( SYSTEM ${OPENAL_INCLUDE_DIR} )
|
2016-02-11 12:07:01 +00:00
|
|
|
mark_as_advanced(CLEAR OPENAL_LIBRARY)
|
|
|
|
if( OPENAL_LIBRARY )
|
2021-05-21 22:48:30 +00:00
|
|
|
set( PROJECT_LIBRARIES ${OPENAL_LIBRARY} ${PROJECT_LIBRARIES} )
|
2023-01-30 01:14:11 +00:00
|
|
|
if( APPLE )
|
2023-02-09 22:39:57 +00:00
|
|
|
set( PROJECT_LIBRARIES ${PROJECT_LIBRARIES} "-framework AudioUnit -framework CoreAudio -framework ApplicationServices -framework AudioToolbox -framework CoreFoundation" )
|
2023-01-30 01:14:11 +00:00
|
|
|
endif()
|
2016-02-11 12:07:01 +00:00
|
|
|
else()
|
|
|
|
set( NO_OPENAL ON )
|
|
|
|
endif()
|
2017-04-17 15:05:09 +00:00
|
|
|
else()
|
|
|
|
set( NO_OPENAL ON )
|
2016-02-11 12:07:01 +00:00
|
|
|
endif()
|
|
|
|
else()
|
2017-04-17 15:05:09 +00:00
|
|
|
add_definitions( -DDYN_OPENAL )
|
2016-02-11 12:07:01 +00:00
|
|
|
endif()
|
2016-02-06 02:19:29 +00:00
|
|
|
endif()
|
2014-06-15 18:36:49 +00:00
|
|
|
|
|
|
|
if( NO_OPENAL )
|
|
|
|
add_definitions( -DNO_OPENAL=1 )
|
2016-02-06 02:19:29 +00:00
|
|
|
endif()
|
2014-06-19 13:34:40 +00:00
|
|
|
|
2014-06-15 18:36:49 +00:00
|
|
|
# Decide on SSE setup
|
|
|
|
|
2015-12-25 13:41:06 +00:00
|
|
|
if( X64 )
|
|
|
|
set( HAVE_MMX 1 )
|
|
|
|
endif( X64 )
|
|
|
|
|
2017-07-14 12:14:34 +00:00
|
|
|
CHECK_CXX_SOURCE_COMPILES("#include <ppl.h>
|
|
|
|
int main() { concurrency::parallel_for(0, 1, 1, [](int) { } ); }"
|
|
|
|
HAVE_PARALLEL_FOR)
|
|
|
|
|
|
|
|
if( NOT HAVE_PARALLEL_FOR )
|
|
|
|
CHECK_CXX_SOURCE_COMPILES("#include <dispatch/dispatch.h>
|
|
|
|
int main() { dispatch_apply(1, dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^(size_t) { }); }"
|
|
|
|
HAVE_DISPATCH_APPLY)
|
|
|
|
endif()
|
|
|
|
|
2017-03-09 23:08:09 +00:00
|
|
|
# Set up flags for MSVC
|
|
|
|
if (MSVC)
|
|
|
|
set( CMAKE_CXX_FLAGS "/MP ${CMAKE_CXX_FLAGS}" )
|
|
|
|
endif (MSVC)
|
|
|
|
|
2014-06-15 18:36:49 +00:00
|
|
|
# Set up flags for GCC
|
|
|
|
|
2021-05-21 22:48:30 +00:00
|
|
|
if( DEM_CMAKE_COMPILER_IS_GNUCXX_COMPATIBLE )
|
2014-06-15 18:36:49 +00:00
|
|
|
if( PROFILE )
|
|
|
|
set( CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -pg" )
|
|
|
|
set( CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -pg" )
|
|
|
|
set( CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO} -pg" )
|
|
|
|
set( CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -pg" )
|
2016-02-06 02:19:29 +00:00
|
|
|
endif()
|
2016-02-27 07:20:34 +00:00
|
|
|
|
2014-08-16 10:55:05 +00:00
|
|
|
if( NOT PROFILE AND NOT APPLE )
|
|
|
|
# On OS X frame pointers are required for exception handling, at least with Clang
|
2014-06-15 18:36:49 +00:00
|
|
|
set( REL_CXX_FLAGS "${REL_CXX_FLAGS} -fomit-frame-pointer" )
|
2016-02-06 02:19:29 +00:00
|
|
|
endif()
|
2014-06-15 18:36:49 +00:00
|
|
|
set( CMAKE_CXX_FLAGS_RELEASE "${REL_CXX_FLAGS} ${CMAKE_CXX_FLAGS_RELEASE}" )
|
|
|
|
set( CMAKE_CXX_FLAGS_MINSIZEREL "${REL_CXX_FLAGS} ${CMAKE_CXX_FLAGS_MINSIZEREL}" )
|
|
|
|
set( CMAKE_CXX_FLAGS_RELWITHDEBINFO "${REL_CXX_FLAGS} ${CMAKE_CXX_FLAGS_RELWITHDEBINFO}" )
|
|
|
|
|
2016-12-31 21:35:24 +00:00
|
|
|
# Support for the GCC/Clang sanitizers.
|
|
|
|
set( WITH_ASAN 0 CACHE BOOL "Enable the Address Sanitizer")
|
|
|
|
if( NOT CMAKE_COMPILER_IS_GNUCXX )
|
|
|
|
set( WITH_MSAN 0 CACHE BOOL "Enable the Memory Sanitizer")
|
|
|
|
endif( NOT CMAKE_COMPILER_IS_GNUCXX )
|
|
|
|
set( WITH_UBSAN 0 CACHE BOOL "Enable the Undefined Behavior Sanitizer")
|
|
|
|
if( WITH_MSAN )
|
|
|
|
if ( WITH_ASAN OR WITH_UBSAN )
|
|
|
|
message( SEND_ERROR "You can't use MSAN with either ASAN or UBSAN." )
|
|
|
|
endif ( WITH_ASAN OR WITH_UBSAN )
|
|
|
|
endif( WITH_MSAN )
|
|
|
|
|
|
|
|
set( SANITIZER_FLAG "" )
|
|
|
|
if( WITH_ASAN )
|
|
|
|
set( SANITIZER_FLAG "-fsanitize=address" )
|
|
|
|
if ( WITH_UBSAN )
|
|
|
|
set( SANITIZER_FLAG "${SANITIZER_FLAG},undefined" )
|
|
|
|
endif( WITH_UBSAN )
|
|
|
|
elseif( WITH_MSAN )
|
|
|
|
set( SANITIZER_FLAG "-fsanitize=memory" )
|
|
|
|
elseif( WITH_UBSAN )
|
|
|
|
set( SANITIZER_FLAG "-fsanitize=undefined" )
|
|
|
|
endif( WITH_ASAN )
|
|
|
|
|
|
|
|
set( CMAKE_CXX_FLAGS "${SANITIZER_FLAG} ${CMAKE_CXX_FLAGS}" )
|
|
|
|
set( CMAKE_C_FLAGS "${SANITIZER_FLAG} ${CMAKE_C_FLAGS}" )
|
2018-06-03 13:05:14 +00:00
|
|
|
set( CMAKE_EXE_LINKER_FLAGS "${SANITIZER_FLAG} ${CMAKE_EXE_LINKER_FLAGS}" )
|
2016-12-31 21:35:24 +00:00
|
|
|
|
2016-02-27 21:15:29 +00:00
|
|
|
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER "4.5")
|
2016-02-06 02:19:29 +00:00
|
|
|
set( CMAKE_C_FLAGS "-Wno-unused-result ${CMAKE_C_FLAGS}" )
|
2016-01-25 04:03:59 +00:00
|
|
|
set( CMAKE_CXX_FLAGS "-Wno-unused-result ${CMAKE_CXX_FLAGS}" )
|
2016-02-06 02:19:29 +00:00
|
|
|
endif()
|
2020-10-17 10:33:22 +00:00
|
|
|
if( CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
|
2016-08-07 18:55:16 +00:00
|
|
|
if( APPLE OR CMAKE_CXX_COMPILER_VERSION VERSION_GREATER "3.6" )
|
|
|
|
set( CMAKE_CXX_FLAGS "-Wno-inconsistent-missing-override ${CMAKE_CXX_FLAGS}" )
|
|
|
|
endif()
|
2016-07-11 05:17:45 +00:00
|
|
|
endif()
|
2016-03-13 05:34:35 +00:00
|
|
|
set( CMAKE_C_FLAGS "-Wall -Wextra -Wno-unused -Wno-unused-parameter -Wno-missing-field-initializers -ffp-contract=off ${CMAKE_C_FLAGS}" )
|
|
|
|
set( CMAKE_CXX_FLAGS "-Wall -Wextra -Wno-unused -Wno-unused-parameter -Wno-missing-field-initializers -ffp-contract=off ${CMAKE_CXX_FLAGS}" )
|
2014-06-15 18:36:49 +00:00
|
|
|
|
2017-04-23 09:34:48 +00:00
|
|
|
if( NOT X64 AND NOT CAN_DO_MFPMATH )
|
2019-09-24 08:53:18 +00:00
|
|
|
set( CMAKE_C_FLAGS "-DNO_SSE ${CMAKE_C_FLAGS}" )
|
2017-04-23 09:34:48 +00:00
|
|
|
set( CMAKE_CXX_FLAGS "-DNO_SSE ${CMAKE_CXX_FLAGS}" )
|
|
|
|
endif()
|
|
|
|
|
2014-06-15 18:36:49 +00:00
|
|
|
# Remove extra warnings when using the official DirectX headers.
|
|
|
|
# Also, TDM-GCC 4.4.0 no longer accepts glibc-style printf formats as valid,
|
|
|
|
# which is a royal pain. The previous version I had been using was fine with them.
|
2019-04-05 18:52:43 +00:00
|
|
|
# MinGW: switch to the Windows Unicode API.
|
2014-06-15 18:36:49 +00:00
|
|
|
if( WIN32 )
|
|
|
|
set( CMAKE_CXX_FLAGS "-Wno-unknown-pragmas -Wno-comment -Wno-format ${CMAKE_CXX_FLAGS}" )
|
2019-04-05 18:52:43 +00:00
|
|
|
set( CMAKE_CXX_FLAGS "-D_UNICODE -DUNICODE ${CMAKE_CXX_FLAGS}" )
|
2019-07-15 10:29:15 +00:00
|
|
|
set( CMAKE_CXX_FLAGS "-D_WIN32_WINNT=0x0600 ${CMAKE_CXX_FLAGS}" )
|
2019-04-05 18:52:43 +00:00
|
|
|
set( CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -municode" )
|
2016-02-06 02:19:29 +00:00
|
|
|
endif()
|
2014-06-15 18:36:49 +00:00
|
|
|
|
2018-02-10 12:55:53 +00:00
|
|
|
# Detect FreeBSD and add flags
|
|
|
|
if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
|
|
|
|
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC" )
|
|
|
|
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC" )
|
|
|
|
endif()
|
2020-06-04 19:08:20 +00:00
|
|
|
|
|
|
|
if(${CMAKE_SYSTEM_NAME} MATCHES "NetBSD")
|
|
|
|
set( CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -ljemalloc")
|
|
|
|
endif()
|
2018-02-10 12:55:53 +00:00
|
|
|
|
2014-06-15 18:36:49 +00:00
|
|
|
if( NOT NO_STRIP )
|
|
|
|
set (CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} -s" )
|
|
|
|
set (CMAKE_EXE_LINKER_FLAGS_MINSIZEREL "${CMAKE_EXE_LINKER_FLAGS_MINSIZEREL} -s" )
|
2016-02-06 02:19:29 +00:00
|
|
|
endif()
|
|
|
|
endif()
|
2014-06-15 18:36:49 +00:00
|
|
|
|
2018-03-09 10:53:41 +00:00
|
|
|
# Check for thread_local keyword, it's optional at the moment
|
|
|
|
|
2023-08-14 11:07:05 +00:00
|
|
|
if ( NOT (cxx_thread_local IN_LIST CMAKE_CXX_COMPILE_FEATURES) )
|
2018-04-13 13:10:33 +00:00
|
|
|
message( SEND_ERROR "C++ compiler doesn't support thread_local storage duration specifier" )
|
2018-03-09 10:53:41 +00:00
|
|
|
endif()
|
|
|
|
|
2014-06-15 18:36:49 +00:00
|
|
|
# Check for functions that may or may not exist.
|
|
|
|
|
2019-10-05 11:47:36 +00:00
|
|
|
require_stricmp()
|
|
|
|
require_strnicmp()
|
2014-06-15 18:36:49 +00:00
|
|
|
|
|
|
|
if( NOT MSVC )
|
|
|
|
add_definitions( -D__forceinline=inline )
|
2016-02-06 02:19:29 +00:00
|
|
|
endif()
|
2014-06-15 18:36:49 +00:00
|
|
|
|
|
|
|
if( UNIX )
|
|
|
|
CHECK_LIBRARY_EXISTS( rt clock_gettime "" CLOCK_GETTIME_IN_RT )
|
|
|
|
if( NOT CLOCK_GETTIME_IN_RT )
|
|
|
|
CHECK_FUNCTION_EXISTS( clock_gettime CLOCK_GETTIME_EXISTS )
|
|
|
|
if( NOT CLOCK_GETTIME_EXISTS )
|
|
|
|
message( STATUS "Could not find clock_gettime. Timing statistics will not be available." )
|
|
|
|
add_definitions( -DNO_CLOCK_GETTIME )
|
2016-02-06 02:19:29 +00:00
|
|
|
endif()
|
2016-02-20 10:38:30 +00:00
|
|
|
else()
|
2023-08-21 18:50:36 +00:00
|
|
|
list( APPEND PROJECT_LIBRARIES rt )
|
2016-02-06 02:19:29 +00:00
|
|
|
endif()
|
|
|
|
endif()
|
2014-06-15 18:36:49 +00:00
|
|
|
|
|
|
|
# Flags
|
|
|
|
|
|
|
|
# Update gitinfo.h
|
|
|
|
|
|
|
|
add_custom_target( revision_check ALL
|
2020-02-02 05:14:37 +00:00
|
|
|
COMMAND "${CMAKE_COMMAND}" -P "${CMAKE_SOURCE_DIR}/tools/updaterevision/UpdateRevision.cmake" src/gitinfo.h
|
2014-06-15 18:36:49 +00:00
|
|
|
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
2020-02-02 05:14:37 +00:00
|
|
|
)
|
2014-06-15 18:36:49 +00:00
|
|
|
|
2021-05-21 22:48:30 +00:00
|
|
|
# required libraries
|
2014-06-15 18:36:49 +00:00
|
|
|
|
2023-09-17 11:48:39 +00:00
|
|
|
set( PROJECT_LIBRARIES ${PROJECT_LIBRARIES} miniz "${BZIP2_LIBRARIES}" "${CMAKE_DL_LIBS}" "${DRPC_LIBRARIES}")
|
2019-03-24 13:33:04 +00:00
|
|
|
if (HAVE_VULKAN)
|
2023-08-21 18:50:36 +00:00
|
|
|
list( APPEND PROJECT_LIBRARIES "zvulkan" )
|
2021-05-21 22:48:30 +00:00
|
|
|
endif()
|
|
|
|
|
|
|
|
# ZMUSIC
|
|
|
|
|
|
|
|
if( MSVC )
|
|
|
|
find_package( ZMusic )
|
|
|
|
else()
|
|
|
|
find_package( ZMusic REQUIRED )
|
|
|
|
endif()
|
|
|
|
|
|
|
|
message("Building for target architecture: ${TARGET_ARCHITECTURE}")
|
|
|
|
|
|
|
|
if( MSVC AND NOT ZMUSIC_FOUND )
|
|
|
|
# Use prebuilt library
|
|
|
|
set( ZMUSIC_ROOT_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../bin/windows/zmusic" )
|
|
|
|
set( ZMUSIC_INCLUDE_DIR ${ZMUSIC_ROOT_PATH}/include )
|
|
|
|
set( ZMUSIC_LIBRARIES zmusic )
|
|
|
|
if( X64 )
|
|
|
|
link_directories( ${ZMUSIC_ROOT_PATH}/64bit )
|
|
|
|
elseif( ARM64 )
|
|
|
|
link_directories( ${ZMUSIC_ROOT_PATH}/arm64 )
|
|
|
|
else()
|
|
|
|
link_directories( ${ZMUSIC_ROOT_PATH}/32bit )
|
|
|
|
endif()
|
|
|
|
set( ZMUSIC_FOUND TRUE )
|
2019-03-24 13:33:04 +00:00
|
|
|
endif()
|
2021-05-21 22:48:30 +00:00
|
|
|
|
|
|
|
|
2021-05-21 21:54:38 +00:00
|
|
|
# VPX
|
|
|
|
|
|
|
|
if( MSVC AND NOT VPX_FOUND )
|
|
|
|
# Use prebuilt library
|
|
|
|
set( VPX_ROOT_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../bin/Windows/vpx" )
|
|
|
|
set( VPX_INCLUDE_DIR ${VPX_ROOT_PATH}/include )
|
2022-05-10 22:18:06 +00:00
|
|
|
set( VPX_LIBRARIES libvpx )
|
|
|
|
if ( NOT ARM64 )
|
|
|
|
set (VPX_LIBRARIES ${VPX_LIBRARIES} libcompat-to-msvc )
|
|
|
|
endif()
|
2021-05-21 21:54:38 +00:00
|
|
|
if( ARM64 )
|
|
|
|
link_directories( ${VPX_ROOT_PATH}/lib/arm64 )
|
2021-05-21 22:48:30 +00:00
|
|
|
elseif( X64 )
|
2021-05-21 21:54:38 +00:00
|
|
|
link_directories( ${VPX_ROOT_PATH}/lib/64 )
|
2021-05-21 22:48:30 +00:00
|
|
|
else()
|
|
|
|
link_directories( ${VPX_ROOT_PATH}/lib/32 )
|
|
|
|
# Workaround for "error LNK2026: module unsafe for SAFESEH image."
|
|
|
|
set( CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /SAFESEH:NO" )
|
2021-05-21 21:54:38 +00:00
|
|
|
endif()
|
|
|
|
set( VPX_FOUND TRUE )
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if( VPX_FOUND )
|
|
|
|
add_definitions( "-DUSE_LIBVPX=1" )
|
2023-07-01 12:36:48 +00:00
|
|
|
include_directories( SYSTEM "${VPX_INCLUDE_DIR}" )
|
2021-05-21 22:48:30 +00:00
|
|
|
set( PROJECT_LIBRARIES ${PROJECT_LIBRARIES} ${VPX_LIBRARIES} )
|
2021-05-21 21:54:38 +00:00
|
|
|
else()
|
|
|
|
message( SEND_ERROR "Could not find libvpx" )
|
|
|
|
endif()
|
|
|
|
|
2023-08-21 18:54:16 +00:00
|
|
|
if (TARGET WebP::webp)
|
|
|
|
list( APPEND PROJECT_LIBRARIES WebP::webp WebP::webpdemux WebP::libwebpmux )
|
|
|
|
if (TARGET WebP::webpdecoder)
|
|
|
|
list( APPEND PROJECT_LIBRARIES WebP::webpdecoder)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
2023-09-17 11:48:39 +00:00
|
|
|
include_directories( SYSTEM "${BZIP2_INCLUDE_DIR}" "${LZMA_INCLUDE_DIR}" "${ZMUSIC_INCLUDE_DIR}" "${DRPC_INCLUDE_DIR}")
|
2019-02-04 09:14:52 +00:00
|
|
|
|
|
|
|
if( ${HAVE_VM_JIT} )
|
|
|
|
add_definitions( -DHAVE_VM_JIT )
|
2023-07-01 12:36:48 +00:00
|
|
|
include_directories( SYSTEM "${ASMJIT_INCLUDE_DIR}" )
|
2021-05-21 22:48:30 +00:00
|
|
|
set( PROJECT_LIBRARIES ${PROJECT_LIBRARIES} "${ASMJIT_LIBRARIES}")
|
2019-02-04 09:14:52 +00:00
|
|
|
endif()
|
2014-01-18 23:10:48 +00:00
|
|
|
|
2014-06-15 18:36:49 +00:00
|
|
|
# Start defining source files for ZDoom
|
2014-01-18 23:10:48 +00:00
|
|
|
set( PLAT_WIN32_SOURCES
|
2020-04-22 20:56:15 +00:00
|
|
|
win32/i_steam.cpp
|
2020-04-23 20:26:30 +00:00
|
|
|
common/platform/win32/hardware.cpp
|
|
|
|
common/platform/win32/i_input.cpp
|
|
|
|
common/platform/win32/i_keyboard.cpp
|
|
|
|
common/platform/win32/i_mouse.cpp
|
|
|
|
common/platform/win32/i_dijoy.cpp
|
|
|
|
common/platform/win32/i_rawps2.cpp
|
|
|
|
common/platform/win32/i_xinput.cpp
|
|
|
|
common/platform/win32/i_main.cpp
|
2022-05-14 00:25:56 +00:00
|
|
|
common/platform/win32/i_mainwindow.cpp
|
2020-04-23 20:26:30 +00:00
|
|
|
common/platform/win32/i_system.cpp
|
|
|
|
common/platform/win32/i_specialpaths.cpp
|
|
|
|
common/platform/win32/st_start.cpp
|
|
|
|
common/platform/win32/gl_sysfb.cpp
|
|
|
|
common/platform/win32/base_sysfb.cpp
|
|
|
|
common/platform/win32/win32basevideo.cpp
|
|
|
|
common/platform/win32/win32glvideo.cpp
|
2022-07-28 08:31:56 +00:00
|
|
|
)
|
2020-04-23 20:26:30 +00:00
|
|
|
|
2019-03-24 13:33:04 +00:00
|
|
|
if (HAVE_VULKAN)
|
2023-08-14 10:20:50 +00:00
|
|
|
list (APPEND PLAT_WIN32_SOURCES common/platform/win32/win32vulkanvideo.cpp )
|
2019-03-24 13:33:04 +00:00
|
|
|
endif()
|
2020-12-10 14:16:28 +00:00
|
|
|
|
|
|
|
# todo: implement an actual crash catcher for ARM
|
|
|
|
# for now this is purely experimental
|
2021-05-21 22:48:30 +00:00
|
|
|
if (NOT ${TARGET_ARCHITECTURE} MATCHES "arm" )
|
2020-12-10 14:16:28 +00:00
|
|
|
set (PLAT_WIN32_SOURCES ${PLAT_WIN32_SOURCES} common/platform/win32/i_crash.cpp )
|
|
|
|
endif()
|
2021-05-21 22:48:30 +00:00
|
|
|
if (MSVC AND ${TARGET_ARCHITECTURE} MATCHES "arm")
|
2021-01-02 01:52:10 +00:00
|
|
|
set (PLAT_WIN32_SOURCES ${PLAT_WIN32_SOURCES} common/platform/win32/i_crash_arm.cpp )
|
2020-12-10 14:16:28 +00:00
|
|
|
add_definitions( -DNO_SSE -D__ARM__ -DRAPIDJSON_ENDIAN=RAPIDJSON_LITTLEENDIAN)
|
|
|
|
endif()
|
2019-03-24 13:33:04 +00:00
|
|
|
|
2014-12-15 15:40:30 +00:00
|
|
|
set( PLAT_POSIX_SOURCES
|
2020-01-26 08:49:20 +00:00
|
|
|
posix/i_steam.cpp
|
2020-04-23 19:48:50 +00:00
|
|
|
common/platform/posix/i_system_posix.cpp )
|
2014-01-18 23:10:48 +00:00
|
|
|
set( PLAT_SDL_SOURCES
|
2020-04-23 19:48:50 +00:00
|
|
|
common/platform/posix/sdl/crashcatcher.c
|
|
|
|
common/platform/posix/sdl/hardware.cpp
|
|
|
|
common/platform/posix/sdl/i_gui.cpp
|
|
|
|
common/platform/posix/sdl/i_input.cpp
|
|
|
|
common/platform/posix/sdl/i_joystick.cpp
|
|
|
|
common/platform/posix/sdl/i_main.cpp
|
|
|
|
common/platform/posix/sdl/i_system.cpp
|
|
|
|
common/platform/posix/sdl/sdlglvideo.cpp
|
|
|
|
common/platform/posix/sdl/st_start.cpp )
|
2016-09-03 10:00:08 +00:00
|
|
|
set( PLAT_UNIX_SOURCES
|
2020-04-23 19:48:50 +00:00
|
|
|
common/platform/posix/unix/i_specialpaths.cpp
|
|
|
|
common/platform/posix/unix/gtk_dialogs.cpp )
|
2014-12-18 09:52:29 +00:00
|
|
|
set( PLAT_OSX_SOURCES
|
2020-04-23 19:48:50 +00:00
|
|
|
common/platform/posix/osx/iwadpicker_cocoa.mm
|
|
|
|
common/platform/posix/osx/i_specialpaths.mm
|
2014-12-18 09:52:29 +00:00
|
|
|
posix/osx/zdoom.icns )
|
2014-08-03 09:38:56 +00:00
|
|
|
set( PLAT_COCOA_SOURCES
|
2020-04-23 19:48:50 +00:00
|
|
|
common/platform/posix/cocoa/i_input.mm
|
|
|
|
common/platform/posix/cocoa/i_joystick.cpp
|
|
|
|
common/platform/posix/cocoa/i_main.mm
|
|
|
|
common/platform/posix/cocoa/i_system.mm
|
|
|
|
common/platform/posix/cocoa/i_video.mm
|
|
|
|
common/platform/posix/cocoa/st_console.mm
|
|
|
|
common/platform/posix/cocoa/st_start.mm )
|
2014-08-03 09:38:56 +00:00
|
|
|
|
2014-06-15 18:36:49 +00:00
|
|
|
if( WIN32 )
|
2020-04-23 20:26:30 +00:00
|
|
|
set( SYSTEM_SOURCES_DIR common/platform/win32 )
|
2014-01-18 23:10:48 +00:00
|
|
|
set( SYSTEM_SOURCES ${PLAT_WIN32_SOURCES} )
|
2016-09-03 10:00:08 +00:00
|
|
|
set( OTHER_SYSTEM_SOURCES ${PLAT_POSIX_SOURCES} ${PLAT_SDL_SOURCES} ${PLAT_OSX_SOURCES} ${PLAT_COCOA_SOURCES} ${PLAT_UNIX_SOURCES} )
|
2018-02-23 08:21:42 +00:00
|
|
|
|
2016-11-23 02:22:39 +00:00
|
|
|
set( SYSTEM_SOURCES ${SYSTEM_SOURCES} win32/zdoom.rc )
|
2014-12-14 09:29:28 +00:00
|
|
|
elseif( APPLE )
|
|
|
|
if( OSX_COCOA_BACKEND )
|
2020-04-23 19:48:50 +00:00
|
|
|
set( SYSTEM_SOURCES_DIR common/platform/posix common/platform/posix/cocoa )
|
2014-12-14 09:29:28 +00:00
|
|
|
set( SYSTEM_SOURCES ${PLAT_COCOA_SOURCES} )
|
2016-09-03 10:00:08 +00:00
|
|
|
set( OTHER_SYSTEM_SOURCES ${PLAT_WIN32_SOURCES} ${PLAT_SDL_SOURCES} ${PLAT_UNIX_SOURCES} )
|
2016-02-06 02:19:29 +00:00
|
|
|
else()
|
2020-04-23 19:48:50 +00:00
|
|
|
set( SYSTEM_SOURCES_DIR common/platform/posix common/platform/posix/sdl )
|
2014-12-14 09:29:28 +00:00
|
|
|
set( SYSTEM_SOURCES ${PLAT_SDL_SOURCES} )
|
2020-04-23 19:48:50 +00:00
|
|
|
set( PLAT_OSX_SOURCES ${PLAT_OSX_SOURCES} common/platform/posix/sdl/i_system.mm )
|
2016-09-03 10:00:08 +00:00
|
|
|
set( OTHER_SYSTEM_SOURCES ${PLAT_WIN32_SOURCES} ${PLAT_COCOA_SOURCES} ${PLAT_UNIX_SOURCES} )
|
2016-02-06 02:19:29 +00:00
|
|
|
endif()
|
2014-12-14 09:29:28 +00:00
|
|
|
|
2017-04-16 23:06:54 +00:00
|
|
|
set( SYSTEM_SOURCES ${SYSTEM_SOURCES} ${PLAT_POSIX_SOURCES} ${PLAT_OSX_SOURCES} )
|
2014-12-14 09:29:28 +00:00
|
|
|
|
2014-12-18 09:52:29 +00:00
|
|
|
set_source_files_properties( posix/osx/zdoom.icns PROPERTIES MACOSX_PACKAGE_LOCATION Resources )
|
2020-04-23 19:48:50 +00:00
|
|
|
set_source_files_properties( common/platform/posix/osx/iwadpicker_cocoa.mm PROPERTIES COMPILE_FLAGS -fobjc-exceptions )
|
2016-02-06 02:19:29 +00:00
|
|
|
else()
|
2022-11-13 06:44:36 +00:00
|
|
|
option (SYSTEMINSTALL "Set global progdir based on CMake Install Dir" OFF)
|
|
|
|
|
2020-04-23 19:48:50 +00:00
|
|
|
set( SYSTEM_SOURCES_DIR common/platform/posix common/platform/posix/sdl )
|
2016-09-03 10:00:08 +00:00
|
|
|
set( SYSTEM_SOURCES ${PLAT_POSIX_SOURCES} ${PLAT_SDL_SOURCES} ${PLAT_UNIX_SOURCES} )
|
2014-12-18 09:52:29 +00:00
|
|
|
set( OTHER_SYSTEM_SOURCES ${PLAT_WIN32_SOURCES} ${PLAT_OSX_SOURCES} ${PLAT_COCOA_SOURCES} )
|
2022-11-13 06:44:36 +00:00
|
|
|
|
|
|
|
if ( SYSTEMINSTALL )
|
|
|
|
add_definitions( -DPROGDIR="${CMAKE_INSTALL_PREFIX}/${INSTALL_PK3_PATH}" )
|
|
|
|
endif()
|
2016-02-06 02:19:29 +00:00
|
|
|
endif()
|
2014-06-15 18:36:49 +00:00
|
|
|
|
2015-12-25 13:41:06 +00:00
|
|
|
if( HAVE_MMX )
|
|
|
|
add_definitions( -DHAVE_MMX=1 )
|
|
|
|
|
|
|
|
set( SYSTEM_SOURCES ${SYSTEM_SOURCES}
|
2020-04-11 17:04:48 +00:00
|
|
|
common/textures/hires/hqnx_asm/hq2x_asm.cpp
|
|
|
|
common/textures/hires/hqnx_asm/hq3x_asm.cpp
|
|
|
|
common/textures/hires/hqnx_asm/hq4x_asm.cpp
|
|
|
|
common/textures/hires/hqnx_asm/hqnx_asm_Image.cpp)
|
2015-12-25 13:41:06 +00:00
|
|
|
|
2021-05-21 22:48:30 +00:00
|
|
|
if( DEM_CMAKE_COMPILER_IS_GNUCXX_COMPATIBLE )
|
2015-12-25 13:41:06 +00:00
|
|
|
set_source_files_properties(
|
2020-04-11 17:04:48 +00:00
|
|
|
common/textures/hires/hqnx_asm/hq2x_asm.cpp
|
|
|
|
common/textures/hires/hqnx_asm/hq3x_asm.cpp
|
|
|
|
common/textures/hires/hqnx_asm/hq4x_asm.cpp
|
|
|
|
common/textures/hires/hqresize.cpp
|
2015-12-25 13:41:06 +00:00
|
|
|
PROPERTIES COMPILE_FLAGS "-mmmx" )
|
2021-05-21 22:48:30 +00:00
|
|
|
endif( DEM_CMAKE_COMPILER_IS_GNUCXX_COMPATIBLE )
|
2015-12-25 13:41:06 +00:00
|
|
|
endif( HAVE_MMX )
|
2017-01-22 09:14:48 +00:00
|
|
|
|
2017-07-14 12:14:34 +00:00
|
|
|
if( HAVE_PARALLEL_FOR )
|
|
|
|
add_definitions( -DHAVE_PARALLEL_FOR=1 )
|
|
|
|
elseif( HAVE_DISPATCH_APPLY )
|
|
|
|
add_definitions( -DHAVE_DISPATCH_APPLY=1 )
|
|
|
|
else()
|
|
|
|
option( NO_OPENMP "Disable usage of OpenMP" OFF )
|
|
|
|
|
|
|
|
if( NOT NO_OPENMP )
|
|
|
|
include( FindOpenMP )
|
|
|
|
|
|
|
|
if( OPENMP_FOUND )
|
|
|
|
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}" )
|
|
|
|
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}" )
|
|
|
|
endif( OPENMP_FOUND )
|
|
|
|
endif( NOT NO_OPENMP )
|
|
|
|
endif()
|
|
|
|
|
2014-06-15 18:36:49 +00:00
|
|
|
add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/xlat_parser.c ${CMAKE_CURRENT_BINARY_DIR}/xlat_parser.h
|
2019-02-02 00:14:51 +00:00
|
|
|
COMMAND lemon -C${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/gamedata/xlat/xlat_parser.y
|
|
|
|
DEPENDS lemon ${CMAKE_CURRENT_SOURCE_DIR}/gamedata/xlat/xlat_parser.y )
|
2014-06-15 18:36:49 +00:00
|
|
|
|
2015-04-28 07:40:57 +00:00
|
|
|
add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/zcc-parse.c ${CMAKE_CURRENT_BINARY_DIR}/zcc-parse.h
|
2020-04-11 17:38:59 +00:00
|
|
|
COMMAND lemon -C${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/common/scripting/frontend/zcc-parse.lemon
|
|
|
|
DEPENDS lemon ${CMAKE_CURRENT_SOURCE_DIR}/common/scripting/frontend/zcc-parse.lemon )
|
2014-12-22 02:43:24 +00:00
|
|
|
|
2014-06-15 18:36:49 +00:00
|
|
|
add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/sc_man_scanner.h
|
2020-04-11 11:46:15 +00:00
|
|
|
COMMAND re2c --no-generation-date -s -o ${CMAKE_CURRENT_BINARY_DIR}/sc_man_scanner.h ${CMAKE_CURRENT_SOURCE_DIR}/common/engine/sc_man_scanner.re
|
|
|
|
DEPENDS re2c ${CMAKE_CURRENT_SOURCE_DIR}/common/engine/sc_man_scanner.re )
|
2014-06-15 18:36:49 +00:00
|
|
|
|
|
|
|
include_directories( ${CMAKE_CURRENT_BINARY_DIR} )
|
|
|
|
|
2018-03-16 13:47:23 +00:00
|
|
|
option( SEND_ANON_STATS "Enable sending of anonymous hardware statistics" ON )
|
|
|
|
|
|
|
|
if( NOT SEND_ANON_STATS )
|
|
|
|
add_definitions( -DNO_SEND_STATS )
|
|
|
|
endif()
|
|
|
|
|
2014-06-15 18:36:49 +00:00
|
|
|
# Project files should be aware of the header files. We can GLOB these since
|
|
|
|
# there's generally a new cpp for every header so this file will get changed
|
|
|
|
file( GLOB HEADER_FILES
|
2019-07-14 12:39:21 +00:00
|
|
|
console/*.h
|
2019-07-14 11:24:18 +00:00
|
|
|
playsim/*.h
|
2019-07-14 11:59:16 +00:00
|
|
|
playsim/bots/*.h
|
|
|
|
playsim/fragglescript/*.h
|
|
|
|
playsim/mapthinkers/*.h
|
2017-01-20 21:59:31 +00:00
|
|
|
g_statusbar/*.h
|
2019-02-01 17:13:12 +00:00
|
|
|
gamedata/*.h
|
2019-02-01 17:31:57 +00:00
|
|
|
gamedata/resourcefiles/*.h
|
2019-02-17 10:43:04 +00:00
|
|
|
gamedata/fonts/*.h
|
2019-02-02 00:14:51 +00:00
|
|
|
gamedata/xlat/*.h
|
2014-06-15 18:36:49 +00:00
|
|
|
intermission/*.h
|
2018-12-27 16:11:10 +00:00
|
|
|
maploader/*.h
|
2014-06-15 18:36:49 +00:00
|
|
|
menu/*.h
|
2019-07-14 14:07:18 +00:00
|
|
|
sound/*.h
|
|
|
|
sound/backend/*.h*
|
2014-12-15 15:40:30 +00:00
|
|
|
posix/*.h
|
2014-06-15 18:36:49 +00:00
|
|
|
r_data/*.h
|
2020-04-11 16:30:22 +00:00
|
|
|
common/audio/sound/thirdparty/*.h
|
|
|
|
common/audio/sound/*.h
|
2020-04-11 16:26:09 +00:00
|
|
|
common/audio/music/*.h*
|
2020-04-11 17:49:45 +00:00
|
|
|
common/2d/*.h
|
2020-04-11 16:11:43 +00:00
|
|
|
common/console/*.h
|
2021-05-21 21:54:38 +00:00
|
|
|
common/cutscenes/*.h
|
2020-04-11 10:53:45 +00:00
|
|
|
common/utility/*.h
|
2020-04-11 11:43:47 +00:00
|
|
|
common/engine/*.h
|
2020-04-22 18:42:13 +00:00
|
|
|
common/menu/*.h
|
2020-10-28 14:02:23 +00:00
|
|
|
common/statusbar/*.h
|
2020-04-11 17:11:59 +00:00
|
|
|
common/fonts/*.h
|
2020-04-11 17:21:41 +00:00
|
|
|
common/objects/*.h
|
2023-08-22 19:20:28 +00:00
|
|
|
common/filesystem/include/*.h
|
|
|
|
common/filesystem/source/*.h
|
2020-04-23 19:48:50 +00:00
|
|
|
common/platform/posix/cocoa/*.h
|
|
|
|
common/platform/posix/sdl/*.h
|
2020-04-23 20:26:30 +00:00
|
|
|
common/platform/win32/*.h
|
2020-04-27 18:50:46 +00:00
|
|
|
common/models/*.h
|
2020-04-11 18:23:26 +00:00
|
|
|
common/textures/*.h
|
2022-05-18 18:38:46 +00:00
|
|
|
common/startscreen/*.h
|
2020-04-11 17:04:48 +00:00
|
|
|
common/textures/hires/hqnx/*.h
|
|
|
|
common/textures/hires/hqnx_asm/*.h
|
|
|
|
common/textures/hires/xbr/*.h
|
2020-04-11 10:52:48 +00:00
|
|
|
common/thirdparty/*.h
|
|
|
|
common/thirdparty/rapidjson/*.h
|
2020-04-11 17:21:41 +00:00
|
|
|
common/thirdparty/math/*h
|
2021-05-21 21:54:38 +00:00
|
|
|
common/thirdparty/libsmackerdec/include/*.h
|
2020-04-25 20:17:41 +00:00
|
|
|
common/rendering/*.h
|
2020-04-10 20:10:49 +00:00
|
|
|
common/rendering/gl_load/*.h
|
2021-08-03 16:46:45 +00:00
|
|
|
common/rendering/gles/*.h
|
2020-04-25 20:17:41 +00:00
|
|
|
common/rendering/hwrenderer/data/*.h
|
2020-04-29 20:17:35 +00:00
|
|
|
common/rendering/vulkan/*.h
|
|
|
|
common/rendering/vulkan/system/*.h
|
|
|
|
common/rendering/vulkan/renderer/*.h
|
|
|
|
common/rendering/vulkan/shaders/*.h
|
|
|
|
common/rendering/vulkan/textures/*.h
|
2020-04-11 17:21:41 +00:00
|
|
|
common/scripting/core/*h
|
|
|
|
common/scripting/vm/*h
|
|
|
|
common/scripting/jit/*h
|
|
|
|
common/scripting/interface/*.h
|
2020-04-11 17:33:06 +00:00
|
|
|
common/scripting/backend/*.h
|
2020-04-11 17:38:59 +00:00
|
|
|
common/scripting/frontend/*.h
|
2021-05-21 21:54:38 +00:00
|
|
|
|
2019-01-31 19:33:52 +00:00
|
|
|
utility/*.h
|
2016-10-12 17:22:33 +00:00
|
|
|
scripting/*.h
|
2017-02-08 11:24:08 +00:00
|
|
|
scripting/backend/*.h
|
2016-10-12 22:53:59 +00:00
|
|
|
scripting/decorate/*.h
|
|
|
|
scripting/zscript/*.h
|
2018-03-11 17:32:00 +00:00
|
|
|
sound/midisources/*.h
|
2019-07-14 19:09:49 +00:00
|
|
|
rendering/*.h
|
2019-02-23 17:08:57 +00:00
|
|
|
rendering/2d/*.h
|
2019-01-31 18:58:17 +00:00
|
|
|
rendering/swrenderer/*.h
|
|
|
|
rendering/swrenderer/textures/*.h
|
|
|
|
rendering/swrenderer/drawers/*.h
|
|
|
|
rendering/swrenderer/scene/*.h
|
|
|
|
rendering/swrenderer/segments/*.h
|
|
|
|
rendering/swrenderer/line/*.h
|
|
|
|
rendering/swrenderer/plane/*.h
|
|
|
|
rendering/swrenderer/things/*.h
|
|
|
|
rendering/swrenderer/viewport/*.h
|
2020-04-29 15:36:58 +00:00
|
|
|
rendering/hwrenderer/*.h
|
2019-01-31 18:58:17 +00:00
|
|
|
rendering/hwrenderer/scene/*.h
|
2014-06-15 18:36:49 +00:00
|
|
|
*.h
|
|
|
|
)
|
|
|
|
|
2017-03-09 23:43:36 +00:00
|
|
|
set ( SWRENDER_SOURCES
|
2019-01-31 18:58:17 +00:00
|
|
|
rendering/swrenderer/r_swcolormaps.cpp
|
|
|
|
rendering/swrenderer/r_swrenderer.cpp
|
|
|
|
rendering/swrenderer/r_renderthread.cpp
|
|
|
|
rendering/swrenderer/drawers/r_draw.cpp
|
|
|
|
rendering/swrenderer/drawers/r_draw_pal.cpp
|
|
|
|
rendering/swrenderer/drawers/r_draw_rgba.cpp
|
|
|
|
rendering/swrenderer/scene/r_3dfloors.cpp
|
|
|
|
rendering/swrenderer/scene/r_light.cpp
|
|
|
|
rendering/swrenderer/scene/r_opaque_pass.cpp
|
|
|
|
rendering/swrenderer/scene/r_portal.cpp
|
|
|
|
rendering/swrenderer/scene/r_scene.cpp
|
|
|
|
rendering/swrenderer/scene/r_translucent_pass.cpp
|
|
|
|
rendering/swrenderer/viewport/r_drawerargs.cpp
|
|
|
|
rendering/swrenderer/viewport/r_skydrawer.cpp
|
|
|
|
rendering/swrenderer/viewport/r_spandrawer.cpp
|
|
|
|
rendering/swrenderer/viewport/r_spritedrawer.cpp
|
|
|
|
rendering/swrenderer/viewport/r_viewport.cpp
|
|
|
|
rendering/swrenderer/viewport/r_walldrawer.cpp
|
|
|
|
rendering/swrenderer/line/r_line.cpp
|
|
|
|
rendering/swrenderer/line/r_farclip_line.cpp
|
|
|
|
rendering/swrenderer/line/r_walldraw.cpp
|
|
|
|
rendering/swrenderer/line/r_wallsetup.cpp
|
|
|
|
rendering/swrenderer/line/r_fogboundary.cpp
|
|
|
|
rendering/swrenderer/line/r_renderdrawsegment.cpp
|
|
|
|
rendering/swrenderer/segments/r_clipsegment.cpp
|
|
|
|
rendering/swrenderer/segments/r_drawsegment.cpp
|
|
|
|
rendering/swrenderer/segments/r_portalsegment.cpp
|
|
|
|
rendering/swrenderer/things/r_visiblesprite.cpp
|
|
|
|
rendering/swrenderer/things/r_visiblespritelist.cpp
|
|
|
|
rendering/swrenderer/things/r_voxel.cpp
|
|
|
|
rendering/swrenderer/things/r_particle.cpp
|
|
|
|
rendering/swrenderer/things/r_playersprite.cpp
|
|
|
|
rendering/swrenderer/things/r_sprite.cpp
|
|
|
|
rendering/swrenderer/things/r_wallsprite.cpp
|
|
|
|
rendering/swrenderer/things/r_decal.cpp
|
|
|
|
rendering/swrenderer/plane/r_visibleplane.cpp
|
|
|
|
rendering/swrenderer/plane/r_visibleplanelist.cpp
|
|
|
|
rendering/swrenderer/plane/r_skyplane.cpp
|
|
|
|
rendering/swrenderer/plane/r_planerenderer.cpp
|
|
|
|
rendering/swrenderer/plane/r_flatplane.cpp
|
|
|
|
rendering/swrenderer/plane/r_slopeplane.cpp
|
2017-03-09 23:43:36 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
# These files will be flagged as "headers" so that they appear in project files
|
|
|
|
# without being compiled.
|
|
|
|
set( NOT_COMPILED_SOURCE_FILES
|
|
|
|
${OTHER_SYSTEM_SOURCES}
|
|
|
|
${SWRENDER_SOURCES}
|
|
|
|
sc_man_scanner.h
|
2020-04-11 11:46:15 +00:00
|
|
|
common/engine/sc_man_scanner.re
|
2017-03-09 23:43:36 +00:00
|
|
|
g_statusbar/sbarinfo_commands.cpp
|
2019-02-02 00:14:51 +00:00
|
|
|
gamedata/xlat/xlat_parser.y
|
2017-03-09 23:43:36 +00:00
|
|
|
xlat_parser.c
|
|
|
|
xlat_parser.h
|
2020-04-11 17:38:59 +00:00
|
|
|
common/scripting/frontend/zcc-parse.lemon
|
2017-03-09 23:43:36 +00:00
|
|
|
zcc-parse.c
|
|
|
|
zcc-parse.h
|
2020-04-23 20:26:30 +00:00
|
|
|
common/platform/win32/zutil.natvis
|
2017-03-09 23:43:36 +00:00
|
|
|
)
|
|
|
|
|
2019-02-04 09:14:52 +00:00
|
|
|
set( VM_JIT_SOURCES
|
2020-04-11 17:21:41 +00:00
|
|
|
common/scripting/jit/jit.cpp
|
|
|
|
common/scripting/jit/jit_runtime.cpp
|
|
|
|
common/scripting/jit/jit_call.cpp
|
|
|
|
common/scripting/jit/jit_flow.cpp
|
|
|
|
common/scripting/jit/jit_load.cpp
|
|
|
|
common/scripting/jit/jit_math.cpp
|
|
|
|
common/scripting/jit/jit_move.cpp
|
|
|
|
common/scripting/jit/jit_store.cpp
|
2019-02-04 09:14:52 +00:00
|
|
|
)
|
|
|
|
|
2016-04-10 11:54:42 +00:00
|
|
|
# Enable fast math for some sources
|
|
|
|
set( FASTMATH_SOURCES
|
2019-01-31 18:58:17 +00:00
|
|
|
rendering/swrenderer/r_all.cpp
|
|
|
|
rendering/swrenderer/r_swscene.cpp
|
2020-04-11 17:04:48 +00:00
|
|
|
common/textures/hires/hqnx/init.cpp
|
|
|
|
common/textures/hires/hqnx/hq2x.cpp
|
|
|
|
common/textures/hires/hqnx/hq3x.cpp
|
|
|
|
common/textures/hires/hqnx/hq4x.cpp
|
|
|
|
common/textures/hires/xbr/xbrz.cpp
|
|
|
|
common/textures/hires/xbr/xbrz_old.cpp
|
2020-04-10 20:10:49 +00:00
|
|
|
common/rendering/gl_load/gl_load.c
|
2020-04-29 15:36:58 +00:00
|
|
|
rendering/hwrenderer/hw_dynlightdata.cpp
|
2019-01-31 18:58:17 +00:00
|
|
|
rendering/hwrenderer/scene/hw_bsp.cpp
|
|
|
|
rendering/hwrenderer/scene/hw_fakeflat.cpp
|
|
|
|
rendering/hwrenderer/scene/hw_decal.cpp
|
|
|
|
rendering/hwrenderer/scene/hw_drawinfo.cpp
|
|
|
|
rendering/hwrenderer/scene/hw_drawlist.cpp
|
|
|
|
rendering/hwrenderer/scene/hw_clipper.cpp
|
|
|
|
rendering/hwrenderer/scene/hw_flats.cpp
|
|
|
|
rendering/hwrenderer/scene/hw_portal.cpp
|
|
|
|
rendering/hwrenderer/scene/hw_renderhacks.cpp
|
|
|
|
rendering/hwrenderer/scene/hw_sky.cpp
|
|
|
|
rendering/hwrenderer/scene/hw_skyportal.cpp
|
|
|
|
rendering/hwrenderer/scene/hw_sprites.cpp
|
|
|
|
rendering/hwrenderer/scene/hw_spritelight.cpp
|
|
|
|
rendering/hwrenderer/scene/hw_walls.cpp
|
|
|
|
rendering/hwrenderer/scene/hw_walls_vertex.cpp
|
|
|
|
rendering/hwrenderer/scene/hw_weapon.cpp
|
2020-04-11 10:53:45 +00:00
|
|
|
common/utility/matrix.cpp
|
2019-09-23 07:26:37 +00:00
|
|
|
)
|
2019-03-24 13:33:04 +00:00
|
|
|
|
2020-04-29 15:36:58 +00:00
|
|
|
#Vulkan stuff must go into a separate list because it needs to be disabled for some platforms
|
2019-03-24 13:33:04 +00:00
|
|
|
set (VULKAN_SOURCES
|
2022-12-03 05:40:04 +00:00
|
|
|
common/rendering/vulkan/system/vk_renderdevice.cpp
|
2022-06-09 20:21:04 +00:00
|
|
|
common/rendering/vulkan/system/vk_commandbuffer.cpp
|
2022-06-09 23:22:19 +00:00
|
|
|
common/rendering/vulkan/system/vk_hwbuffer.cpp
|
|
|
|
common/rendering/vulkan/system/vk_buffer.cpp
|
2020-04-29 20:17:35 +00:00
|
|
|
common/rendering/vulkan/renderer/vk_renderstate.cpp
|
|
|
|
common/rendering/vulkan/renderer/vk_renderpass.cpp
|
|
|
|
common/rendering/vulkan/renderer/vk_streambuffer.cpp
|
|
|
|
common/rendering/vulkan/renderer/vk_postprocess.cpp
|
2022-06-09 22:12:03 +00:00
|
|
|
common/rendering/vulkan/renderer/vk_pprenderstate.cpp
|
2022-06-06 19:30:55 +00:00
|
|
|
common/rendering/vulkan/renderer/vk_descriptorset.cpp
|
2022-06-05 21:24:53 +00:00
|
|
|
common/rendering/vulkan/renderer/vk_raytrace.cpp
|
2020-04-29 20:17:35 +00:00
|
|
|
common/rendering/vulkan/shaders/vk_shader.cpp
|
2022-06-09 22:12:03 +00:00
|
|
|
common/rendering/vulkan/shaders/vk_ppshader.cpp
|
2020-04-29 20:17:35 +00:00
|
|
|
common/rendering/vulkan/textures/vk_samplers.cpp
|
|
|
|
common/rendering/vulkan/textures/vk_hwtexture.cpp
|
2022-06-09 22:12:03 +00:00
|
|
|
common/rendering/vulkan/textures/vk_pptexture.cpp
|
2020-04-29 20:17:35 +00:00
|
|
|
common/rendering/vulkan/textures/vk_imagetransition.cpp
|
2022-06-09 20:21:04 +00:00
|
|
|
common/rendering/vulkan/textures/vk_renderbuffers.cpp
|
2022-06-09 23:22:19 +00:00
|
|
|
common/rendering/vulkan/textures/vk_texture.cpp
|
2022-12-03 05:40:04 +00:00
|
|
|
common/rendering/vulkan/textures/vk_framebuffer.cpp
|
2016-02-12 11:51:09 +00:00
|
|
|
)
|
2016-04-10 11:08:54 +00:00
|
|
|
|
2021-08-03 16:46:45 +00:00
|
|
|
if (HAVE_GLES2)
|
|
|
|
set (GLES_SOURCES
|
|
|
|
common/rendering/gles/gles_system.cpp
|
|
|
|
common/rendering/gles/gles_renderer.cpp
|
|
|
|
common/rendering/gles/gles_framebuffer.cpp
|
|
|
|
common/rendering/gles/gles_renderstate.cpp
|
|
|
|
common/rendering/gles/gles_renderbuffers.cpp
|
|
|
|
common/rendering/gles/gles_postprocess.cpp
|
|
|
|
common/rendering/gles/gles_postprocessstate.cpp
|
|
|
|
common/rendering/gles/gles_buffers.cpp
|
|
|
|
common/rendering/gles/gles_hwtexture.cpp
|
|
|
|
common/rendering/gles/gles_shader.cpp
|
|
|
|
common/rendering/gles/gles_shaderprogram.cpp
|
|
|
|
common/rendering/gles/gles_samplers.cpp
|
|
|
|
common/rendering/gles/glad/src/glad.c
|
|
|
|
)
|
|
|
|
|
2023-08-14 10:20:50 +00:00
|
|
|
list (APPEND FASTMATH_SOURCES ${GLES_SOURCES})
|
2021-08-03 16:46:45 +00:00
|
|
|
endif()
|
|
|
|
|
2019-03-24 13:33:04 +00:00
|
|
|
if (HAVE_VULKAN)
|
2023-08-14 10:20:50 +00:00
|
|
|
list (APPEND FASTMATH_SOURCES ${VULKAN_SOURCES})
|
2019-03-24 13:33:04 +00:00
|
|
|
endif()
|
|
|
|
|
2022-07-28 08:51:55 +00:00
|
|
|
set (FASTMATH_SOURCES ${FASTMATH_SOURCES})
|
2019-05-22 04:29:52 +00:00
|
|
|
|
2016-04-10 11:08:54 +00:00
|
|
|
set (PCH_SOURCES
|
2022-03-18 07:36:24 +00:00
|
|
|
common/thirdparty/richpresence.cpp
|
2014-06-15 18:36:49 +00:00
|
|
|
am_map.cpp
|
2019-07-14 11:59:16 +00:00
|
|
|
playsim/bots/b_bot.cpp
|
|
|
|
playsim/bots/b_func.cpp
|
|
|
|
playsim/bots/b_game.cpp
|
|
|
|
playsim/bots/b_move.cpp
|
|
|
|
playsim/bots/b_think.cpp
|
2014-06-15 18:36:49 +00:00
|
|
|
bbannouncer.cpp
|
2020-04-11 16:13:50 +00:00
|
|
|
console/c_cmds.cpp
|
2020-10-25 11:18:06 +00:00
|
|
|
console/c_notifybuffer.cpp
|
2019-07-14 12:39:21 +00:00
|
|
|
console/c_functions.cpp
|
2014-06-15 18:36:49 +00:00
|
|
|
ct_chat.cpp
|
|
|
|
d_iwad.cpp
|
|
|
|
d_main.cpp
|
2021-09-05 12:18:40 +00:00
|
|
|
d_defcvars.cpp
|
2018-07-21 11:21:37 +00:00
|
|
|
d_anonstats.cpp
|
2014-06-15 18:36:49 +00:00
|
|
|
d_net.cpp
|
|
|
|
d_netinfo.cpp
|
|
|
|
d_protocol.cpp
|
|
|
|
doomstat.cpp
|
2019-01-31 01:05:16 +00:00
|
|
|
g_cvars.cpp
|
|
|
|
g_dumpinfo.cpp
|
2014-06-15 18:36:49 +00:00
|
|
|
g_game.cpp
|
|
|
|
g_hub.cpp
|
|
|
|
g_level.cpp
|
|
|
|
gameconfigfile.cpp
|
|
|
|
hu_scores.cpp
|
|
|
|
m_cheat.cpp
|
|
|
|
m_misc.cpp
|
2019-07-14 19:09:49 +00:00
|
|
|
playsim/p_acs.cpp
|
2019-07-14 11:59:16 +00:00
|
|
|
playsim/p_actionfunctions.cpp
|
2014-06-15 18:36:49 +00:00
|
|
|
p_conversation.cpp
|
2019-07-14 11:59:16 +00:00
|
|
|
playsim/p_destructible.cpp
|
|
|
|
playsim/p_effect.cpp
|
|
|
|
playsim/p_enemy.cpp
|
|
|
|
playsim/p_interaction.cpp
|
|
|
|
playsim/p_lnspec.cpp
|
|
|
|
playsim/p_map.cpp
|
|
|
|
playsim/p_maputl.cpp
|
|
|
|
playsim/p_mobj.cpp
|
2018-12-19 17:41:53 +00:00
|
|
|
p_openmap.cpp
|
2019-07-14 11:59:16 +00:00
|
|
|
playsim/p_pspr.cpp
|
2014-06-15 18:36:49 +00:00
|
|
|
p_saveg.cpp
|
2018-12-28 08:17:10 +00:00
|
|
|
p_setup.cpp
|
2019-07-14 11:59:16 +00:00
|
|
|
playsim/p_spec.cpp
|
2014-06-15 18:36:49 +00:00
|
|
|
p_states.cpp
|
2019-07-14 11:59:16 +00:00
|
|
|
playsim/p_things.cpp
|
2014-06-15 18:36:49 +00:00
|
|
|
p_tick.cpp
|
2019-07-14 11:59:16 +00:00
|
|
|
playsim/p_user.cpp
|
2019-07-14 19:09:49 +00:00
|
|
|
rendering/r_utility.cpp
|
|
|
|
rendering/r_sky.cpp
|
2019-07-14 15:48:55 +00:00
|
|
|
sound/s_advsound.cpp
|
|
|
|
sound/s_sndseq.cpp
|
2019-12-08 12:28:52 +00:00
|
|
|
sound/s_doomsound.cpp
|
2020-04-11 17:27:11 +00:00
|
|
|
serializer_doom.cpp
|
2018-11-24 12:06:01 +00:00
|
|
|
scriptutil.cpp
|
2014-06-15 18:36:49 +00:00
|
|
|
st_stuff.cpp
|
2019-07-14 19:09:49 +00:00
|
|
|
r_data/v_palette.cpp
|
2014-06-15 18:36:49 +00:00
|
|
|
wi_stuff.cpp
|
2019-02-01 17:13:12 +00:00
|
|
|
gamedata/a_keys.cpp
|
|
|
|
gamedata/a_weapons.cpp
|
2019-02-01 18:20:58 +00:00
|
|
|
gamedata/decallib.cpp
|
|
|
|
gamedata/g_mapinfo.cpp
|
|
|
|
gamedata/g_skill.cpp
|
|
|
|
gamedata/gi.cpp
|
|
|
|
gamedata/umapinfo.cpp
|
2019-02-01 18:48:17 +00:00
|
|
|
gamedata/d_dehacked.cpp
|
|
|
|
gamedata/g_doomedmap.cpp
|
|
|
|
gamedata/info.cpp
|
|
|
|
gamedata/keysections.cpp
|
|
|
|
gamedata/p_terrain.cpp
|
2019-02-23 17:57:49 +00:00
|
|
|
gamedata/statistics.cpp
|
2019-02-01 18:48:17 +00:00
|
|
|
gamedata/teaminfo.cpp
|
2019-07-14 11:59:16 +00:00
|
|
|
playsim/mapthinkers/a_decalfx.cpp
|
|
|
|
playsim/mapthinkers/a_doors.cpp
|
|
|
|
playsim/mapthinkers/a_lightning.cpp
|
|
|
|
playsim/mapthinkers/a_quake.cpp
|
|
|
|
playsim/mapthinkers/a_ceiling.cpp
|
|
|
|
playsim/mapthinkers/a_floor.cpp
|
|
|
|
playsim/mapthinkers/a_lights.cpp
|
|
|
|
playsim/mapthinkers/a_lighttransfer.cpp
|
|
|
|
playsim/mapthinkers/a_pillar.cpp
|
|
|
|
playsim/mapthinkers/a_plats.cpp
|
|
|
|
playsim/mapthinkers/a_pusher.cpp
|
2023-10-29 22:18:06 +00:00
|
|
|
playsim/mapthinkers/a_thruster.cpp
|
2019-07-14 11:59:16 +00:00
|
|
|
playsim/mapthinkers/a_scroll.cpp
|
|
|
|
playsim/mapthinkers/dsectoreffect.cpp
|
2019-07-14 11:24:18 +00:00
|
|
|
playsim/a_pickups.cpp
|
|
|
|
playsim/a_action.cpp
|
2022-08-10 16:09:41 +00:00
|
|
|
playsim/a_corona.cpp
|
2019-07-14 11:24:18 +00:00
|
|
|
playsim/a_decals.cpp
|
|
|
|
playsim/a_dynlight.cpp
|
|
|
|
playsim/a_flashfader.cpp
|
|
|
|
playsim/a_morph.cpp
|
|
|
|
playsim/a_specialspot.cpp
|
|
|
|
playsim/p_secnodes.cpp
|
|
|
|
playsim/p_sectors.cpp
|
|
|
|
playsim/p_sight.cpp
|
|
|
|
playsim/p_switch.cpp
|
|
|
|
playsim/p_tags.cpp
|
|
|
|
playsim/p_teleport.cpp
|
|
|
|
playsim/actorptrselect.cpp
|
|
|
|
playsim/dthinker.cpp
|
|
|
|
playsim/p_3dfloors.cpp
|
|
|
|
playsim/p_3dmidtex.cpp
|
|
|
|
playsim/p_linkedsectors.cpp
|
|
|
|
playsim/p_trace.cpp
|
|
|
|
playsim/po_man.cpp
|
|
|
|
playsim/portal.cpp
|
2019-01-31 01:31:57 +00:00
|
|
|
g_statusbar/hudmessages.cpp
|
|
|
|
g_statusbar/shared_hud.cpp
|
2017-01-20 21:59:31 +00:00
|
|
|
g_statusbar/sbarinfo.cpp
|
|
|
|
g_statusbar/sbar_mugshot.cpp
|
|
|
|
g_statusbar/shared_sbar.cpp
|
2019-02-23 17:08:57 +00:00
|
|
|
rendering/2d/v_blend.cpp
|
2020-04-25 16:38:17 +00:00
|
|
|
rendering/hwrenderer/hw_entrypoint.cpp
|
2020-04-29 15:36:58 +00:00
|
|
|
rendering/hwrenderer/hw_vertexbuilder.cpp
|
|
|
|
rendering/hwrenderer/doom_aabbtree.cpp
|
2022-06-05 21:24:53 +00:00
|
|
|
rendering/hwrenderer/doom_levelmesh.cpp
|
2020-04-29 15:36:58 +00:00
|
|
|
rendering/hwrenderer/hw_models.cpp
|
|
|
|
rendering/hwrenderer/hw_precache.cpp
|
|
|
|
rendering/hwrenderer/scene/hw_lighting.cpp
|
2019-01-31 18:58:17 +00:00
|
|
|
rendering/hwrenderer/scene/hw_drawlistadd.cpp
|
2020-04-29 15:36:58 +00:00
|
|
|
rendering/hwrenderer/scene/hw_setcolor.cpp
|
2018-12-27 16:11:10 +00:00
|
|
|
maploader/edata.cpp
|
2019-01-24 19:27:34 +00:00
|
|
|
maploader/specials.cpp
|
2018-12-27 16:11:10 +00:00
|
|
|
maploader/maploader.cpp
|
|
|
|
maploader/slopes.cpp
|
|
|
|
maploader/glnodes.cpp
|
|
|
|
maploader/udmf.cpp
|
2019-02-22 18:07:58 +00:00
|
|
|
maploader/usdf.cpp
|
|
|
|
maploader/strifedialogue.cpp
|
2018-12-28 14:05:05 +00:00
|
|
|
maploader/polyobjects.cpp
|
2018-12-28 14:51:32 +00:00
|
|
|
maploader/renderinfo.cpp
|
2018-12-28 22:14:11 +00:00
|
|
|
maploader/compatibility.cpp
|
2019-11-10 20:28:01 +00:00
|
|
|
maploader/postprocessor.cpp
|
2020-06-13 20:43:35 +00:00
|
|
|
menu/doommenu.cpp
|
2017-03-09 19:56:33 +00:00
|
|
|
menu/loadsavemenu.cpp
|
|
|
|
menu/playermenu.cpp
|
2019-02-01 17:31:57 +00:00
|
|
|
gamedata/textures/animations.cpp
|
|
|
|
gamedata/textures/anim_switches.cpp
|
2020-04-11 17:04:02 +00:00
|
|
|
gamedata/textures/buildloader.cpp
|
2019-02-02 00:14:51 +00:00
|
|
|
gamedata/p_xlat.cpp
|
|
|
|
gamedata/xlat/parse_xlat.cpp
|
|
|
|
gamedata/xlat/parsecontext.cpp
|
2019-07-14 11:59:16 +00:00
|
|
|
playsim/fragglescript/t_func.cpp
|
|
|
|
playsim/fragglescript/t_load.cpp
|
|
|
|
playsim/fragglescript/t_oper.cpp
|
|
|
|
playsim/fragglescript/t_parse.cpp
|
|
|
|
playsim/fragglescript/t_prepro.cpp
|
|
|
|
playsim/fragglescript/t_script.cpp
|
|
|
|
playsim/fragglescript/t_spec.cpp
|
|
|
|
playsim/fragglescript/t_variable.cpp
|
|
|
|
playsim/fragglescript/t_cmd.cpp
|
2017-03-09 19:56:33 +00:00
|
|
|
intermission/intermission.cpp
|
|
|
|
intermission/intermission_parse.cpp
|
|
|
|
r_data/colormaps.cpp
|
2018-04-02 10:28:20 +00:00
|
|
|
r_data/gldefs.cpp
|
2018-04-02 07:51:51 +00:00
|
|
|
r_data/a_dynlightdata.cpp
|
2017-03-09 19:56:33 +00:00
|
|
|
r_data/r_translate.cpp
|
2014-06-15 18:36:49 +00:00
|
|
|
r_data/sprites.cpp
|
2018-04-01 22:39:04 +00:00
|
|
|
r_data/portalgroups.cpp
|
2020-04-27 17:46:27 +00:00
|
|
|
r_data/voxeldef.cpp
|
2018-12-10 23:01:45 +00:00
|
|
|
r_data/r_canvastexture.cpp
|
2014-06-15 18:36:49 +00:00
|
|
|
r_data/r_interpolate.cpp
|
2017-06-04 00:00:53 +00:00
|
|
|
r_data/r_vanillatrans.cpp
|
2018-11-06 23:53:44 +00:00
|
|
|
r_data/r_sections.cpp
|
2020-04-27 18:50:46 +00:00
|
|
|
r_data/models.cpp
|
2018-12-04 22:12:16 +00:00
|
|
|
scripting/vmiterators.cpp
|
2018-11-25 10:34:50 +00:00
|
|
|
scripting/vmthunks.cpp
|
2018-12-04 23:21:16 +00:00
|
|
|
scripting/vmthunks_actors.cpp
|
2016-10-12 17:22:33 +00:00
|
|
|
scripting/thingdef.cpp
|
|
|
|
scripting/thingdef_data.cpp
|
|
|
|
scripting/thingdef_properties.cpp
|
2020-04-11 17:31:58 +00:00
|
|
|
scripting/backend/codegen_doom.cpp
|
2016-10-12 17:22:33 +00:00
|
|
|
scripting/decorate/olddecorations.cpp
|
|
|
|
scripting/decorate/thingdef_exp.cpp
|
|
|
|
scripting/decorate/thingdef_parse.cpp
|
|
|
|
scripting/decorate/thingdef_states.cpp
|
2020-04-11 17:37:15 +00:00
|
|
|
scripting/zscript/zcc_compile_doom.cpp
|
2019-01-31 18:58:17 +00:00
|
|
|
rendering/swrenderer/textures/r_swtexture.cpp
|
|
|
|
rendering/swrenderer/textures/warptexture.cpp
|
|
|
|
rendering/swrenderer/textures/swcanvastexture.cpp
|
2017-01-22 00:33:53 +00:00
|
|
|
events.cpp
|
2020-04-11 16:30:22 +00:00
|
|
|
common/audio/sound/i_sound.cpp
|
|
|
|
common/audio/sound/oalsound.cpp
|
|
|
|
common/audio/sound/s_environment.cpp
|
|
|
|
common/audio/sound/s_sound.cpp
|
2020-06-14 10:39:59 +00:00
|
|
|
common/audio/sound/s_reverbedit.cpp
|
2020-04-11 16:26:09 +00:00
|
|
|
common/audio/music/music_midi_base.cpp
|
|
|
|
common/audio/music/music.cpp
|
|
|
|
common/audio/music/i_music.cpp
|
|
|
|
common/audio/music/i_soundfont.cpp
|
|
|
|
common/audio/music/music_config.cpp
|
2020-04-11 17:49:45 +00:00
|
|
|
common/2d/v_2ddrawer.cpp
|
|
|
|
common/2d/v_drawtext.cpp
|
|
|
|
common/2d/v_draw.cpp
|
2022-04-25 15:30:57 +00:00
|
|
|
common/2d/wipe.cpp
|
2021-03-10 22:06:21 +00:00
|
|
|
common/thirdparty/gain_analysis.cpp
|
2020-04-11 11:12:45 +00:00
|
|
|
common/thirdparty/sfmt/SFMT.cpp
|
2022-05-18 18:38:46 +00:00
|
|
|
common/startscreen/startscreen.cpp
|
|
|
|
common/startscreen/startscreen_heretic.cpp
|
|
|
|
common/startscreen/startscreen_hexen.cpp
|
|
|
|
common/startscreen/startscreen_strife.cpp
|
|
|
|
common/startscreen/startscreen_generic.cpp
|
|
|
|
common/startscreen/endoom.cpp
|
2020-04-11 17:11:59 +00:00
|
|
|
common/fonts/singlelumpfont.cpp
|
|
|
|
common/fonts/singlepicfont.cpp
|
|
|
|
common/fonts/specialfont.cpp
|
|
|
|
common/fonts/font.cpp
|
|
|
|
common/fonts/hexfont.cpp
|
|
|
|
common/fonts/v_font.cpp
|
2020-04-11 17:39:45 +00:00
|
|
|
common/fonts/v_text.cpp
|
2020-04-11 17:04:48 +00:00
|
|
|
common/textures/hw_ihwtexture.cpp
|
2020-04-11 17:07:08 +00:00
|
|
|
common/textures/hw_material.cpp
|
2020-04-12 07:59:09 +00:00
|
|
|
common/textures/bitmap.cpp
|
2020-04-11 16:18:32 +00:00
|
|
|
common/textures/m_png.cpp
|
2020-04-11 17:04:48 +00:00
|
|
|
common/textures/texture.cpp
|
2020-04-18 22:44:42 +00:00
|
|
|
common/textures/gametexture.cpp
|
2020-04-11 17:04:48 +00:00
|
|
|
common/textures/image.cpp
|
|
|
|
common/textures/imagetexture.cpp
|
|
|
|
common/textures/texturemanager.cpp
|
|
|
|
common/textures/multipatchtexturebuilder.cpp
|
|
|
|
common/textures/skyboxtexture.cpp
|
2020-04-11 17:10:22 +00:00
|
|
|
common/textures/animtexture.cpp
|
2020-04-29 15:51:04 +00:00
|
|
|
common/textures/v_collection.cpp
|
2020-09-27 08:38:12 +00:00
|
|
|
common/textures/animlib.cpp
|
2020-04-11 17:04:48 +00:00
|
|
|
common/textures/formats/automaptexture.cpp
|
|
|
|
common/textures/formats/brightmaptexture.cpp
|
|
|
|
common/textures/formats/buildtexture.cpp
|
|
|
|
common/textures/formats/ddstexture.cpp
|
|
|
|
common/textures/formats/flattexture.cpp
|
|
|
|
common/textures/formats/fontchars.cpp
|
|
|
|
common/textures/formats/imgztexture.cpp
|
|
|
|
common/textures/formats/md5check.cpp
|
|
|
|
common/textures/formats/multipatchtexture.cpp
|
|
|
|
common/textures/formats/patchtexture.cpp
|
|
|
|
common/textures/formats/pcxtexture.cpp
|
|
|
|
common/textures/formats/pngtexture.cpp
|
|
|
|
common/textures/formats/rawpagetexture.cpp
|
2022-05-01 22:28:56 +00:00
|
|
|
common/textures/formats/startuptexture.cpp
|
2020-04-11 17:04:48 +00:00
|
|
|
common/textures/formats/emptytexture.cpp
|
|
|
|
common/textures/formats/shadertexture.cpp
|
|
|
|
common/textures/formats/tgatexture.cpp
|
|
|
|
common/textures/formats/stbtexture.cpp
|
2020-09-27 08:38:12 +00:00
|
|
|
common/textures/formats/anmtexture.cpp
|
2022-05-13 10:07:58 +00:00
|
|
|
common/textures/formats/startscreentexture.cpp
|
2023-08-13 09:59:03 +00:00
|
|
|
common/textures/formats/qoitexture.cpp
|
2023-08-21 18:54:16 +00:00
|
|
|
common/textures/formats/webptexture.cpp
|
2020-04-11 17:04:48 +00:00
|
|
|
common/textures/hires/hqresize.cpp
|
2020-04-27 18:50:46 +00:00
|
|
|
common/models/models_md3.cpp
|
|
|
|
common/models/models_md2.cpp
|
|
|
|
common/models/models_voxel.cpp
|
|
|
|
common/models/models_ue1.cpp
|
|
|
|
common/models/models_obj.cpp
|
2022-08-12 20:17:08 +00:00
|
|
|
common/models/models_iqm.cpp
|
2020-04-27 18:50:46 +00:00
|
|
|
common/models/model.cpp
|
|
|
|
common/models/voxels.cpp
|
2020-04-11 16:11:43 +00:00
|
|
|
common/console/c_commandline.cpp
|
|
|
|
common/console/c_buttons.cpp
|
|
|
|
common/console/c_bind.cpp
|
|
|
|
common/console/c_enginecmds.cpp
|
|
|
|
common/console/c_consolebuffer.cpp
|
|
|
|
common/console/c_cvars.cpp
|
|
|
|
common/console/c_dispatch.cpp
|
2020-10-10 22:16:58 +00:00
|
|
|
common/console/c_commandbuffer.cpp
|
2020-10-25 12:25:31 +00:00
|
|
|
common/console/c_console.cpp
|
2020-10-25 11:18:06 +00:00
|
|
|
common/console/c_notifybufferbase.cpp
|
2020-10-10 22:16:58 +00:00
|
|
|
common/console/c_tabcomplete.cpp
|
2020-04-11 16:11:43 +00:00
|
|
|
common/console/c_expr.cpp
|
2021-05-21 21:54:38 +00:00
|
|
|
common/cutscenes/playmve.cpp
|
|
|
|
common/cutscenes/movieplayer.cpp
|
|
|
|
common/cutscenes/screenjob.cpp
|
2020-04-11 10:56:55 +00:00
|
|
|
common/utility/engineerrors.cpp
|
|
|
|
common/utility/i_module.cpp
|
2022-10-02 12:20:15 +00:00
|
|
|
common/utility/gitinfo.cpp
|
2020-04-11 10:56:55 +00:00
|
|
|
common/utility/m_alloc.cpp
|
|
|
|
common/utility/utf8.cpp
|
2020-04-11 11:04:17 +00:00
|
|
|
common/utility/palette.cpp
|
2020-04-11 11:12:45 +00:00
|
|
|
common/utility/memarena.cpp
|
|
|
|
common/utility/cmdlib.cpp
|
|
|
|
common/utility/configfile.cpp
|
|
|
|
common/utility/i_time.cpp
|
|
|
|
common/utility/m_argv.cpp
|
|
|
|
common/utility/s_playlist.cpp
|
2020-04-11 11:43:47 +00:00
|
|
|
common/utility/name.cpp
|
2020-04-29 16:48:15 +00:00
|
|
|
common/utility/r_memory.cpp
|
2020-09-27 08:17:58 +00:00
|
|
|
common/thirdparty/base64.cpp
|
2020-04-11 11:12:45 +00:00
|
|
|
common/thirdparty/md5.cpp
|
|
|
|
common/thirdparty/superfasthash.cpp
|
2021-05-21 21:54:38 +00:00
|
|
|
common/thirdparty/libsmackerdec/src/BitReader.cpp
|
|
|
|
common/thirdparty/libsmackerdec/src/FileStream.cpp
|
|
|
|
common/thirdparty/libsmackerdec/src/HuffmanVLC.cpp
|
|
|
|
common/thirdparty/libsmackerdec/src/LogError.cpp
|
|
|
|
common/thirdparty/libsmackerdec/src/SmackerDecoder.cpp
|
2020-04-29 15:51:04 +00:00
|
|
|
common/engine/cycler.cpp
|
2020-06-13 18:31:57 +00:00
|
|
|
common/engine/d_event.cpp
|
2020-10-05 18:24:51 +00:00
|
|
|
common/engine/date.cpp
|
2020-04-11 17:43:17 +00:00
|
|
|
common/engine/stats.cpp
|
2020-04-11 11:46:15 +00:00
|
|
|
common/engine/sc_man.cpp
|
|
|
|
common/engine/palettecontainer.cpp
|
2020-04-11 16:13:17 +00:00
|
|
|
common/engine/stringtable.cpp
|
2020-09-27 10:23:22 +00:00
|
|
|
common/engine/i_net.cpp
|
2020-04-11 16:22:21 +00:00
|
|
|
common/engine/i_interface.cpp
|
2020-04-11 17:02:14 +00:00
|
|
|
common/engine/renderstyle.cpp
|
|
|
|
common/engine/v_colortables.cpp
|
2020-04-11 17:28:30 +00:00
|
|
|
common/engine/serializer.cpp
|
2020-06-08 19:03:45 +00:00
|
|
|
common/engine/m_joy.cpp
|
2020-04-11 17:33:06 +00:00
|
|
|
common/engine/m_random.cpp
|
2020-11-13 09:03:16 +00:00
|
|
|
common/objects/autosegs.cpp
|
2020-04-11 17:21:41 +00:00
|
|
|
common/objects/dobject.cpp
|
|
|
|
common/objects/dobjgc.cpp
|
|
|
|
common/objects/dobjtype.cpp
|
2020-10-04 20:12:56 +00:00
|
|
|
common/menu/joystickmenu.cpp
|
|
|
|
common/menu/menu.cpp
|
|
|
|
common/menu/messagebox.cpp
|
|
|
|
common/menu/optionmenu.cpp
|
|
|
|
common/menu/resolutionmenu.cpp
|
|
|
|
common/menu/menudef.cpp
|
2020-10-07 13:44:08 +00:00
|
|
|
common/menu/savegamemanager.cpp
|
2020-10-28 14:02:23 +00:00
|
|
|
common/statusbar/base_sbar.cpp
|
2020-06-13 21:04:10 +00:00
|
|
|
|
2020-04-28 21:08:27 +00:00
|
|
|
common/rendering/v_framebuffer.cpp
|
|
|
|
common/rendering/v_video.cpp
|
2020-04-29 20:17:35 +00:00
|
|
|
common/rendering/r_thread.cpp
|
2020-04-25 19:52:21 +00:00
|
|
|
common/rendering/r_videoscale.cpp
|
2020-05-04 18:06:54 +00:00
|
|
|
common/rendering/hwrenderer/hw_draw2d.cpp
|
2020-04-29 15:19:17 +00:00
|
|
|
common/rendering/hwrenderer/data/hw_clock.cpp
|
2020-04-28 22:21:30 +00:00
|
|
|
common/rendering/hwrenderer/data/hw_skydome.cpp
|
2020-04-26 10:30:36 +00:00
|
|
|
common/rendering/hwrenderer/data/flatvertices.cpp
|
2020-04-26 10:12:07 +00:00
|
|
|
common/rendering/hwrenderer/data/hw_viewpointbuffer.cpp
|
2020-04-26 11:19:57 +00:00
|
|
|
common/rendering/hwrenderer/data/hw_modelvertexbuffer.cpp
|
2020-04-26 09:38:38 +00:00
|
|
|
common/rendering/hwrenderer/data/hw_cvars.cpp
|
2020-04-26 08:26:29 +00:00
|
|
|
common/rendering/hwrenderer/data/hw_vrmodes.cpp
|
2020-04-26 10:30:36 +00:00
|
|
|
common/rendering/hwrenderer/data/hw_lightbuffer.cpp
|
2022-08-12 20:17:08 +00:00
|
|
|
common/rendering/hwrenderer/data/hw_bonebuffer.cpp
|
2020-04-26 18:28:43 +00:00
|
|
|
common/rendering/hwrenderer/data/hw_aabbtree.cpp
|
|
|
|
common/rendering/hwrenderer/data/hw_shadowmap.cpp
|
2020-04-26 19:38:34 +00:00
|
|
|
common/rendering/hwrenderer/data/hw_shaderpatcher.cpp
|
2022-01-16 23:07:43 +00:00
|
|
|
common/rendering/hwrenderer/postprocessing/hw_postprocessshader.cpp
|
2020-04-25 20:37:27 +00:00
|
|
|
common/rendering/hwrenderer/postprocessing/hw_postprocess.cpp
|
|
|
|
common/rendering/hwrenderer/postprocessing/hw_postprocess_cvars.cpp
|
2022-01-21 03:38:46 +00:00
|
|
|
common/rendering/hwrenderer/postprocessing/hw_postprocessshader_ccmds.cpp
|
2020-04-10 20:10:49 +00:00
|
|
|
common/rendering/gl_load/gl_interface.cpp
|
2020-04-29 15:19:17 +00:00
|
|
|
common/rendering/gl/gl_renderer.cpp
|
|
|
|
common/rendering/gl/gl_stereo3d.cpp
|
|
|
|
common/rendering/gl/gl_framebuffer.cpp
|
2020-04-26 12:44:19 +00:00
|
|
|
common/rendering/gl/gl_renderstate.cpp
|
|
|
|
common/rendering/gl/gl_renderbuffers.cpp
|
|
|
|
common/rendering/gl/gl_postprocess.cpp
|
|
|
|
common/rendering/gl/gl_postprocessstate.cpp
|
|
|
|
common/rendering/gl/gl_debug.cpp
|
|
|
|
common/rendering/gl/gl_buffers.cpp
|
|
|
|
common/rendering/gl/gl_hwtexture.cpp
|
|
|
|
common/rendering/gl/gl_samplers.cpp
|
2020-04-26 20:24:27 +00:00
|
|
|
common/rendering/gl/gl_shader.cpp
|
2020-04-26 19:38:34 +00:00
|
|
|
common/rendering/gl/gl_shaderprogram.cpp
|
2022-11-25 23:39:12 +00:00
|
|
|
common/scripting/core/maps.cpp
|
2020-04-11 17:29:18 +00:00
|
|
|
common/scripting/core/dictionary.cpp
|
2020-04-11 17:30:58 +00:00
|
|
|
common/scripting/core/dynarrays.cpp
|
2020-04-11 17:21:41 +00:00
|
|
|
common/scripting/core/symbols.cpp
|
|
|
|
common/scripting/core/types.cpp
|
|
|
|
common/scripting/core/scopebarrier.cpp
|
|
|
|
common/scripting/core/vmdisasm.cpp
|
2020-04-11 17:38:59 +00:00
|
|
|
common/scripting/core/imports.cpp
|
2020-04-11 17:21:41 +00:00
|
|
|
common/scripting/vm/vmexec.cpp
|
|
|
|
common/scripting/vm/vmframe.cpp
|
|
|
|
common/scripting/interface/stringformat.cpp
|
2020-06-14 10:16:22 +00:00
|
|
|
common/scripting/interface/vmnatives.cpp
|
2020-04-11 17:38:59 +00:00
|
|
|
common/scripting/frontend/ast.cpp
|
|
|
|
common/scripting/frontend/zcc_compile.cpp
|
|
|
|
common/scripting/frontend/zcc_parser.cpp
|
2020-04-11 17:33:06 +00:00
|
|
|
common/scripting/backend/vmbuilder.cpp
|
|
|
|
common/scripting/backend/codegen.cpp
|
2020-04-11 11:36:23 +00:00
|
|
|
|
2019-01-31 19:33:52 +00:00
|
|
|
utility/nodebuilder/nodebuild.cpp
|
|
|
|
utility/nodebuilder/nodebuild_classify_nosse2.cpp
|
|
|
|
utility/nodebuilder/nodebuild_events.cpp
|
|
|
|
utility/nodebuilder/nodebuild_extract.cpp
|
|
|
|
utility/nodebuilder/nodebuild_gl.cpp
|
|
|
|
utility/nodebuilder/nodebuild_utility.cpp
|
2016-04-10 11:08:54 +00:00
|
|
|
)
|
2017-03-09 19:56:33 +00:00
|
|
|
|
2019-02-04 09:14:52 +00:00
|
|
|
if( ${HAVE_VM_JIT} )
|
|
|
|
set( PCH_SOURCES ${PCH_SOURCES} ${VM_JIT_SOURCES} )
|
|
|
|
else()
|
|
|
|
set( NOT_COMPILED_SOURCE_FILES ${NOT_COMPILED_SOURCE_FILES} ${VM_JIT_SOURCES} )
|
|
|
|
endif()
|
|
|
|
|
2023-08-23 20:09:58 +00:00
|
|
|
set( GAME_SOURCES
|
2016-04-10 11:08:54 +00:00
|
|
|
${HEADER_FILES}
|
|
|
|
${NOT_COMPILED_SOURCE_FILES}
|
|
|
|
${SYSTEM_SOURCES}
|
|
|
|
${FASTMATH_SOURCES}
|
|
|
|
${PCH_SOURCES}
|
2020-04-11 11:04:17 +00:00
|
|
|
common/utility/x86.cpp
|
2020-04-11 10:52:48 +00:00
|
|
|
common/thirdparty/strnatcmp.c
|
2023-08-09 08:27:09 +00:00
|
|
|
common/thirdparty/stb/stb_sprintf.c
|
2020-04-11 10:59:55 +00:00
|
|
|
common/utility/zstring.cpp
|
|
|
|
common/utility/findfile.cpp
|
2020-04-11 10:52:48 +00:00
|
|
|
common/thirdparty/math/asin.c
|
|
|
|
common/thirdparty/math/atan.c
|
|
|
|
common/thirdparty/math/const.c
|
|
|
|
common/thirdparty/math/cosh.c
|
|
|
|
common/thirdparty/math/exp.c
|
|
|
|
common/thirdparty/math/isnan.c
|
|
|
|
common/thirdparty/math/log.c
|
|
|
|
common/thirdparty/math/log10.c
|
|
|
|
common/thirdparty/math/mtherr.c
|
|
|
|
common/thirdparty/math/polevl.c
|
|
|
|
common/thirdparty/math/pow.c
|
|
|
|
common/thirdparty/math/powi.c
|
|
|
|
common/thirdparty/math/sin.c
|
|
|
|
common/thirdparty/math/sinh.c
|
|
|
|
common/thirdparty/math/sqrt.c
|
|
|
|
common/thirdparty/math/tan.c
|
|
|
|
common/thirdparty/math/tanh.c
|
|
|
|
common/thirdparty/math/fastsin.cpp
|
2023-08-18 18:34:12 +00:00
|
|
|
|
2023-08-22 19:20:28 +00:00
|
|
|
common/filesystem/source/filesystem.cpp
|
|
|
|
common/filesystem/source/ancientzip.cpp
|
|
|
|
common/filesystem/source/file_7z.cpp
|
|
|
|
common/filesystem/source/file_grp.cpp
|
|
|
|
common/filesystem/source/file_lump.cpp
|
|
|
|
common/filesystem/source/file_rff.cpp
|
|
|
|
common/filesystem/source/file_wad.cpp
|
|
|
|
common/filesystem/source/file_zip.cpp
|
|
|
|
common/filesystem/source/file_pak.cpp
|
|
|
|
common/filesystem/source/file_whres.cpp
|
|
|
|
common/filesystem/source/file_ssi.cpp
|
|
|
|
common/filesystem/source/file_directory.cpp
|
|
|
|
common/filesystem/source/resourcefile.cpp
|
|
|
|
common/filesystem/source/files.cpp
|
|
|
|
common/filesystem/source/files_decompress.cpp
|
|
|
|
common/filesystem/source/fs_findfile.cpp
|
|
|
|
common/filesystem/source/fs_stringpool.cpp
|
2023-08-18 18:34:12 +00:00
|
|
|
|
2014-06-15 18:36:49 +00:00
|
|
|
)
|
|
|
|
|
2023-08-23 20:09:58 +00:00
|
|
|
set( GAME_NONPCH_SOURCES ${GAME_SOURCES} )
|
|
|
|
list( REMOVE_ITEM GAME_NONPCH_SOURCES ${PCH_SOURCES} )
|
2023-08-14 10:20:50 +00:00
|
|
|
|
2023-08-24 10:25:37 +00:00
|
|
|
add_executable( zdoom WIN32 MACOSX_BUNDLE ${GAME_SOURCES} )
|
2023-08-14 10:20:50 +00:00
|
|
|
|
|
|
|
target_precompile_headers( zdoom PRIVATE g_pch.h )
|
|
|
|
|
2016-02-18 21:09:05 +00:00
|
|
|
set_source_files_properties( ${FASTMATH_SOURCES} PROPERTIES COMPILE_FLAGS ${ZD_FASTMATH_FLAG} )
|
2014-06-15 18:36:49 +00:00
|
|
|
set_source_files_properties( xlat/parse_xlat.cpp PROPERTIES OBJECT_DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/xlat_parser.c" )
|
2020-04-11 11:46:15 +00:00
|
|
|
set_source_files_properties( common/engine/sc_man.cpp PROPERTIES OBJECT_DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/sc_man_scanner.h" )
|
2014-01-18 23:10:48 +00:00
|
|
|
set_source_files_properties( ${NOT_COMPILED_SOURCE_FILES} PROPERTIES HEADER_FILE_ONLY TRUE )
|
2023-08-23 20:09:58 +00:00
|
|
|
set_source_files_properties( ${GAME_NONPCH_SOURCES} common/textures/hires/hqresize.cpp PROPERTIES SKIP_PRECOMPILE_HEADERS TRUE )
|
2016-02-12 11:51:09 +00:00
|
|
|
|
2014-06-15 18:36:49 +00:00
|
|
|
|
|
|
|
if(${CMAKE_SYSTEM_NAME} STREQUAL "SunOS")
|
|
|
|
# [BL] Solaris requires these to be explicitly linked.
|
2021-05-21 22:48:30 +00:00
|
|
|
set( PROJECT_LIBRARIES ${PROJECT_LIBRARIES} nsl socket)
|
2016-02-06 02:19:29 +00:00
|
|
|
endif()
|
2014-06-15 18:36:49 +00:00
|
|
|
|
2019-01-01 09:12:33 +00:00
|
|
|
if( UNIX )
|
|
|
|
find_package( Backtrace )
|
|
|
|
if(Backtrace_FOUND)
|
2021-05-21 22:48:30 +00:00
|
|
|
set( PROJECT_LIBRARIES ${PROJECT_LIBRARIES} ${Backtrace_LIBRARIES} )
|
2019-01-01 09:12:33 +00:00
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
2023-08-09 08:27:09 +00:00
|
|
|
target_link_libraries( zdoom ${PROJECT_LIBRARIES} lzma ${ZMUSIC_LIBRARIES} )
|
2016-10-01 04:51:55 +00:00
|
|
|
|
2023-07-01 12:36:48 +00:00
|
|
|
include_directories(
|
|
|
|
BEFORE
|
|
|
|
.
|
2020-04-11 16:30:22 +00:00
|
|
|
common/audio/sound
|
2020-04-11 16:26:09 +00:00
|
|
|
common/audio/music
|
2020-04-11 17:49:45 +00:00
|
|
|
common/2d
|
2021-05-21 21:54:38 +00:00
|
|
|
common/cutscenes
|
|
|
|
common/thirdparty/libsmackerdec/include
|
2020-04-11 10:52:48 +00:00
|
|
|
common/thirdparty
|
2023-08-09 06:22:47 +00:00
|
|
|
common/thirdparty/stb
|
2020-04-11 18:23:26 +00:00
|
|
|
common/textures
|
2020-04-11 17:04:48 +00:00
|
|
|
common/textures/formats
|
|
|
|
common/textures/hires
|
2020-04-11 20:53:26 +00:00
|
|
|
common/textures
|
2020-04-27 18:50:46 +00:00
|
|
|
common/models
|
2023-08-22 19:20:28 +00:00
|
|
|
common/filesystem/include
|
2020-04-11 10:53:45 +00:00
|
|
|
common/utility
|
2020-04-11 16:11:43 +00:00
|
|
|
common/console
|
2020-04-11 11:43:47 +00:00
|
|
|
common/engine
|
2020-04-22 18:42:13 +00:00
|
|
|
common/menu
|
2020-10-28 14:02:23 +00:00
|
|
|
common/statusbar
|
2020-04-11 17:11:59 +00:00
|
|
|
common/fonts
|
2020-04-11 17:21:41 +00:00
|
|
|
common/objects
|
2022-05-18 18:38:46 +00:00
|
|
|
common/startscreen
|
2020-04-10 20:10:49 +00:00
|
|
|
common/rendering
|
2020-04-25 20:17:41 +00:00
|
|
|
common/rendering/hwrenderer/data
|
2020-04-10 20:10:49 +00:00
|
|
|
common/rendering/gl_load
|
2020-04-26 12:44:19 +00:00
|
|
|
common/rendering/gl
|
2021-08-03 16:46:45 +00:00
|
|
|
common/rendering/gles
|
|
|
|
common/rendering/gles/glad/include
|
|
|
|
common/rendering/gles/Mali_OpenGL_ES_Emulator/include
|
2020-04-11 17:21:41 +00:00
|
|
|
common/scripting/vm
|
|
|
|
common/scripting/jit
|
|
|
|
common/scripting/core
|
2020-04-11 17:33:06 +00:00
|
|
|
common/scripting/interface
|
2020-04-11 17:37:15 +00:00
|
|
|
common/scripting/frontend
|
2020-04-11 17:33:06 +00:00
|
|
|
common/scripting/backend
|
2017-01-20 21:59:31 +00:00
|
|
|
g_statusbar
|
2019-07-14 12:39:21 +00:00
|
|
|
console
|
2019-07-14 11:24:18 +00:00
|
|
|
playsim
|
2019-07-14 11:59:16 +00:00
|
|
|
playsim/bots
|
|
|
|
playsim/mapthinkers
|
2019-02-01 17:13:12 +00:00
|
|
|
gamedata
|
2019-02-01 17:31:57 +00:00
|
|
|
gamedata/textures
|
2019-02-17 10:43:04 +00:00
|
|
|
gamedata/fonts
|
2019-01-31 18:58:17 +00:00
|
|
|
rendering
|
2020-04-29 15:36:58 +00:00
|
|
|
rendering/hwrenderer
|
2019-02-23 17:08:57 +00:00
|
|
|
rendering/2d
|
2019-07-14 19:09:49 +00:00
|
|
|
r_data
|
2014-06-15 18:36:49 +00:00
|
|
|
sound
|
2020-06-13 18:31:57 +00:00
|
|
|
menu
|
2019-07-14 14:07:18 +00:00
|
|
|
sound/backend
|
2014-06-15 18:36:49 +00:00
|
|
|
xlat
|
2019-01-31 19:33:52 +00:00
|
|
|
utility
|
|
|
|
utility/nodebuilder
|
2016-10-12 17:22:33 +00:00
|
|
|
scripting
|
2020-04-11 17:37:15 +00:00
|
|
|
scripting/zscript
|
2019-07-14 19:09:49 +00:00
|
|
|
rendering
|
2022-12-03 05:40:04 +00:00
|
|
|
../libraries/ZVulkan/include
|
2020-04-24 13:52:31 +00:00
|
|
|
${SYSTEM_SOURCES_DIR}
|
|
|
|
)
|
2014-06-15 18:36:49 +00:00
|
|
|
|
|
|
|
add_dependencies( zdoom revision_check )
|
|
|
|
|
2014-01-18 23:10:48 +00:00
|
|
|
# Due to some quirks, we need to do this in this order
|
2016-02-06 02:19:29 +00:00
|
|
|
if( NOT ZDOOM_OUTPUT_OLDSTYLE )
|
2014-01-18 23:10:48 +00:00
|
|
|
# RUNTIME_OUTPUT_DIRECTORY does not exist in CMake 2.4.
|
|
|
|
# Linux distributions are slow to adopt 2.6. :(
|
|
|
|
set_target_properties( zdoom PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${ZDOOM_OUTPUT_DIR} )
|
|
|
|
set_target_properties( zdoom PROPERTIES OUTPUT_NAME ${ZDOOM_EXE_NAME} )
|
2016-02-06 02:19:29 +00:00
|
|
|
else()
|
2014-01-18 23:10:48 +00:00
|
|
|
set_target_properties( zdoom PROPERTIES
|
|
|
|
RUNTIME_OUTPUT_NAME ${ZDOOM_EXE_NAME}
|
|
|
|
RUNTIME_OUTPUT_DIRECTORY_RELEASE ${ZDOOM_OUTPUT_DIR}
|
|
|
|
RUNTIME_OUTPUT_NAME_DEBUG ${ZDOOM_EXE_NAME}d
|
|
|
|
RUNTIME_OUTPUT_DIRECTORY_DEBUG ${ZDOOM_OUTPUT_DIR}
|
|
|
|
RUNTIME_OUTPUT_NAME_MINSIZEREL ${ZDOOM_EXE_NAME}msr
|
|
|
|
RUNTIME_OUTPUT_DIRECTORY_MINSIZEREL ${ZDOOM_OUTPUT_DIR}
|
|
|
|
RUNTIME_OUTPUT_NAME_RELWITHDEBINFO ${ZDOOM_EXE_NAME}rd
|
|
|
|
RUNTIME_OUTPUT_DIRECTORY_RELWITHDEBINFO ${ZDOOM_OUTPUT_DIR}
|
|
|
|
)
|
2016-02-06 02:19:29 +00:00
|
|
|
endif()
|
2014-01-18 23:10:48 +00:00
|
|
|
|
|
|
|
if( MSVC )
|
|
|
|
option( ZDOOM_GENERATE_MAPFILE "Generate .map file for debugging." OFF )
|
2016-09-06 09:36:30 +00:00
|
|
|
set( LINKERSTUFF "/MANIFEST:NO" )
|
|
|
|
|
2014-01-18 23:10:48 +00:00
|
|
|
if( ZDOOM_GENERATE_MAPFILE )
|
2016-02-06 18:05:41 +00:00
|
|
|
set( LINKERSTUFF "${LINKERSTUFF} /MAP" )
|
2016-02-06 03:38:10 +00:00
|
|
|
endif()
|
|
|
|
set_target_properties(zdoom PROPERTIES LINK_FLAGS ${LINKERSTUFF})
|
2014-01-18 23:10:48 +00:00
|
|
|
|
2016-02-06 02:19:29 +00:00
|
|
|
add_custom_command(TARGET zdoom POST_BUILD
|
2020-04-23 20:26:30 +00:00
|
|
|
COMMAND "mt.exe" -manifest \"${CMAKE_CURRENT_SOURCE_DIR}\\common\\platform\\win32\\manifest.xml\" -outputresource:\"$<TARGET_FILE:zdoom>\"\;\#1
|
2016-02-06 02:19:29 +00:00
|
|
|
COMMENT "Adding manifest..."
|
|
|
|
)
|
2014-01-18 23:10:48 +00:00
|
|
|
|
2016-02-06 02:19:29 +00:00
|
|
|
endif()
|
2014-06-15 18:36:49 +00:00
|
|
|
|
2017-05-13 14:01:24 +00:00
|
|
|
if( NOT WIN32 AND NOT APPLE )
|
2014-06-15 18:36:49 +00:00
|
|
|
FILE( WRITE ${CMAKE_CURRENT_BINARY_DIR}/link-make "if [ ! -e ${ZDOOM_OUTPUT_DIR}/${ZDOOM_EXE_NAME} ]; then ln -sf ${CMAKE_CURRENT_BINARY_DIR}/${ZDOOM_EXE_NAME} ${ZDOOM_OUTPUT_DIR}/${ZDOOM_EXE_NAME}; fi" )
|
|
|
|
add_custom_command( TARGET zdoom POST_BUILD
|
|
|
|
COMMAND chmod +x ${CMAKE_CURRENT_BINARY_DIR}/link-make
|
2022-07-23 23:00:59 +00:00
|
|
|
COMMAND ${CMAKE_CURRENT_BINARY_DIR}/link-make )
|
2022-03-12 04:11:08 +00:00
|
|
|
IF ("${INSTALL_RPATH}" STREQUAL "")
|
|
|
|
set_target_properties(zdoom PROPERTIES
|
|
|
|
#allow libzmusic.so.1 library in same folder as executable at runtime
|
|
|
|
INSTALL_RPATH "\$ORIGIN"
|
|
|
|
BUILD_WITH_INSTALL_RPATH ON
|
|
|
|
)
|
|
|
|
endif()
|
2016-02-06 02:19:29 +00:00
|
|
|
endif()
|
2017-05-13 11:57:34 +00:00
|
|
|
|
|
|
|
add_custom_command(TARGET zdoom POST_BUILD
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
Upgrade libADLMIDI and libOPNMIDI
Added full-panning stereo, improvement of channel management, and many other things.
Also, I have implemented an ability to use custom WOPL (for libADLMIDI) and WOPN (for libOPNMIDI) banks from the same path as "soundfonts", but also, in the same environment, the "fm_banks" folder was added for WOPL/WOPN storing purposes.
To toggle usage of embedded or custom bank, I have added togglable booleans. When bank fails to be loaded, the default embedded bank is getting to be used as fallback.
ADLMIDI 1.4.0 2018-10-01
* Implemented a full support for Portamento! (Thanks to [Jean Pierre Cimalando](https://github.com/jpcima) for a work!)
* Added support for SysEx event handling! (Thanks to [Jean Pierre Cimalando](https://github.com/jpcima) for a work!)
* Added support for GS way of custom drum channels (through SysEx events)
* Ignore some NRPN events and lsb bank number when using GS standard (after catching of GS Reset SysEx call)
* Added support for CC66-Sostenuto controller (Pedal hold of currently-pressed notes only while CC64 holds also all next notes)
* Added support for CC67-SoftPedal controller (SoftPedal lowers the volume of notes played)
* Fixed correctness of CMF files playing
* Fixed unnecessary overuse of chip channels by blank notes
* Added API to disable specific MIDI tracks or play one of MIDI tracks solo
* Added support for more complex loop (loopStart=XX, loopEnd=0). Where XX - count of loops, or 0 - infinite. Nested loops are supported without of any limits.
* Added working implementation of TMB's velocity offset
* Added support for full-panning stereo option (Thanks to [Christopher Snowhill](https://github.com/kode54) for a work!)
* Fixed inability to play high notes due physical tone frequency out of range on the OPL3 chip
OPNMIDI 1.4.0 2018-10-01
* Implemented a full support for Portamento! (Thanks to [Jean Pierre Cimalando](https://github.com/jpcima) for a work!)
* Added support for SysEx event handling! (Thanks to [Jean Pierre Cimalando](https://github.com/jpcima) for a work!)
* Added support for GS way of custom drum channels (through SysEx events)
* Ignore some NRPN events and lsb bank number when using GS standard (after catching of GS Reset SysEx call)
* Added support for CC66-Sostenuto controller (Pedal hold of currently-pressed notes only while CC64 holds also all next notes)
* Added support for CC67-SoftPedal controller (SoftPedal lowers the volume of notes played)
* Resolved a trouble which sometimes makes a junk noise sound and unnecessary overuse of chip channels
* Volume models support taken from libADLMIDI has been adapted to OPN2's chip speficis
* Fixed inability to play high notes due physical tone frequency out of range on the OPN2 chip
* Added support for full-panning stereo option
ADL&OPN Hotfix: re-calculated default banks
The fix on side of measurer of OPL3-BE and OPN2-BE where some instruments getting zero releasing time.
2018-10-01 21:07:05 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/soundfont/gzdoom.sf2 $<TARGET_FILE_DIR:zdoom>/soundfonts/gzdoom.sf2
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
|
|
|
${CMAKE_SOURCE_DIR}/fm_banks/GENMIDI.GS.wopl $<TARGET_FILE_DIR:zdoom>/fm_banks/GENMIDI.GS.wopl
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
|
|
|
${CMAKE_SOURCE_DIR}/fm_banks/gs-by-papiezak-and-sneakernets.wopn $<TARGET_FILE_DIR:zdoom>/fm_banks/gs-by-papiezak-and-sneakernets.wopn
|
|
|
|
)
|
2017-05-13 11:57:34 +00:00
|
|
|
|
2023-08-21 18:50:36 +00:00
|
|
|
if (VCPKG_TOOLCHAIN)
|
|
|
|
x_vcpkg_install_local_dependencies(TARGETS zdoom DESTINATION ".")
|
|
|
|
endif()
|
|
|
|
|
2020-08-27 16:39:56 +00:00
|
|
|
if( WIN32 )
|
|
|
|
set( INSTALL_SOUNDFONT_PATH . CACHE STRING "Directory where soundfonts and WOPL/WOPN banks will be placed during install." )
|
|
|
|
else()
|
|
|
|
set( INSTALL_SOUNDFONT_PATH share/games/doom CACHE STRING "Directory where soundfonts and WOPL/WOPN banks will be placed during install." )
|
|
|
|
endif()
|
|
|
|
install(DIRECTORY "${PROJECT_BINARY_DIR}/soundfonts" "${PROJECT_BINARY_DIR}/fm_banks"
|
|
|
|
DESTINATION ${INSTALL_SOUNDFONT_PATH}
|
|
|
|
COMPONENT "Soundfont resources")
|
|
|
|
|
2021-05-21 22:48:30 +00:00
|
|
|
if( DEM_CMAKE_COMPILER_IS_GNUCXX_COMPATIBLE )
|
2017-05-09 18:34:57 +00:00
|
|
|
# Need to enable intrinsics for these files.
|
2021-11-07 03:10:16 +00:00
|
|
|
set_property( SOURCE
|
|
|
|
common/utility/palette.cpp
|
|
|
|
common/utility/x86.cpp
|
|
|
|
rendering/swrenderer/r_all.cpp
|
|
|
|
APPEND_STRING PROPERTY COMPILE_FLAGS " ${SSE2_ENABLE}" )
|
2016-02-06 02:19:29 +00:00
|
|
|
endif()
|
2014-06-15 18:36:49 +00:00
|
|
|
|
2014-08-03 09:38:56 +00:00
|
|
|
if( APPLE )
|
2019-08-04 10:37:47 +00:00
|
|
|
set( LINK_FRAMEWORKS "-framework Cocoa -framework IOKit -framework OpenGL")
|
|
|
|
|
|
|
|
if( HAVE_VULKAN )
|
|
|
|
set( LINK_FRAMEWORKS "${LINK_FRAMEWORKS} -framework QuartzCore" )
|
|
|
|
endif()
|
|
|
|
|
2014-08-03 09:38:56 +00:00
|
|
|
set_target_properties(zdoom PROPERTIES
|
2019-08-04 10:37:47 +00:00
|
|
|
LINK_FLAGS "${LINK_FRAMEWORKS}"
|
2019-09-28 09:45:20 +00:00
|
|
|
MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/posix/osx/zdoom-info.plist"
|
2021-10-18 07:40:25 +00:00
|
|
|
XCODE_ATTRIBUTE_PRODUCT_BUNDLE_IDENTIFIER "org.drdteam.gzdoom"
|
2019-09-28 09:45:20 +00:00
|
|
|
XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY "" )
|
2014-08-03 09:38:56 +00:00
|
|
|
|
2019-03-09 13:46:18 +00:00
|
|
|
# Dymanic libraries like libvulkan.dylib or libMoltenVK.dylib will be loaded by dlopen()
|
|
|
|
# if placed in the directory with the main executable
|
|
|
|
set( CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -rpath @executable_path" )
|
2016-02-06 02:19:29 +00:00
|
|
|
endif()
|
2014-08-03 09:38:56 +00:00
|
|
|
|
2016-10-12 19:17:20 +00:00
|
|
|
if( WIN32 )
|
2023-08-23 20:09:58 +00:00
|
|
|
set( INSTALL_PATH . CACHE STRING "Directory where the executable will be placed during install." )
|
2016-10-12 19:17:20 +00:00
|
|
|
else()
|
2023-08-23 20:09:58 +00:00
|
|
|
set( INSTALL_PATH bin CACHE STRING "Directory where the executable will be placed during install." )
|
2016-10-12 19:17:20 +00:00
|
|
|
endif()
|
|
|
|
install(TARGETS zdoom
|
|
|
|
DESTINATION ${INSTALL_PATH}
|
|
|
|
COMPONENT "Game executable")
|
|
|
|
|
2014-01-18 23:10:48 +00:00
|
|
|
source_group("Audio Files" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/sound/.+")
|
2019-02-01 17:13:12 +00:00
|
|
|
source_group("Game Data" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/gamedata/.+")
|
2019-02-17 10:43:04 +00:00
|
|
|
source_group("Game Data\\Fonts" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/gamedata/fonts/.+")
|
2014-01-18 23:10:48 +00:00
|
|
|
source_group("Intermission" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/intermission/.+")
|
2018-12-27 16:11:10 +00:00
|
|
|
source_group("Map Loader" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/maploader/.+")
|
2014-01-18 23:10:48 +00:00
|
|
|
source_group("Menu" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/menu/.+")
|
2020-04-11 10:52:48 +00:00
|
|
|
source_group("Console" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/console/.+")
|
2019-07-14 11:59:16 +00:00
|
|
|
source_group("Playsim" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/playsim/.+")
|
|
|
|
source_group("Playsim\\Bots" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/playsim/bots/.+")
|
|
|
|
source_group("Playsim\\FraggleScript" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/playsim/fragglescript/.+")
|
|
|
|
source_group("Playsim\\Map Thinkers" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/playsim/mapthinkers/.+")
|
2019-01-31 18:58:17 +00:00
|
|
|
source_group("Rendering" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/rendering/.+")
|
2019-02-23 17:08:57 +00:00
|
|
|
source_group("Rendering\\2D" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/rendering/2d/.+")
|
2019-01-31 18:58:17 +00:00
|
|
|
source_group("Rendering\\Hardware Renderer" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/gl/.+")
|
|
|
|
source_group("Rendering\\Hardware Renderer\\Scene" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/rendering/hwrenderer/scene/.+")
|
|
|
|
source_group("Rendering\\Software Renderer" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/rendering/swrenderer/.+")
|
|
|
|
source_group("Rendering\\Software Renderer\\Drawers" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/rendering/swrenderer/drawers/.+")
|
|
|
|
source_group("Rendering\\Software Renderer\\Scene" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/rendering/swrenderer/scene/.+")
|
|
|
|
source_group("Rendering\\Software Renderer\\Segments" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/rendering/swrenderer/segments/.+")
|
|
|
|
source_group("Rendering\\Software Renderer\\Line" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/rendering/swrenderer/line/.+")
|
|
|
|
source_group("Rendering\\Software Renderer\\Plane" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/rendering/swrenderer/plane/.+")
|
|
|
|
source_group("Rendering\\Software Renderer\\Things" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/rendering/swrenderer/things/.+")
|
|
|
|
source_group("Rendering\\Software Renderer\\Viewport" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/rendering/swrenderer/viewport/.+")
|
2017-11-25 12:19:00 +00:00
|
|
|
source_group("Render Data" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/r_data/.+")
|
2014-01-18 23:10:48 +00:00
|
|
|
source_group("Render Interface" FILES r_defs.h r_renderer.h r_sky.cpp r_sky.h r_state.h r_utility.cpp r_utility.h)
|
2016-10-12 17:22:33 +00:00
|
|
|
source_group("Platforms\\POSIX Files" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/posix/.+")
|
|
|
|
source_group("Platforms\\Win32 Files" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/win32/.+")
|
2017-02-08 11:24:08 +00:00
|
|
|
source_group("Scripting\\Decorate frontend" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/scripting/decorate/.+")
|
2020-04-11 17:38:59 +00:00
|
|
|
source_group("Scripting\\ZScript frontend" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/scripting/zscript/.+")
|
2017-02-08 11:24:08 +00:00
|
|
|
source_group("Scripting\\Compiler backend" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/scripting/backend/.+")
|
2016-10-15 13:10:48 +00:00
|
|
|
source_group("Scripting" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/scripting/.+")
|
2020-04-11 10:52:48 +00:00
|
|
|
source_group("Common" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/.+")
|
2020-04-11 16:26:09 +00:00
|
|
|
source_group("Common\\Audio" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/audio/.+")
|
2020-04-11 16:30:22 +00:00
|
|
|
source_group("Common\\Audio\\Sound" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/audio/sound/.+")
|
|
|
|
source_group("Common\\Audio\\Sound\\Third-party" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/audio/sound/thirdparty/.+")
|
2020-04-11 16:26:09 +00:00
|
|
|
source_group("Common\\Audio\\Music" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/audio/music.+")
|
2020-04-11 16:11:43 +00:00
|
|
|
source_group("Common\\Console" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/console/.+")
|
|
|
|
source_group("Common\\Utility" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/utility/.+")
|
|
|
|
source_group("Common\\Engine" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/engine/.+")
|
2020-04-11 17:49:45 +00:00
|
|
|
source_group("Common\\2D" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/2d/.+")
|
2021-05-22 00:01:42 +00:00
|
|
|
source_group("Common\\Cutscenes" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/cutscenes/.+")
|
2020-04-11 17:28:30 +00:00
|
|
|
source_group("Common\\Objects" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/objects/.+")
|
2020-04-22 18:42:13 +00:00
|
|
|
source_group("Common\\Menu" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/menu/.+")
|
2020-04-11 17:11:59 +00:00
|
|
|
source_group("Common\\Fonts" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/fonts/.+")
|
2020-04-11 16:11:43 +00:00
|
|
|
source_group("Common\\File System" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/filesystem/.+")
|
2023-08-22 19:20:28 +00:00
|
|
|
source_group("Common\\File System\\Include" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/filesystem/include/.+")
|
|
|
|
source_group("Common\\File System\\Source" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/filesystem/source/.+")
|
2020-04-11 17:28:30 +00:00
|
|
|
source_group("Common\\Scripting" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/scripting/.+")
|
2020-04-11 17:37:15 +00:00
|
|
|
source_group("Common\\Scripting\\Interface" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/scripting/interface/.+")
|
2020-04-11 17:38:59 +00:00
|
|
|
source_group("Common\\Scripting\\Frontend" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/scripting/frontend/.+" FILES ${CMAKE_CURRENT_BINARY_DIR}/zcc-parse.c ${CMAKE_CURRENT_BINARY_DIR}/zcc-parse.h)
|
2020-04-11 17:37:15 +00:00
|
|
|
source_group("Common\\Scripting\\Backend" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/scripting/backend/.+")
|
2020-04-11 17:28:30 +00:00
|
|
|
source_group("Common\\Scripting\\Core" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/scripting/core/.+")
|
|
|
|
source_group("Common\\Scripting\\JIT" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/scripting/jit/.+")
|
|
|
|
source_group("Common\\Scripting\\VM" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/scripting/vm/.+")
|
2020-04-23 19:48:50 +00:00
|
|
|
source_group("Common\\Platforms\\Cocoa Files" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/platform/posix/cocoa/.+")
|
|
|
|
source_group("Common\\Platforms\\OS X Files" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/platform/posix/osx/.+")
|
|
|
|
source_group("Common\\Platforms\\Unix Files" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/platform/posix/unix/.+")
|
|
|
|
source_group("Common\\Platforms\\SDL Files" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/platform/posix/sdl/.+")
|
2020-04-23 20:26:30 +00:00
|
|
|
source_group("Common\\Platforms\\Win32 Files" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/platform/win32/.+")
|
2020-04-12 20:10:15 +00:00
|
|
|
source_group("Common\\Rendering" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/rendering/.+")
|
2020-04-25 20:17:41 +00:00
|
|
|
source_group("Common\\Rendering\\Hardware Renderer" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/rendering/hwrenderer/.+")
|
2020-04-25 20:37:27 +00:00
|
|
|
source_group("Common\\Rendering\\Hardware Renderer\\Data" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/rendering/hwrenderer/data/.+")
|
|
|
|
source_group("Common\\Rendering\\Hardware Renderer\\Postprocessing" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/rendering/hwrenderer/postprocessing/.+")
|
2020-04-12 20:10:15 +00:00
|
|
|
source_group("Common\\Rendering\\OpenGL Loader" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/rendering/gl_load/.+")
|
2020-04-26 12:44:19 +00:00
|
|
|
source_group("Common\\Rendering\\OpenGL Backend" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/rendering/gl/.+")
|
2021-08-03 16:46:45 +00:00
|
|
|
source_group("Common\\Rendering\\GLES Backend" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/rendering/gles/.+")
|
2020-04-29 20:17:35 +00:00
|
|
|
source_group("Common\\Rendering\\Vulkan Renderer\\System" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/rendering/vulkan/system/.+")
|
|
|
|
source_group("Common\\Rendering\\Vulkan Renderer\\Renderer" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/rendering/vulkan/renderer/.+")
|
|
|
|
source_group("Common\\Rendering\\Vulkan Renderer\\Shaders" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/rendering/vulkan/shaders/.+")
|
|
|
|
source_group("Common\\Rendering\\Vulkan Renderer\\Textures" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/rendering/vulkan/textures/.+")
|
2020-04-27 18:50:46 +00:00
|
|
|
source_group("Common\\Models" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/models/.+")
|
2020-04-11 17:28:30 +00:00
|
|
|
source_group("Common\\Textures" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/textures/.+")
|
2020-04-11 17:04:48 +00:00
|
|
|
source_group("Common\\Textures\\Hires" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/textures/hires/.+")
|
|
|
|
source_group("Common\\Textures\\Hires\\HQ Resize" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/textures/hires/hqnx/.+")
|
|
|
|
source_group("Common\\Textures\\Hires\\HQ Resize MMX version" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/textures/hires/hqnx_asm/.+")
|
|
|
|
source_group("Common\\Textures\\Hires\\XBRZ" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/textures/hires/xbr/.+")
|
|
|
|
source_group("Common\\Textures\\Formats" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/textures/formats/.+")
|
2020-04-11 10:52:48 +00:00
|
|
|
source_group("Common\\Third Party" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/thirdparty/.+")
|
|
|
|
source_group("Common\\Third Party\\Math" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/thirdparty/math/.+")
|
|
|
|
source_group("Common\\Third Party\\RapidJSON" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/thirdparty/rapidjson/.+")
|
2020-04-11 11:02:52 +00:00
|
|
|
source_group("Common\\Third Party\\SFMT" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/thirdparty/sfmt/.+")
|
2023-08-09 06:22:47 +00:00
|
|
|
source_group("Common\\Third Party\\stb" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/thirdparty/stb/.+")
|
2019-01-31 19:33:52 +00:00
|
|
|
source_group("Utility" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/utility/.+")
|
|
|
|
source_group("Utility\\Node Builder" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/utility/nodebuilder/.+")
|
2022-12-08 08:50:06 +00:00
|
|
|
source_group("Utility\\Smackerdec" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/smackerdec/.+")
|
|
|
|
source_group("Utility\\Smackerdec\\Headers" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/libsmackerdec/include/.+")
|
|
|
|
source_group("Utility\\Smackerdec\\Sources" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/libsmackerdec/src/.+")
|
2017-01-20 21:59:31 +00:00
|
|
|
source_group("Statusbar" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/g_statusbar/.+")
|
2014-01-18 23:10:48 +00:00
|
|
|
source_group("Versioning" FILES version.h win32/zdoom.rc)
|
|
|
|
source_group("Xlat" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/xlat/.+" FILES ${CMAKE_CURRENT_BINARY_DIR}/xlat_parser.c ${CMAKE_CURRENT_BINARY_DIR}/xlat_parser.h)
|
2020-04-11 11:46:15 +00:00
|
|
|
source_group("Source Files" FILES ${CMAKE_CURRENT_BINARY_DIR}/sc_man_scanner.h common/engine/sc_man_scanner.re)
|