ref: simplify wscripts, remove gl2_shim unused wscript, fix non-existent export in exports.txt
This commit is contained in:
parent
0e79326571
commit
e381d04094
5 changed files with 7 additions and 51 deletions
|
@ -1,2 +1 @@
|
|||
GetRefAPI
|
||||
GetRefHumanReadableName
|
|
@ -1,24 +0,0 @@
|
|||
#! /usr/bin/env python
|
||||
# encoding: utf-8
|
||||
|
||||
import os
|
||||
|
||||
def options(opt):
|
||||
pass
|
||||
|
||||
def configure(conf):
|
||||
conf.define('REF_DLL', 1)
|
||||
|
||||
def build(bld):
|
||||
source = bld.path.ant_glob( [ '*.c' ] )
|
||||
includes = [ '.' ]
|
||||
libs = [ 'engine_includes', 'sdk_includes', 'werror' ]
|
||||
bld.env.LDFLAGS += ['-fPIC']
|
||||
bld.env.CFLAGS += ['-fPIC']
|
||||
bld.stlib(
|
||||
source = source,
|
||||
target = 'gl2_shim',
|
||||
includes = includes,
|
||||
use = libs,
|
||||
subsystem = bld.env.MSVC_SUBSYSTEM
|
||||
)
|
|
@ -10,15 +10,9 @@ def configure(conf):
|
|||
conf.define('REF_DLL', 1)
|
||||
|
||||
def build(bld):
|
||||
source = bld.path.ant_glob( [ '*.c' ] )
|
||||
includes = [ '.' ]
|
||||
libs = [ 'engine_includes', 'sdk_includes', 'werror' ]
|
||||
bld.env.LDFLAGS += ['-fPIC']
|
||||
bld.env.CFLAGS += ['-fPIC']
|
||||
bld.stlib(
|
||||
source = source,
|
||||
target = 'vgl_shim',
|
||||
includes = includes,
|
||||
use = libs,
|
||||
subsystem = bld.env.MSVC_SUBSYSTEM
|
||||
)
|
||||
bld.stlib(source = bld.path.ant_glob('*.c'),
|
||||
target = 'vgl_shim',
|
||||
use = 'engine_includes sdk_includes werror',
|
||||
includes = '.')
|
||||
|
|
|
@ -17,10 +17,6 @@ def options(opt):
|
|||
return
|
||||
|
||||
def configure(conf):
|
||||
# check for dedicated server build
|
||||
if conf.options.DEDICATED:
|
||||
return
|
||||
|
||||
conf.define_cond('SUPPORT_BSP2_FORMAT', conf.options.SUPPORT_BSP2_FORMAT)
|
||||
|
||||
conf.env.GL_STATIC = conf.options.GL_STATIC
|
||||
|
|
|
@ -12,14 +12,8 @@ def options(opt):
|
|||
return
|
||||
|
||||
def configure(conf):
|
||||
# check for dedicated server build
|
||||
if conf.options.DEDICATED:
|
||||
return
|
||||
|
||||
if conf.options.SUPPORT_BSP2_FORMAT:
|
||||
conf.env.append_unique('DEFINES', 'SUPPORT_BSP2_FORMAT')
|
||||
|
||||
conf.env.append_unique('DEFINES', 'REF_DLL')
|
||||
conf.define_cond('SUPPORT_BSP2_FORMAT', conf.options.SUPPORT_BSP2_FORMAT)
|
||||
conf.define('REF_DLL', 1)
|
||||
|
||||
def build(bld):
|
||||
libs = [ 'engine_includes', 'werror' ]
|
||||
|
@ -29,10 +23,7 @@ def build(bld):
|
|||
else:
|
||||
libs += [ 'public', 'M' ]
|
||||
|
||||
if bld.env.DEDICATED:
|
||||
return
|
||||
|
||||
bld.shlib(source = bld.path.ant_glob(['*.c']),
|
||||
bld.shlib(source = bld.path.ant_glob('*.c'),
|
||||
target = 'ref_soft',
|
||||
includes = '.',
|
||||
use = libs,
|
||||
|
|
Loading…
Add table
Reference in a new issue