* Start of supporting multiple platform drivers
* Remove dependency of null platform on SDL2
* cmake: support loading SDL2 dynamically
* Move CMake options to project root for SDL2::SDL2 access
* Don't link to OpenGL
* Move common dynamic loading to header
* Add SDL 1.2 platform
* Add SDL1 platform backend
* Remove accidental addition
* Try multiple platform drivers until we find a good one
* Fix sdl1 mouse
* Use my BRender fork FIXME FIXME FIXME REMOVEME REMOVEME REMOVEME
* Build dethrace supporting SDL1 on ci
* use dethrace-labs BRender fork
* using dossys, virtual_fb driver
* keyboard and hires working with dossys
* adds explicit opengl mode, opengles support, use-after-free fix
* remove compiler warnings
* bump BRender dep to latest commit
* adds mouse code from DOS version which correctly scales based on pixel size
* more 3dfx fixes, adds game-completed arg
* Build arm64 Windows executable
* Use dbghelp to print a stacktrace and use addr2line as last resort
* Print stack depth
* Cleanup windows.c includes + use OS_Basename + define [RX]_OK ourselves
* Cannot do _access(X_OK) on Windows
* SymInitialize: don't invade process
* Use _access_s
* Ignore failure to get symbol line and line number
* Only consider using addr2line when ADDR2LINE is set
* Fix unittests with null renderer
* cmake: fix configuration when building from a non-git/non-release archive
* test: don't access freed memory
* cmake+ci: use libsdl-org/setup-sdl for SDL2 + create package with CMake
* Install all files to root + SDL2.dll
* windows: print strerror message on failure to open file
* Remove leading _ from _program_name
* A few windows functions can be static
* ci: Always upload artifact
* linux+macos: Print message on stderr when fopen fails
* Remove merge artifacts
* Remove stray '#include <stdio.h>'
* Remove 'SCRATCH' file
* cmake: move as much as variable assignments after project()
* Embed version in dethrace executable
* Allow installing DethRace + create binary archive
* Use ashutoshvarma/setup-ninja github action for getting ninja
* cmake: group user configurable options
* cmake: building in debug mode will add -g
* cmake: provide dethrace_werror interface target + DETHRACE_WERROR cmake option
* Update SDL2 to latest release
* Rename dethrace_werror target to compile_with_werror
* Also add -Werror to dethrace
* Include windows.h before imagehlp.h
This fixes a long list of undefined type errors when building with mingw (on Linux).
* Remove matherr function
This function is provided by the c library.
* Use GetFileAttributesA to filter files
dirent->d_type is not available in all implementation.
Posix only mandates the fields d_name and d_ino.
* Use FindOpenGL.cmake to get the opengl library
Mingw has no libGL.so, but has libopengl32.a. Use the CMake module to abstract this away.
* harness needs to link to dbghelp
This fixes undefined references to:
__imp_SymInitialize, __imp_SymGetModuleBase64,
__imp_SymFunctionTableAccess64, __imp_StackWalk64 and __imp_SymCleanup.
* Don't add -g to compile options.
CMAKE_BUILD_TYPE=(Debug|RelWithDebInfo) takes care of this
* Set test file name before running tests in suite.
This causes the message to contain the correct file name where an assertion failed/succeeded.
* Use wrapper to sleep for number on seconds in tests
sleep on Windows expects milliseconds.
sleep on Posix expects seconds.
* Use char* instead of void*
MSVC complained that it couldn't determine the size of void
* Don't test state of removed resource after deletion when building Debug
When building in Debug configuration, the compiler may mark deleted memory ranges with some value.
Therefore, we cannot expect deleted memory to remain unchanged.
(MSVC in Debug mode does this)
* Use helper to get system temporary folder.
Using /tmp on Windows failed hard.
* Header containing sse3 intrinsics is pmmintrin.h
See https://github.com/recp/cglm/pull/234
* Add errno.h include for ENOTSUP
* Fix test_utility_GetALineWithNoPossibleService: avoid strcpy of uninitialized s
Found by running the tests with CMAKE_BUILD_TYPE=Debug with MSVC
* Add mingw@Linux and mingw@Windows jobs to github workflow
* Rename build-windows.ps1 script to build-msvc.ps1.
Also bump the versions of SDL2 and ninja, used in this script.
* Run tests in github jobs running on Windows
Co-authored-by: Dethrace Engineering Laboratory <78985374+dethrace-labs@users.noreply.github.com>