mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-23 21:24:27 +00:00
Haiku OS support (#170)
* Haiku OS support * Add Haiku OS to CMake LibraryNaming
This commit is contained in:
parent
e4dd9192cc
commit
7fdc58743d
@ -29,6 +29,7 @@ check_symbol_exists(XASH_MOBILE_PLATFORM "build.h" XASH_MOBILE_PLATFORM)
|
|||||||
check_symbol_exists(XASH_MSVC "build.h" XASH_MSVC)
|
check_symbol_exists(XASH_MSVC "build.h" XASH_MSVC)
|
||||||
check_symbol_exists(XASH_NETBSD "build.h" XASH_NETBSD)
|
check_symbol_exists(XASH_NETBSD "build.h" XASH_NETBSD)
|
||||||
check_symbol_exists(XASH_OPENBSD "build.h" XASH_OPENBSD)
|
check_symbol_exists(XASH_OPENBSD "build.h" XASH_OPENBSD)
|
||||||
|
check_symbol_exists(XASH_HAIKU "build.h" XASH_HAIKU)
|
||||||
check_symbol_exists(XASH_WIN32 "build.h" XASH_WIN32)
|
check_symbol_exists(XASH_WIN32 "build.h" XASH_WIN32)
|
||||||
check_symbol_exists(XASH_WIN64 "build.h" XASH_WIN64)
|
check_symbol_exists(XASH_WIN64 "build.h" XASH_WIN64)
|
||||||
check_symbol_exists(XASH_X86 "build.h" XASH_X86)
|
check_symbol_exists(XASH_X86 "build.h" XASH_X86)
|
||||||
@ -45,6 +46,8 @@ elseif(XASH_NETBSD)
|
|||||||
set(BUILDOS "netbsd")
|
set(BUILDOS "netbsd")
|
||||||
elseif(XASH_OPENBSD)
|
elseif(XASH_OPENBSD)
|
||||||
set(BUILDOS "openbsd")
|
set(BUILDOS "openbsd")
|
||||||
|
elseif(XASH_HAIKU)
|
||||||
|
set(BUILDOS "haiku")
|
||||||
elseif(XASH_EMSCRIPTEN)
|
elseif(XASH_EMSCRIPTEN)
|
||||||
set(BUILDOS "emscripten")
|
set(BUILDOS "emscripten")
|
||||||
else()
|
else()
|
||||||
|
@ -67,6 +67,7 @@ For more information, please refer to <http://unlicense.org/>
|
|||||||
#undef XASH_MSVC
|
#undef XASH_MSVC
|
||||||
#undef XASH_NETBSD
|
#undef XASH_NETBSD
|
||||||
#undef XASH_OPENBSD
|
#undef XASH_OPENBSD
|
||||||
|
#undef XASH_HAIKU
|
||||||
#undef XASH_WIN32
|
#undef XASH_WIN32
|
||||||
#undef XASH_WIN64
|
#undef XASH_WIN64
|
||||||
#undef XASH_X86
|
#undef XASH_X86
|
||||||
@ -115,6 +116,9 @@ For more information, please refer to <http://unlicense.org/>
|
|||||||
#elif defined __WATCOMC__ && defined __DOS__
|
#elif defined __WATCOMC__ && defined __DOS__
|
||||||
#define XASH_DOS4GW 1
|
#define XASH_DOS4GW 1
|
||||||
#define XASH_LITTLE_ENDIAN
|
#define XASH_LITTLE_ENDIAN
|
||||||
|
#elif defined __HAIKU__
|
||||||
|
#define XASH_HAIKU 1
|
||||||
|
#define XASH_POSIX 1
|
||||||
#else
|
#else
|
||||||
#error "Place your operating system name here! If this is a mistake, try to fix conditions above and report a bug"
|
#error "Place your operating system name here! If this is a mistake, try to fix conditions above and report a bug"
|
||||||
#endif
|
#endif
|
||||||
|
@ -47,6 +47,7 @@ DEFINES = [
|
|||||||
'XASH_MSVC',
|
'XASH_MSVC',
|
||||||
'XASH_NETBSD',
|
'XASH_NETBSD',
|
||||||
'XASH_OPENBSD',
|
'XASH_OPENBSD',
|
||||||
|
'XASH_HAIKU',
|
||||||
'XASH_WIN32',
|
'XASH_WIN32',
|
||||||
'XASH_WIN64',
|
'XASH_WIN64',
|
||||||
'XASH_X86',
|
'XASH_X86',
|
||||||
@ -79,6 +80,8 @@ def configure(conf):
|
|||||||
buildos = "emscripten"
|
buildos = "emscripten"
|
||||||
elif conf.env.XASH_DOS4GW:
|
elif conf.env.XASH_DOS4GW:
|
||||||
buildos = "dos4gw" # unused, just in case
|
buildos = "dos4gw" # unused, just in case
|
||||||
|
elif conf.env.XASH_HAIKU:
|
||||||
|
buildos = "haiku"
|
||||||
else:
|
else:
|
||||||
conf.fatal("Place your operating system name in build.h and library_naming.py!\n"
|
conf.fatal("Place your operating system name in build.h and library_naming.py!\n"
|
||||||
"If this is a mistake, try to fix conditions above and report a bug")
|
"If this is a mistake, try to fix conditions above and report a bug")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user