|
|
@ -10,15 +10,8 @@ def options(opt): |
|
|
|
return |
|
|
|
return |
|
|
|
|
|
|
|
|
|
|
|
def configure(conf): |
|
|
|
def configure(conf): |
|
|
|
if conf.env.COMPILER_CC == 'msvc': |
|
|
|
# stub |
|
|
|
# hl.def removes MSVC function name decoration from GiveFnptrsToDll on Windows. |
|
|
|
return |
|
|
|
# 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', '/def:%s' % hlDefNode.abspath()) |
|
|
|
|
|
|
|
else: |
|
|
|
|
|
|
|
conf.fatal("Could not find hl.def") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def build(bld): |
|
|
|
def build(bld): |
|
|
|
source = bld.path.parent.ant_glob([ |
|
|
|
source = bld.path.parent.ant_glob([ |
|
|
|