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
|
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)
|
conf.define('REF_DLL', 1)
|
||||||
|
|
||||||
def build(bld):
|
def build(bld):
|
||||||
source = bld.path.ant_glob( [ '*.c' ] )
|
|
||||||
includes = [ '.' ]
|
|
||||||
libs = [ 'engine_includes', 'sdk_includes', 'werror' ]
|
|
||||||
bld.env.LDFLAGS += ['-fPIC']
|
bld.env.LDFLAGS += ['-fPIC']
|
||||||
bld.env.CFLAGS += ['-fPIC']
|
bld.env.CFLAGS += ['-fPIC']
|
||||||
bld.stlib(
|
bld.stlib(source = bld.path.ant_glob('*.c'),
|
||||||
source = source,
|
target = 'vgl_shim',
|
||||||
target = 'vgl_shim',
|
use = 'engine_includes sdk_includes werror',
|
||||||
includes = includes,
|
includes = '.')
|
||||||
use = libs,
|
|
||||||
subsystem = bld.env.MSVC_SUBSYSTEM
|
|
||||||
)
|
|
||||||
|
|
|
@ -17,10 +17,6 @@ def options(opt):
|
||||||
return
|
return
|
||||||
|
|
||||||
def configure(conf):
|
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.define_cond('SUPPORT_BSP2_FORMAT', conf.options.SUPPORT_BSP2_FORMAT)
|
||||||
|
|
||||||
conf.env.GL_STATIC = conf.options.GL_STATIC
|
conf.env.GL_STATIC = conf.options.GL_STATIC
|
||||||
|
|
|
@ -12,14 +12,8 @@ def options(opt):
|
||||||
return
|
return
|
||||||
|
|
||||||
def configure(conf):
|
def configure(conf):
|
||||||
# check for dedicated server build
|
conf.define_cond('SUPPORT_BSP2_FORMAT', conf.options.SUPPORT_BSP2_FORMAT)
|
||||||
if conf.options.DEDICATED:
|
conf.define('REF_DLL', 1)
|
||||||
return
|
|
||||||
|
|
||||||
if conf.options.SUPPORT_BSP2_FORMAT:
|
|
||||||
conf.env.append_unique('DEFINES', 'SUPPORT_BSP2_FORMAT')
|
|
||||||
|
|
||||||
conf.env.append_unique('DEFINES', 'REF_DLL')
|
|
||||||
|
|
||||||
def build(bld):
|
def build(bld):
|
||||||
libs = [ 'engine_includes', 'werror' ]
|
libs = [ 'engine_includes', 'werror' ]
|
||||||
|
@ -29,10 +23,7 @@ def build(bld):
|
||||||
else:
|
else:
|
||||||
libs += [ 'public', 'M' ]
|
libs += [ 'public', 'M' ]
|
||||||
|
|
||||||
if bld.env.DEDICATED:
|
bld.shlib(source = bld.path.ant_glob('*.c'),
|
||||||
return
|
|
||||||
|
|
||||||
bld.shlib(source = bld.path.ant_glob(['*.c']),
|
|
||||||
target = 'ref_soft',
|
target = 'ref_soft',
|
||||||
includes = '.',
|
includes = '.',
|
||||||
use = libs,
|
use = libs,
|
||||||
|
|
Loading…
Add table
Reference in a new issue