Skip to content

Commit

Permalink
Merge branch 'master' into opfor
Browse files Browse the repository at this point in the history
  • Loading branch information
nekonomicon committed Dec 7, 2024
2 parents 3bf4876 + 6be11c0 commit 7969e68
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 16 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,6 @@ jobs:
run: |
copy build/cl_dll/Debug/client.pdb dist/${{ steps.extract_gamedir.outputs.gamedir }}/cl_dlls/
copy build/dlls/Debug/hl.pdb dist/${{ steps.extract_gamedir.outputs.gamedir }}/dlls/
- name: Delete .lib files from dist
if: startsWith(matrix.os, 'windows')
run: |
Remove-Item -Force -Path dist/${{ steps.extract_gamedir.outputs.gamedir }}/cl_dlls/client.lib
Remove-Item -Force -Path dist/${{ steps.extract_gamedir.outputs.gamedir }}/dlls/hl.lib
- name: Upload linux artifact
if: startsWith(matrix.os, 'ubuntu')
uses: actions/upload-artifact@v4
Expand Down
3 changes: 2 additions & 1 deletion cl_dll/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,8 @@ if(HAVE_LTO)
endif()

install( TARGETS ${CLDLL_LIBRARY}
DESTINATION "${GAMEDIR}/${CLIENT_INSTALL_DIR}/"
RUNTIME DESTINATION "${GAMEDIR}/${CLIENT_INSTALL_DIR}/"
LIBRARY DESTINATION "${GAMEDIR}/${CLIENT_INSTALL_DIR}/"
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE
GROUP_READ GROUP_EXECUTE
WORLD_READ WORLD_EXECUTE )
Expand Down
1 change: 1 addition & 0 deletions cl_dll/menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ void CHudMenu::InitHUDData( void )
{
m_fMenuDisplayed = 0;
m_bitsValidSlots = 0;
m_iFlags &= ~HUD_ACTIVE;
Reset();
}

Expand Down
1 change: 0 additions & 1 deletion cl_dll/wscript
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ def build(bld):
defines = defines,
use = libs,
install_path = install_path,
subsystem = bld.env.MSVC_SUBSYSTEM,
idx = bld.get_taskgen_count()
)

3 changes: 2 additions & 1 deletion dlls/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,8 @@ if(HAVE_LTO)
endif()

install( TARGETS ${SVDLL_LIBRARY}
DESTINATION "${GAMEDIR}/${SERVER_INSTALL_DIR}/"
RUNTIME DESTINATION "${GAMEDIR}/${SERVER_INSTALL_DIR}/"
LIBRARY DESTINATION "${GAMEDIR}/${SERVER_INSTALL_DIR}/"
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE
GROUP_READ GROUP_EXECUTE
WORLD_READ WORLD_EXECUTE)
Expand Down
1 change: 0 additions & 1 deletion dlls/wscript
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ def build(bld):
includes = includes,
defines = defines,
install_path = install_path,
subsystem = bld.env.MSVC_SUBSYSTEM,
idx = bld.get_taskgen_count()
)

14 changes: 7 additions & 7 deletions wscript
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# encoding: utf-8
# a1batross, mittorn, 2018

from waflib import Build, Configure, Context, Logs
from waflib import Build, Configure, Context, Logs, TaskGen
import sys
import os
import re
Expand All @@ -20,6 +20,12 @@ def get_taskgen_count(self):
except: idx = 0 # don't set tg_idx_count to not increase counter
return idx

@TaskGen.feature('cshlib', 'cxxshlib', 'fcshlib')
@TaskGen.before_method('apply_implib')
def remove_implib_install(self):
if not getattr(self, 'install_path_implib', None):
self.install_path_implib = None

def options(opt):
opt.load('reconfigure compiler_optimizations xcompile compiler_cxx compiler_c clang_compilation_database strip_on_install msdev msvs subproject')

Expand All @@ -41,12 +47,6 @@ def configure(conf):
conf.load('fwgslib reconfigure compiler_optimizations')
conf.env.MSVC_TARGETS = ['x86' if not conf.options.ALLOW64 else 'x64']

# Force XP compatibility, all build targets should add subsystem=bld.env.MSVC_SUBSYSTEM
if conf.env.MSVC_TARGETS[0] == 'x86':
conf.env.MSVC_SUBSYSTEM = 'WINDOWS,5.01'
else:
conf.env.MSVC_SUBSYSTEM = 'WINDOWS'

# Load compilers early
conf.load('xcompile compiler_c compiler_cxx gccdeps')

Expand Down

0 comments on commit 7969e68

Please sign in to comment.