dhewg
78822ac932
Disable warning 4267 for msvc
...
Spams the console due to 32bit data types on 64bit.
2012-07-06 01:07:00 +02:00
dhewg
68284f9a09
Get rid of empty sys/linux/dedicated.cpp
2012-07-06 01:06:56 +02:00
dhewg
9cbc9ff6db
Get rid of win_cpu.cpp
...
All unused now.
2012-07-06 01:06:54 +02:00
dhewg
6179e855a9
Use system zlib
2012-07-04 18:56:29 +02:00
dhewg
764799c14f
Initial make install
target for *nix
...
cmake fails it, so *nix only.
2012-07-04 02:18:51 +02:00
dhewg
cac32559e7
Remove all gamepak FileSystem<->Async[Client|Server] code
2012-07-04 02:18:48 +02:00
dhewg
be37221024
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.
2012-07-04 02:18:43 +02:00
dhewg
1a5ddc01d0
Add TODO for OSX .dylib's for the bundle
2012-07-04 02:18:42 +02:00
dhewg
fecf720c75
Introduce CMAKE_INSTALL_PREFIX relative paths
...
configure style install dirs.
2012-07-04 02:18:42 +02:00
dhewg
262df52cdd
Drop the CPU suffix from libraries on all platforms
2012-07-03 21:13:00 +02:00
dhewg
3256783af1
Get rid of ID_DEMO_BUILD
...
There are no demo pk4s compatible to this 1.3.1 codebase.
2012-07-03 21:12:55 +02:00
dhewg
e2ca3d1f84
Get rid of sys_stub.cpp
...
Unused.
2012-07-03 21:12:54 +02:00
dhewg
45a73e2dcd
Add the build target "Profile" suitable for profiling
2012-01-19 00:53:16 +01:00
dhewg
898f690fc4
This is dhewm 3
...
Rename project, now at https://github.com/dhewm
2012-01-14 20:06:05 +01:00
dhewg
b7ce0ef149
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".
2012-01-14 15:19:12 +01:00
dhewg
827124431e
CMake: Detect libcurl and use it when found
...
Move ID_ENABLE_CURL to config.h
2012-01-14 15:09:29 +01:00
dhewg
545d98fc08
CMake: Create config.h
...
Use config.h for configure time settings.
2012-01-14 15:09:27 +01:00
dhewg
9108c4ec9c
CMake: Use CMAKE_SOURCE_DIR
...
Instead of CMAKE_CURRENT_SOURCE_DIR.
2012-01-14 15:02:26 +01:00
dhewg
79fa35d0ec
Get rid of ID_MCHECK
...
mcheck() is not thread safe, use MALLOC_CHECK_ or TCMalloc
instead.
2012-01-08 12:24:57 +01:00
spiral
468b266860
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)
2012-01-08 12:24:45 +01:00
dhewg
035dcbcd46
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.
2012-01-07 20:57:07 +01:00
dhewg
fcc947433b
Disable a few MSVC warnings
...
These just spam the console. Some are useless, some need to be
looked at at some point.
2012-01-07 19:01:54 +01:00
dhewg
47e486b62a
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.
2012-01-07 19:01:53 +01:00
dhewg
eb2ecfa22a
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.
2012-01-07 19:00:44 +01:00
spiral
ec0f836f41
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.
2012-01-05 00:24:15 +01:00
scottWakeling
c08249b9db
Fix semi-colons being inserted into ldflags
...
It is causing clang++ to error when linking game{cpu}.dylib
2012-01-05 00:24:14 +01:00
dhewg
d4ec9cc87f
OSX .dylib's do not get a CPU suffix
2012-01-05 00:24:14 +01:00
dhewg
bf1f05bd87
Rename game${cpu}-d3xp to d3xp${cpu}
2012-01-05 00:24:14 +01:00
dhewg
7f0b7b54ec
Drop the cpu suffix on binaries
2012-01-05 00:24:14 +01:00
dhewg
1fed72fbb4
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.
2012-01-05 00:24:13 +01:00
dhewg
3c90c12605
Don't link against X11 libraries
...
Not required anymore. All backends use SDL based implementations
now.
2012-01-05 00:24:13 +01:00
dhewg
bf69f7ec76
Use SDL GLimp and input implementations on OSX
2012-01-05 00:24:13 +01:00
dhewg
8df54ffad2
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.
2012-01-05 00:24:12 +01:00
dhewg
cab89769b4
Get rid of dead code in the OSX backend
...
Not used by anything.
2012-01-05 00:24:11 +01:00
dhewg
b83868090c
Use SDL GLimp and input implementations on Windows
...
The DirectX SDK is not required anymore.
2012-01-02 15:44:40 -05:00
dhewg
79aea4082f
Port Linux events to SDL
...
New CVar "in_kbd" to set the layout for the keyboard. SDL 1.2
doesn't offer any way to determine it, and we need this feature
to use the same key for toggling the console independent of the
keyboard layout.
The old "in_nograb" from the Linux backend is still supported.
2012-01-02 15:44:16 -05:00
dhewg
502aaa6fe2
Port Linux GLimp to SDL
...
Use SDL to set video modes, get a GL context and detect the
amount of VRAM.
As with the Linux GLimp implementation, sys_videoRam can be used
in case the SDL detection fails.
2012-01-02 15:44:09 -05:00
dhewg
3be7fae15c
Always link the Windows binaries against OpenGL
...
Just as with every other platform.
2012-01-02 15:43:59 -05:00
spiral
1507a657d4
Add ID_GAME_API for dllexport/attribute(visibility)
...
Delete obsolete Game.def exports files
2011-12-23 13:24:47 +01:00
spiral
d214a0f819
VS Pro doesn't choose the right default like Express, so be explicit
2011-12-23 13:06:05 +01:00
dhewg
9e715ba7cc
Check for jpeg_mem_src()
...
This function only exists starting with libjpeg8.
Check for existence and provide an implementation if necessary.
This allows libjpeg6 to be used.
Code borrowed from libjpeg8, adapt copyright in README
accordingly.
2011-12-22 14:10:29 +01:00
dhewg
acdfb93552
Fix compiler checks for newer gcc versions
...
Use CXX instead of C checks - newer gcc versions refuse some
C++ flags when compiling C.
2011-12-22 12:33:27 +01:00
spiral
540bbae490
CMake support for MSVC
...
Use the WIN32 flag for add_executable.
2011-12-22 11:21:54 +01:00
dhewg
4150029322
Unify CPUID_FTZ and CPUID_DAZ
...
Get rid of the 2 CPUID flags and combine them with SSE in one
implementation.
SSE flags can now be set on all x86 and x86_64 platforms -
independent of -ffast-math.
Helper defines borrowed from STREFLOP.
2011-12-22 10:38:40 +01:00
dhewg
e7482b4957
Port all thread related functions to SDL
...
Setting thread priorities has been dropped (it is not portable).
The background download thread now exits gracefully.
g_threads is not public anymore.
2011-12-22 10:38:37 +01:00
dhewg
1a25b165b0
Port critical sections and events to SDL
...
Use SDL mutexes and conditions.
One new critical section CRITICAL_SECTION_SYS for events.
2011-12-21 17:50:35 +01:00
dhewg
005677494f
Initial SDL setup
...
Use SDL_main on all platforms.
Fix main() for non-const argv so it matches with the SDL
prototype.
Adapt win32 WinMain() to main() and get rid of the win32 special
case in Common::Init().
2011-12-21 17:40:05 +01:00
dhewg
1358d397e4
Link MinGW binaries with -mwindows
...
mingw-w64 requires this when linking gui applications.
2011-12-20 12:17:45 +01:00
dhewg
278dae9345
Get rid of -Wno-unknown-pragmas
...
Not required anymore.
2011-12-19 23:21:49 +01:00
dhewg
73008b0691
Only compile idlib once
...
Build one static idlib and link the binaries against it.
2011-12-19 20:20:57 +01:00
dhewg
e5ec63ce06
Move the game include directory to the build system
...
Don't include based on a preprocessor symbol, let the build
system make the correct decision.
2011-12-19 20:05:20 +01:00
dhewg
8ca99602aa
TypeInfoGen is standalone, don't compile/link it
...
Neither the core or the game libraries need it.
2011-12-16 16:37:58 +01:00
dhewg
506569529a
Fix compilation of demo binaries
...
invalid conversion from ‘const char*’ to ‘char*’
There are no demo pk4 files available compatible to this 1.3.1
codebase. Add a note about it.
2011-12-16 00:07:16 +01:00
dhewg
b3999a264c
Overwrite CMake default C[XX]FLAGS
...
CMake sets default flags for the standard build types.
We want to replace them, not merge them.
Reported by azalyn.
2011-12-15 17:51:56 +01:00
dhewg
76939c6de7
Delete redundant files
2011-12-15 17:51:36 +01:00
dhewg
b62b033b88
Get rid of all idAudioHardware implementations
2011-12-14 18:37:03 +01:00
dhewg
1dad3d711f
cmake: Get rid of "-m32" check
...
This doesn't work. Always add -m32 when X86 was set.
2011-12-14 18:20:31 +01:00
dhewg
5c3a28e027
Basic infrastructure to build with MinGW
...
Add WIN32 support to CMake (core and games, no dedicated for now).
Only use MFC when it is available.
2011-12-14 18:19:38 +01:00
dhewg
5052f42c9e
Add a CMake build system
...
Tested on FreeBSD, Linux, and a ghetto rigged OSX i686 cross
compiler.
Find[OGG|Vorbis|VorbisFile].cmake borrowed from osgAudio
2011-12-14 02:40:49 +01:00