Browse Source

some fixes

pull/254/head
Er2 1 year ago
parent
commit
56485c5f05
  1. 4
      .github/workflows/build.yml
  2. 2
      appframework/glmrendererinfo_osx.mm
  3. 2
      serverbrowser/wscript
  4. 6
      tier0/wscript
  5. 3
      utils/vrad/wscript
  6. 14
      wscript

4
.github/workflows/build.yml

@ -2,7 +2,7 @@ name: Build @@ -2,7 +2,7 @@ name: Build
on: [push, pull_request]
env:
WAF_FLAGS: -T debug --no-warns --prefix=build_hl2
WAF_FLAGS: -T release --no-warns --prefix=build_hl2
jobs:
build-linux:
@ -66,6 +66,7 @@ jobs: @@ -66,6 +66,7 @@ jobs:
build-macos:
strategy:
fail-fast: false
matrix:
flags: ['', '-dl', '-u']
@ -93,6 +94,7 @@ jobs: @@ -93,6 +94,7 @@ jobs:
build-windows:
strategy:
fail-fast: false
matrix:
os: [windows-2019]
bits: ['', '--64bits']

2
appframework/glmrendererinfo_osx.mm

@ -24,7 +24,7 @@ @@ -24,7 +24,7 @@
#include "tier1/utllinkedlist.h"
#include "togl/rendermechanism.h"
#include "appframework/ilaunchermgr.h" // gets pulled in from glmgr.h
#include "appframework/iappsystemgroup.h"
#include "appframework/IAppSystemGroup.h"
#include "inputsystem/ButtonCode.h"

2
serverbrowser/wscript

@ -5,7 +5,7 @@ from waflib import Utils @@ -5,7 +5,7 @@ from waflib import Utils
import os
top = '.'
PROJECT_NAME = 'ServerBrowser'
PROJECT_NAME = 'serverbrowser'
def options(opt):
# stub

6
tier0/wscript

@ -19,6 +19,9 @@ def configure(conf): @@ -19,6 +19,9 @@ def configure(conf):
conf.define('GIT_COMMIT_HASH', conf.env.GIT_VERSION)
conf.define('REL_VERSION', conf.env.REL_VERSION)
if conf.env.DEST_OS == 'freebsd':
conf.check_cc(lib='execinfo')
def build(bld):
source = [
'assert_dialog.cpp',
@ -85,6 +88,9 @@ def build(bld): @@ -85,6 +88,9 @@ def build(bld):
else:
libs = ['DL', 'M', 'LOG']
if bld.env.DEST_OS == 'freebsd':
libs += ['EXECINFO']
install_path = bld.env.LIBDIR
bld.shlib(

3
utils/vrad/wscript

@ -14,9 +14,6 @@ def options(opt): @@ -14,9 +14,6 @@ def options(opt):
def configure(conf):
conf.define('VRAD', 1)
conf.define('MAX_TOOL_THREADS', 1)
conf.define('THREADINDEX_MAIN', 0)
conf.define('NO_THREAD_NAMES', 1)
return
def build(bld):

14
wscript

@ -123,7 +123,7 @@ projects={ @@ -123,7 +123,7 @@ projects={
'fgdlib',
'raytrace',
'vphysics',
'movieobjects',
# 'movieobjects',
# 'hammer_launcher',
'ivp/havana',
'ivp/havana/havok/hk_base',
@ -494,12 +494,14 @@ def configure(conf): @@ -494,12 +494,14 @@ def configure(conf):
flags += ['-fsanitize=%s'%conf.options.SANITIZE, '-fno-sanitize=vptr']
if conf.env.DEST_OS != 'win32':
flags += ['-pipe', '-fPIC', '-L'+os.path.abspath('.')+'/lib/'+conf.env.DEST_OS+'/'+conf.env.DEST_CPU+'/']
flags += ['-pipe', '-fPIC']
conf.env.RPATH = ['$ORIGIN']
if conf.env.COMPILER_CC != 'msvc':
flags += ['-pthread']
if conf.env.DEST_OS == 'android':
flags += [
'-L'+os.path.abspath('.')+'/lib/android/'+conf.env.DEST_CPU+'/',
'-I'+os.path.abspath('.')+'/thirdparty/curl/include',
'-I'+os.path.abspath('.')+'/thirdparty/SDL',
'-I'+os.path.abspath('.')+'/thirdparty/openal-soft/include/',
@ -510,7 +512,10 @@ def configure(conf): @@ -510,7 +512,10 @@ def configure(conf):
]
flags += ['-funwind-tables', '-g']
elif conf.env.COMPILER_CC != 'msvc' and conf.env.DEST_OS != 'darwin' and conf.env.DEST_CPU in ['x86', 'x86_64']:
elif conf.env.DEST_OS == 'win32':
flags += ['-L'+os.path.abspath('.')+'/lib/win32/'+conf.env.DEST_CPU+'/']
if conf.env.COMPILER_CC != 'msvc' and conf.env.DEST_OS != 'darwin' and conf.env.DEST_CPU in ['x86', 'x86_64']:
flags += ['-march=core2']
if conf.env.DEST_CPU in ['x86', 'x86_64']:
@ -521,9 +526,6 @@ def configure(conf): @@ -521,9 +526,6 @@ def configure(conf):
if conf.env.DEST_CPU == 'arm':
flags += ['-mfpu=neon-vfpv4']
if conf.env.DEST_OS == 'freebsd':
linkflags += ['-lexecinfo']
if conf.env.DEST_OS != 'win32':
cflags += flags
linkflags += flags

Loading…
Cancel
Save