ref: simplify wscripts, remove gl2_shim unused wscript, fix non-existent export in exports.txt

This commit is contained in:
Alibek Omarov 2024-10-24 00:40:12 +03:00
parent 0e79326571
commit e381d04094
5 changed files with 7 additions and 51 deletions

View file

@ -1,2 +1 @@
GetRefAPI
GetRefHumanReadableName

View file

@ -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
)

View file

@ -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 = '.')

View file

@ -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

View file

@ -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,