mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-11 15:38:12 +00:00
Build: Fixed issues on Windows
in_camera.o wouldn't link because of unresolved symbols relating to getting/setting the cursor position, so user32.lib was added as a dependency. The gitignore was also missing ignore rules for different waf folder name variations, and the .vscode directory for people (like me) who use VS Code.
This commit is contained in:
parent
b00170a0a2
commit
aa7b5dc5ca
4
.gitignore
vendored
4
.gitignore
vendored
@ -18,5 +18,9 @@ cmake_install.cmake
|
||||
*.vsproj
|
||||
*.sln
|
||||
.waf-*
|
||||
waf-*
|
||||
.waf3-*
|
||||
waf3-*
|
||||
.lock*
|
||||
*.pyc
|
||||
.vscode/
|
@ -10,9 +10,11 @@ def options(opt):
|
||||
return
|
||||
|
||||
def configure(conf):
|
||||
if conf.env.GOLDSRC:
|
||||
if conf.env.DEST_OS != 'win32':
|
||||
conf.check_cc(lib='dl')
|
||||
if conf.env.GOLDSRC and conf.env.DEST_OS != 'win32':
|
||||
conf.check_cc(lib='dl')
|
||||
|
||||
if conf.env.DEST_OS == 'win32':
|
||||
conf.check_cxx( lib='user32' )
|
||||
|
||||
def build(bld):
|
||||
source = bld.path.parent.ant_glob([
|
||||
@ -45,9 +47,12 @@ def build(bld):
|
||||
defines += ['GOLDSOURCE_SUPPORT']
|
||||
|
||||
libs = []
|
||||
if bld.env.GOLDSRC:
|
||||
if bld.env.GOLDSRC and bld.env.DEST_OS != 'win32':
|
||||
libs += ['DL']
|
||||
|
||||
if bld.env.DEST_OS == 'win32':
|
||||
libs += ["USER32"]
|
||||
|
||||
if bld.env.DEST_OS not in ['android']:
|
||||
install_path = os.path.join(bld.env.GAMEDIR, bld.env.CLIENT_DIR)
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user