dhewg
68c38d452b
cmake: set SDL_BUILDING_LIBRARY for win32 and osx
...
While that's a lie it makes FindSDL skip SDLmain, which we have
in tree and compile ourselves.
2018-08-20 01:46:36 +02:00
dhewg
2f42541154
Don't link against OpenGL
...
Dynamically load all symbols at runtime.
This in in preparation for SDL2/OpenGLES.
2018-08-20 01:46:36 +02:00
dhewg
4e90fff060
Remove the deprecated arb renderer
2018-08-20 01:46:36 +02:00
dhewg
17d609564a
Remove the deprecated nv20 renderer
2018-08-20 01:46:36 +02:00
dhewg
ff99aa9477
Remove the deprecated nv10 renderer
2018-08-20 01:46:36 +02:00
dhewg
3d27d4776c
Remove the ATI fragment shader emulation
...
This was only used by the r200 renderer on OSX.
2018-08-20 01:46:36 +02:00
dhewg
4859d1837b
Remove the deprecated r200 renderer
2018-08-20 01:46:36 +02:00
dhewg
755bffe601
Delete util_stub.cpp
...
Unused.
2018-08-20 01:46:36 +02:00
dhewg
17b42bb46e
cmake: indent whitespace fixes
2018-08-20 01:46:36 +02:00
dhewg
ffbbcaf726
cmake: Whitespace fixes for consistency
2018-08-20 01:46:36 +02:00
dhewg
9d9ba03b90
cmake: default to build d3xp
2018-08-20 01:46:36 +02:00
dhewg
105aec84e1
cmake: Remove fugly hack to compile 32bit binaries
...
This doesn't work on multiarch systems. A proper cmake toolchain file
has to be used instead.
2018-08-20 01:46:36 +02:00
dhewg
28ff955897
cmake: Fix error when curl is not found
...
Set the library name to an empty string to prevent this error:
CMake Error: The following variables are used in this project, but they
are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the
CMake files:
CURL_LIBRARY (ADVANCED)
2018-08-20 01:46:36 +02:00
dhewg
a3456b9004
cmake: Use GNUInstallDirs
...
Provides configure style overwritable path settings.
Include a fallback for cmake versions without GNUInstallDirs.
2018-08-20 01:46:35 +02:00
dhewg
95c34a8a00
Get rid of the signal handler
...
SDL covers this via e.g. SDL_QUIT event on ctrl+c.
2018-08-20 01:46:35 +02:00
dhewg
f6b6f1df97
Correct the cpu type for 64bit msvc
2018-08-20 01:46:35 +02:00
dhewg
f4f8319316
Disable warning 4267 for msvc
...
Spams the console due to 32bit data types on 64bit.
2018-08-20 01:46:35 +02:00
dhewg
d75c2654c0
Get rid of empty sys/linux/dedicated.cpp
2018-08-20 01:46:35 +02:00
dhewg
5db94cb6a0
Get rid of win_cpu.cpp
...
All unused now.
2018-08-20 01:46:35 +02:00
dhewg
04bea1b10f
Use system zlib
2018-08-20 01:46:35 +02:00
dhewg
d250bf9262
Initial make install
target for *nix
...
cmake fails it, so *nix only.
2018-08-20 01:46:34 +02:00
dhewg
ed099aa128
Remove all gamepak FileSystem<->Async[Client|Server] code
2018-08-20 01:46:34 +02:00
dhewg
a31bb00e21
Rename game libraries to the game name
...
Never use "game" as library name, use the game name instead. This
allows d3xp/mods to coexist in a single (installation-)directory.
This paves the way for future `make install` or binary installers.
Additionally, the "mods" menu entry works from within the game gui.
2018-08-20 01:46:34 +02:00
dhewg
47672c4592
Add TODO for OSX .dylib's for the bundle
2018-08-20 01:46:34 +02:00
dhewg
e67598eeb5
Introduce CMAKE_INSTALL_PREFIX relative paths
...
configure style install dirs.
2018-08-20 01:46:34 +02:00
dhewg
98791a0ea5
Drop the CPU suffix from libraries on all platforms
2018-08-20 01:46:34 +02:00
dhewg
e632cd030b
Get rid of ID_DEMO_BUILD
...
There are no demo pk4s compatible to this 1.3.1 codebase.
2018-08-20 01:46:34 +02:00
dhewg
2d43892ef3
Get rid of sys_stub.cpp
...
Unused.
2018-08-20 01:46:34 +02:00
dhewg
5199d8ea65
Add the build target "Profile" suitable for profiling
2018-08-20 01:46:32 +02:00
dhewg
9de64efa62
This is dhewm 3
...
Rename project, now at https://github.com/dhewm
2018-08-20 01:46:32 +02:00
dhewg
151288e170
CMake: Use config.h for BUILD_OS and BUILD_CPU
...
This fixes, among others, FreeBSD 64bit builds where the build
system used a "amd64" suffix and runtime "x86_64".
2018-08-20 01:46:32 +02:00
dhewg
a6796cb444
CMake: Detect libcurl and use it when found
...
Move ID_ENABLE_CURL to config.h
2018-08-20 01:46:32 +02:00
dhewg
6dfe95e732
CMake: Create config.h
...
Use config.h for configure time settings.
2018-08-20 01:46:32 +02:00
dhewg
9ee84519fa
CMake: Use CMAKE_SOURCE_DIR
...
Instead of CMAKE_CURRENT_SOURCE_DIR.
2018-08-20 01:46:32 +02:00
dhewg
a5d6a76961
Get rid of ID_MCHECK
...
mcheck() is not thread safe, use MALLOC_CHECK_ or TCMalloc
instead.
2018-08-20 01:46:31 +02:00
spiral
f9af2c0153
Remove hard-wired -framework OpenAL
...
We already link to OPENAL_LIBRARY further down.
Log some debug OpenAL info, mainly so OSX users can check they are not
using Apple's OpenAL. OpenAL Soft is recommended as it fixes many
issues.
I specify it as follows:
cmake -DOPENAL_LIBRARY=/usr/local/lib/libopenal.dylib -DOPENAL_INCLUDE_DIR=/usr/local/include -GXcode ../neo/
(because FindOpenAL.cmake prefers the /System frameworks)
2018-08-20 01:46:31 +02:00
dhewg
4be94a8ff5
Move jpeg_memory_src()
...
Found another copy in renderer/Cinematic.cpp. Move the
newer implementation from renderer/Image_files.cpp in its
own file and use the libjpeg v8c license blob (which is where
this code comes from).
Adapt README too with the v8c license.
2018-08-20 01:46:31 +02:00
dhewg
f5db1e5dcf
Disable a few MSVC warnings
...
These just spam the console. Some are useless, some need to be
looked at at some point.
2018-08-20 01:46:31 +02:00
dhewg
a1430d546f
Add SDL_win32_main.c
...
Don't link against SDLmain.[a|lib], always compile it.
We can use pure C MinGW cross compiled libraries with MSVC, and
this is the only static library used.
2018-08-20 01:46:31 +02:00
dhewg
568ab14658
Add support for the doom3-libs repo
...
Single CMake variable "DOOM3LIBS" to point to the repo of
binaries to make CMake find libraries from there.
2018-08-20 01:46:31 +02:00
spiral
4740b5b2be
Generate an .app bundle for OSX
...
Add missing SDLMain and icon/resource files to generated .xcodeproj
Now builds on Lion in XCode4 with the 10.6 SDK using LLVM-GCC4.2.
Also tested on WinXP in VS 9 2008 Professional, I don't appear to have
broken anything there, stuff like MACOSX_BUNDLE_INFO_PLIST is
effectively ignored.
2018-08-20 01:46:31 +02:00
scottWakeling
0d01f4f90b
Fix semi-colons being inserted into ldflags
...
It is causing clang++ to error when linking game{cpu}.dylib
2018-08-20 01:46:31 +02:00
dhewg
16e2bf160d
OSX .dylib's do not get a CPU suffix
2018-08-20 01:46:31 +02:00
dhewg
eab62d8ef3
Rename game${cpu}-d3xp to d3xp${cpu}
2018-08-20 01:46:31 +02:00
dhewg
8e1fab5a5b
Drop the cpu suffix on binaries
2018-08-20 01:46:31 +02:00
dhewg
11eb754b41
Get rid of Sys_DoPreferences()
...
The OSX backend was the only one utilizing this to set CVars
for the video mode.
Not required anymore since its now based on SDL.
2018-08-20 01:46:31 +02:00
dhewg
f29a3d936f
Don't link against X11 libraries
...
Not required anymore. All backends use SDL based implementations
now.
2018-08-20 01:46:31 +02:00
dhewg
8473a83ae9
Use SDL GLimp and input implementations on OSX
2018-08-20 01:46:31 +02:00
dhewg
0993ec8760
Move OSX ATI_fragment_shader functions
...
Move the software implementation to
sys/glimp_ati_fragment_shader.cpp in preparation to move to
the SDL based GLimp and events.
2018-08-20 01:46:31 +02:00
dhewg
15f23f48ac
Get rid of dead code in the OSX backend
...
Not used by anything.
2018-08-20 01:46:31 +02:00