mirror of
https://github.com/UberGames/ioef.git
synced 2024-11-24 05:01:40 +00:00
2a71948f21
GNU platforms (Linux, kFreeBSD, Hurd) have endian.h to determine endianness, so all architectures except x86_64 are in fact treated identically, except that their ARCH_STRING is different. The ARCH_STRING must always be identical to the ARCH from the Makefile, otherwise the engine will not find its cgame, game and ui plugins under their expected names and startup will fail. If we pass it in from the Makefile, then an identical value is guaranteed, and we can get rid of an increasingly long list of defined(__some_cpu__) tests. The one remaining quirk is that we test __x86_64__ to determine whether to define idx64; I've kept that, but separated it from the ARCH_STRING. On non-Linux platforms we only support a few architectures anyway, so keeping the list up to date is less of a burden; *BSD porters could probably use the same technique to get support for lots of architectures with little effort, but I have not done that here, because I cannot test it. Windows must continue to support preprocessor-based architecture tests in any case, so that the MSVC solutions (which do not use the Makefile) can continue to work. However, Windows only runs on a few CPU families, so this shouldn't be a significant burden in practice. When cross-compiling, the tools are compiled for the build architecture (COMPILE_PLATFORM, COMPILE_ARCH) rather than the host architecture (PLATFORM, ARCH), so define ARCH_STRING to COMPILE_ARCH on a GNU COMPILE_PLATFORM. |
||
---|---|---|
.. | ||
AL | ||
asm | ||
botlib | ||
cgame | ||
client | ||
game | ||
jpeg-8c | ||
libcurl-7.35.0/curl | ||
libogg-1.3.1 | ||
libs | ||
libspeex | ||
libvorbis-1.3.4 | ||
null | ||
opus-1.1 | ||
opusfile-0.5 | ||
q3_ui | ||
qcommon | ||
renderercommon | ||
renderergl1 | ||
renderergl2 | ||
sdl | ||
SDL2/include | ||
server | ||
sys | ||
tools | ||
ui | ||
zlib |