|
|
@ -4,21 +4,28 @@ |
|
|
|
|
|
|
|
|
|
|
|
from waflib import Utils |
|
|
|
from waflib import Utils |
|
|
|
import os |
|
|
|
import os |
|
|
|
|
|
|
|
|
|
|
|
def options(opt): |
|
|
|
def options(opt): |
|
|
|
# stub |
|
|
|
# stub |
|
|
|
return |
|
|
|
return |
|
|
|
|
|
|
|
|
|
|
|
def configure(conf): |
|
|
|
def configure(conf): |
|
|
|
# stub |
|
|
|
if conf.env.DEST_OS == 'win32': |
|
|
|
return |
|
|
|
# hl.def removes MSVC function name decoration from GiveFnptrsToDll on Windows. |
|
|
|
|
|
|
|
# Without this, the lookup for this function fails. |
|
|
|
|
|
|
|
hlDefNode = conf.path.find_resource("./hl.def") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if hlDefNode is not None: |
|
|
|
|
|
|
|
conf.env.append_unique('LINKFLAGS', f'/def:{hlDefNode.abspath()}') |
|
|
|
|
|
|
|
else: |
|
|
|
|
|
|
|
conf.fatal("Could not find hl.def") |
|
|
|
|
|
|
|
|
|
|
|
def build(bld): |
|
|
|
def build(bld): |
|
|
|
defines = [] |
|
|
|
defines = [] |
|
|
|
source = bld.path.parent.ant_glob([ |
|
|
|
source = bld.path.parent.ant_glob([ |
|
|
|
'pm_shared/*.c', |
|
|
|
'pm_shared/*.c', |
|
|
|
]) |
|
|
|
]) |
|
|
|
|
|
|
|
|
|
|
|
source += [ |
|
|
|
source += [ |
|
|
|
'agrunt.cpp', 'airtank.cpp', 'aflock.cpp', 'animating.cpp', 'animation.cpp', 'apache.cpp', |
|
|
|
'agrunt.cpp', 'airtank.cpp', 'aflock.cpp', 'animating.cpp', 'animation.cpp', 'apache.cpp', |
|
|
|
'barnacle.cpp', 'barney.cpp', 'bigmomma.cpp', 'bloater.cpp', 'bmodels.cpp', 'bullsquid.cpp', 'buttons.cpp', |
|
|
|
'barnacle.cpp', 'barney.cpp', 'bigmomma.cpp', 'bloater.cpp', 'bmodels.cpp', 'bullsquid.cpp', 'buttons.cpp', |
|
|
@ -42,7 +49,7 @@ def build(bld): |
|
|
|
'triggers.cpp', 'tripmine.cpp', 'turret.cpp', |
|
|
|
'triggers.cpp', 'tripmine.cpp', 'turret.cpp', |
|
|
|
'util.cpp', |
|
|
|
'util.cpp', |
|
|
|
'weapons.cpp', 'world.cpp', 'xen.cpp', 'zombie.cpp'] |
|
|
|
'weapons.cpp', 'world.cpp', 'xen.cpp', 'zombie.cpp'] |
|
|
|
|
|
|
|
|
|
|
|
if bld.env.VOICEMGR: |
|
|
|
if bld.env.VOICEMGR: |
|
|
|
source += bld.path.parent.ant_glob([ |
|
|
|
source += bld.path.parent.ant_glob([ |
|
|
|
'game_shared/voice_gamemgr.cpp', |
|
|
|
'game_shared/voice_gamemgr.cpp', |
|
|
@ -61,7 +68,7 @@ def build(bld): |
|
|
|
|
|
|
|
|
|
|
|
bld.shlib( |
|
|
|
bld.shlib( |
|
|
|
source = source, |
|
|
|
source = source, |
|
|
|
target = 'server', |
|
|
|
target = bld.env.SERVER_NAME, |
|
|
|
features = 'c cxx', |
|
|
|
features = 'c cxx', |
|
|
|
includes = includes, |
|
|
|
includes = includes, |
|
|
|
defines = defines, |
|
|
|
defines = defines, |
|
|
|