mirror of https://github.com/FWGS/hlsdk-xash3d
wscript: use taskgen counter to solve problem with compiling shared code instead of hardcoding indexes
This commit is contained in:
parent
f75929a4b7
commit
ae6299f636
|
@ -62,5 +62,5 @@ def build(bld):
|
||||||
use = libs,
|
use = libs,
|
||||||
install_path = install_path,
|
install_path = install_path,
|
||||||
subsystem = bld.env.MSVC_SUBSYSTEM,
|
subsystem = bld.env.MSVC_SUBSYSTEM,
|
||||||
idx = 1
|
idx = bld.get_taskgen_count()
|
||||||
)
|
)
|
||||||
|
|
|
@ -68,5 +68,5 @@ def build(bld):
|
||||||
use = libs,
|
use = libs,
|
||||||
install_path = install_path,
|
install_path = install_path,
|
||||||
subsystem = bld.env.MSVC_SUBSYSTEM,
|
subsystem = bld.env.MSVC_SUBSYSTEM,
|
||||||
idx = 2
|
idx = bld.get_taskgen_count()
|
||||||
)
|
)
|
||||||
|
|
6
wscript
6
wscript
|
@ -13,6 +13,12 @@ top = '.'
|
||||||
|
|
||||||
Context.Context.line_just = 55 # should fit for everything on 80x26
|
Context.Context.line_just = 55 # should fit for everything on 80x26
|
||||||
|
|
||||||
|
@Configure.conf
|
||||||
|
def get_taskgen_count(self):
|
||||||
|
try: idx = self.tg_idx_count
|
||||||
|
except: idx = 0 # don't set tg_idx_count to not increase counter
|
||||||
|
return idx
|
||||||
|
|
||||||
def options(opt):
|
def options(opt):
|
||||||
grp = opt.add_option_group('Common options')
|
grp = opt.add_option_group('Common options')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue