mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-23 21:24:27 +00:00
Merge branch 'master' into zombie-x
This commit is contained in:
commit
4f5e71238f
4
.github/workflows/.github.yml
vendored
4
.github/workflows/.github.yml
vendored
@ -24,7 +24,7 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: recursive
|
||||||
|
|
||||||
- name: Checkout steam-runtime
|
- name: Checkout steam-runtime
|
||||||
if: startsWith(matrix.os, 'ubuntu')
|
if: startsWith(matrix.os, 'ubuntu')
|
||||||
@ -64,7 +64,7 @@ jobs:
|
|||||||
if: startsWith(matrix.os, 'ubuntu') && startsWith(matrix.cc, 'gcc')
|
if: startsWith(matrix.os, 'ubuntu') && startsWith(matrix.cc, 'gcc')
|
||||||
run: |
|
run: |
|
||||||
schroot --chroot steamrt_scout_i386 -- cmake -B build-vgui -S . -DCMAKE_EXE_LINKER_FLAGS="-Wl,--no-undefined" -DGOLDSOURCE_SUPPORT=ON -DUSE_VGUI=ON -DCMAKE_INSTALL_PREFIX="$PWD/dist-vgui"
|
schroot --chroot steamrt_scout_i386 -- cmake -B build-vgui -S . -DCMAKE_EXE_LINKER_FLAGS="-Wl,--no-undefined" -DGOLDSOURCE_SUPPORT=ON -DUSE_VGUI=ON -DCMAKE_INSTALL_PREFIX="$PWD/dist-vgui"
|
||||||
cp vgui-dev/lib/vgui.so build-vgui/cl_dll
|
cp vgui_support/vgui-dev/lib/vgui.so build-vgui/cl_dll
|
||||||
schroot --chroot steamrt_scout_i386 -- cmake --build build-vgui --target all
|
schroot --chroot steamrt_scout_i386 -- cmake --build build-vgui --target all
|
||||||
schroot --chroot steamrt_scout_i386 -- cmake --build build-vgui --target install
|
schroot --chroot steamrt_scout_i386 -- cmake --build build-vgui --target install
|
||||||
|
|
||||||
|
6
.gitmodules
vendored
6
.gitmodules
vendored
@ -1,3 +1,3 @@
|
|||||||
[submodule "vgui-dev"]
|
[submodule "vgui_support"]
|
||||||
path = vgui-dev
|
path = vgui_support
|
||||||
url = https://github.com/FWGS/vgui-dev
|
url = https://github.com/FWGS/vgui_support
|
||||||
|
@ -96,7 +96,7 @@ if(64BIT AND CMAKE_SIZEOF_VOID_P EQUAL 4)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Xash3D FWGS Library Naming Scheme compliance
|
# Xash3D FWGS Library Naming Scheme compliance
|
||||||
# see documentation: https://github.com/FWGS/xash3d-fwgs/blob/master/Documentation/library-naming.md
|
# see documentation: https://github.com/FWGS/xash3d-fwgs/blob/master/Documentation/extensions/library-naming.md
|
||||||
include(LibraryNaming)
|
include(LibraryNaming)
|
||||||
|
|
||||||
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||||
|
@ -167,8 +167,8 @@ include_directories (. hl/ ../dlls ../dlls/wpn_shared ../common ../engine ../pm_
|
|||||||
|
|
||||||
if (USE_VGUI)
|
if (USE_VGUI)
|
||||||
SET(CMAKE_SKIP_RPATH TRUE)
|
SET(CMAKE_SKIP_RPATH TRUE)
|
||||||
link_directories(${CMAKE_SOURCE_DIR}/vgui-dev/lib)
|
link_directories(${CMAKE_SOURCE_DIR}/vgui_support/vgui-dev/lib)
|
||||||
include_directories(../vgui-dev/include)
|
include_directories(../vgui_support/vgui-dev/include)
|
||||||
else()
|
else()
|
||||||
include_directories(../utils/false_vgui/include)
|
include_directories(../utils/false_vgui/include)
|
||||||
endif()
|
endif()
|
||||||
@ -189,11 +189,11 @@ endif()
|
|||||||
if (USE_VGUI)
|
if (USE_VGUI)
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
add_library(vgui SHARED IMPORTED)
|
add_library(vgui SHARED IMPORTED)
|
||||||
set_property(TARGET vgui PROPERTY IMPORTED_LOCATION "${CMAKE_SOURCE_DIR}/vgui-dev/lib/win32_vc6/vgui.dll")
|
set_property(TARGET vgui PROPERTY IMPORTED_LOCATION "${CMAKE_SOURCE_DIR}/vgui_support/vgui-dev/lib/win32_vc6/vgui.dll")
|
||||||
set_property(TARGET vgui PROPERTY IMPORTED_IMPLIB "${CMAKE_SOURCE_DIR}/vgui-dev/lib/win32_vc6/vgui.lib")
|
set_property(TARGET vgui PROPERTY IMPORTED_IMPLIB "${CMAKE_SOURCE_DIR}/vgui_support/vgui-dev/lib/win32_vc6/vgui.lib")
|
||||||
target_link_libraries(${CLDLL_LIBRARY} vgui)
|
target_link_libraries(${CLDLL_LIBRARY} vgui)
|
||||||
elseif(APPLE)
|
elseif(APPLE)
|
||||||
target_link_libraries(${CLDLL_LIBRARY} "-Wl,--no-undefined -L${CMAKE_SOURCE_DIR}/vgui-dev/lib vgui.dylib")
|
target_link_libraries(${CLDLL_LIBRARY} "-Wl,--no-undefined -L${CMAKE_SOURCE_DIR}/vgui_support/vgui-dev/lib vgui.dylib")
|
||||||
else()
|
else()
|
||||||
target_link_libraries(${CLDLL_LIBRARY} :vgui.so)
|
target_link_libraries(${CLDLL_LIBRARY} :vgui.so)
|
||||||
endif()
|
endif()
|
||||||
|
@ -38,6 +38,7 @@ check_symbol_exists(XASH_RISCV "build.h" XASH_RISCV)
|
|||||||
check_symbol_exists(XASH_RISCV_DOUBLEFP "build.h" XASH_RISCV_DOUBLEFP)
|
check_symbol_exists(XASH_RISCV_DOUBLEFP "build.h" XASH_RISCV_DOUBLEFP)
|
||||||
check_symbol_exists(XASH_RISCV_SINGLEFP "build.h" XASH_RISCV_SINGLEFP)
|
check_symbol_exists(XASH_RISCV_SINGLEFP "build.h" XASH_RISCV_SINGLEFP)
|
||||||
check_symbol_exists(XASH_RISCV_SOFTFP "build.h" XASH_RISCV_SOFTFP)
|
check_symbol_exists(XASH_RISCV_SOFTFP "build.h" XASH_RISCV_SOFTFP)
|
||||||
|
check_symbol_exists(XASH_SERENITY "build.h" XASH_SERENITY)
|
||||||
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)
|
||||||
@ -54,10 +55,14 @@ 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")
|
||||||
|
elseif(XASH_DOS4GW)
|
||||||
|
set(BUILDOS "DOS4GW")
|
||||||
|
elseif(XASH_HAIKU)
|
||||||
|
set(BUILDOS "haiku")
|
||||||
|
elseif(XASH_SERENITY)
|
||||||
|
set(BUILDOS "serenityos")
|
||||||
else()
|
else()
|
||||||
message(SEND_ERROR "Place your operating system name here! If this is a mistake, try to fix conditions above and report a bug")
|
message(SEND_ERROR "Place your operating system name here! If this is a mistake, try to fix conditions above and report a bug")
|
||||||
endif()
|
endif()
|
||||||
|
@ -75,6 +75,7 @@ For more information, please refer to <http://unlicense.org/>
|
|||||||
#undef XASH_RISCV_DOUBLEFP
|
#undef XASH_RISCV_DOUBLEFP
|
||||||
#undef XASH_RISCV_SINGLEFP
|
#undef XASH_RISCV_SINGLEFP
|
||||||
#undef XASH_RISCV_SOFTFP
|
#undef XASH_RISCV_SOFTFP
|
||||||
|
#undef XASH_SERENITY
|
||||||
#undef XASH_WIN32
|
#undef XASH_WIN32
|
||||||
#undef XASH_WIN64
|
#undef XASH_WIN64
|
||||||
#undef XASH_X86
|
#undef XASH_X86
|
||||||
@ -126,6 +127,9 @@ For more information, please refer to <http://unlicense.org/>
|
|||||||
#elif defined __HAIKU__
|
#elif defined __HAIKU__
|
||||||
#define XASH_HAIKU 1
|
#define XASH_HAIKU 1
|
||||||
#define XASH_POSIX 1
|
#define XASH_POSIX 1
|
||||||
|
#elif defined __serenity__
|
||||||
|
#define XASH_SERENITY 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
|
||||||
|
@ -57,6 +57,7 @@ DEFINES = [
|
|||||||
'XASH_RISCV_DOUBLEFP',
|
'XASH_RISCV_DOUBLEFP',
|
||||||
'XASH_RISCV_SINGLEFP',
|
'XASH_RISCV_SINGLEFP',
|
||||||
'XASH_RISCV_SOFTFP',
|
'XASH_RISCV_SOFTFP',
|
||||||
|
'XASH_SERENITY',
|
||||||
'XASH_WIN32',
|
'XASH_WIN32',
|
||||||
'XASH_WIN64',
|
'XASH_WIN64',
|
||||||
'XASH_X86',
|
'XASH_X86',
|
||||||
@ -89,6 +90,8 @@ def configure(conf):
|
|||||||
buildos = "dos4gw" # unused, just in case
|
buildos = "dos4gw" # unused, just in case
|
||||||
elif conf.env.XASH_HAIKU:
|
elif conf.env.XASH_HAIKU:
|
||||||
buildos = "haiku"
|
buildos = "haiku"
|
||||||
|
elif conf.env.XASH_SERENITY:
|
||||||
|
buildos = "serenityos"
|
||||||
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")
|
||||||
|
1
vgui-dev
1
vgui-dev
@ -1 +0,0 @@
|
|||||||
Subproject commit 93573075afe885618ea15831e72d44bdacd65bfb
|
|
1
vgui_support
Submodule
1
vgui_support
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 991085982209a1b8eefabae04d842004d4f4fe4f
|
Loading…
x
Reference in New Issue
Block a user