GZDoom is a feature centric port for all Doom engine games, based on ZDoom, adding an OpenGL renderer and powerful scripting capabilities
Find a file
William Breathitt Gray f676cd81d2 Remove FindSDL2 find-module, use sdl2-config.cmake instead
This requires SDL >= 2.0.4.

Since <https://bugzilla.libsdl.org/show_bug.cgi?id=2464> was fixed in
SDL 2.0.4, SDL behaves as a CMake "config-file package", even if it was
not itself built using CMake: it installs a sdl2-config.cmake file to
${libdir}/cmake/SDL2, which tells CMake where to find SDL's headers and
library, analogous to a pkg-config .pc file.

As a result, we no longer need to copy/paste a "find-module package"
to be able to find a system copy of SDL >= 2.0.4 with find_package(SDL2).
Find-module packages are now discouraged by the CMake developers, in
favour of having upstream projects behave as config-file packages.

This results in a small API change: FindSDL2 used to set SDL2_INCLUDE_DIR
and SDL2_LIBRARY, but the standard behaviour for config-file packages is
to set <name>_INCLUDE_DIRS and <name>_LIBRARIES. Use the CONFIG keyword
to make sure we search in config-file package mode, and will not find a
FindSDL2.cmake in some other directory that implements the old interface.

In addition to deleting redundant code, this avoids some assumptions in
FindSDL2 about the layout of a SDL installation. The current libsdl2-dev
package in Debian breaks those assumptions; this is considered a bug
and will hopefully be fixed soon, but it illustrates how fragile these
assumptions can be. We can be more robust against different installation
layouts by relying on SDL's own CMake integration.

When linking to a copy of CMake in a non-standard location, users can
now set the SDL2_DIR or CMAKE_PREFIX_PATH environment variable to point
to it; previously, these users would have used the SDL2DIR environment
variable. This continues to be unnecessary if using matching system-wide
installations of CMake and SDL2, for example both from Debian.

This is based on the patch written by Simon McVittie for OpenJK:
52030235f0
2021-05-02 12:45:45 +03:00
.github/workflows - unified continuous integration settings with Raze 2021-04-01 11:44:55 +03:00
bin/windows/zmusic - implemented replay gain calculation and management. 2021-03-10 23:06:21 +01:00
cmake Remove FindSDL2 find-module, use sdl2-config.cmake instead 2021-05-02 12:45:45 +03:00
docs - changed license of portal.cpp to GPLv3 2019-08-21 21:31:12 +02:00
fm_banks Re-compute all sound delays inside of GENMIDI.GS.wopl 2020-10-04 08:14:22 +02:00
libraries - bumped CMake version to 3.1.0 in all projects to reduce warning spam in recent versions. 2021-03-08 13:58:29 +01:00
soundfont - added a small default sound font that needs to be installed with the project. 2017-05-13 12:38:19 +02:00
specs Add handling for drawfullheight flag 2020-01-11 13:24:02 +01:00
src Remove FindSDL2 find-module, use sdl2-config.cmake instead 2021-05-02 12:45:45 +03:00
tools - fixed cross-compilation support 2021-03-14 15:01:51 +02:00
unused - create an intermediate structure between sectors and subsectors. 2018-11-04 20:10:51 +01:00
wadsrc Allow settable render styles for status bar drawing functions DrawTexture, DrawImage and DrawString 2021-04-26 23:04:39 +02:00
wadsrc_bm - bumped CMake version to 3.1.0 in all projects to reduce warning spam in recent versions. 2021-03-08 13:58:29 +01:00
wadsrc_extra New letter И for Strife 2021-03-18 12:35:32 +01:00
wadsrc_lights - bumped CMake version to 3.1.0 in all projects to reduce warning spam in recent versions. 2021-03-08 13:58:29 +01:00
wadsrc_widescreen - bumped CMake version to 3.1.0 in all projects to reduce warning spam in recent versions. 2021-03-08 13:58:29 +01:00
.gitattributes - force git to store Windows files with native line-endings. it cannot be trusted to handle crlf correctly. 2020-10-27 12:53:59 -04:00
.gitignore Revert "AsmJit update" 2019-10-07 20:34:55 +02:00
.gitmodules - add submodule for widescreen to Nash's WidePix repository 2020-10-27 10:23:12 -04:00
CMakeLists.txt - enabled Vulkan support by default 2020-12-27 13:29:43 +02:00
LICENSE - add LICENSE file for GitHub's info displays 2018-07-21 07:03:52 -04:00
README.md Update README.md 2020-12-20 10:26:59 -05:00

Welcome to GZDoom!

Build Status

GZDoom is a modder-friendly OpenGL and Vulkan source port based on the DOOM engine

Copyright (c) 1998-2021 ZDoom + GZDoom teams, and contributors

Doom Source (c) 1997 id Software, Raven Software, and contributors

Please see license files for individual contributor licenses

Special thanks to Coraline of the EDGE team for allowing us to use her README.md as a template for this one.

Licensed under the GPL v3

https://www.gnu.org/licenses/quick-guide-gplv3.en.html

How to build GZDoom

To build GZDoom, please see the wiki and see the "Programmer's Corner" on the bottom-right corner of the page to build for your platform.