2
0
mirror of https://github.com/FWGS/hlsdk-xash3d synced 2024-11-22 01:47:45 +01:00

wscript: use taskgen counter to solve problem with compiling shared code instead of hardcoding indexes

This commit is contained in:
Alibek Omarov 2019-10-15 22:16:49 +03:00
parent f75929a4b7
commit ae6299f636
3 changed files with 8 additions and 2 deletions

View File

@ -62,5 +62,5 @@ def build(bld):
use = libs,
install_path = install_path,
subsystem = bld.env.MSVC_SUBSYSTEM,
idx = 1
idx = bld.get_taskgen_count()
)

View File

@ -68,5 +68,5 @@ def build(bld):
use = libs,
install_path = install_path,
subsystem = bld.env.MSVC_SUBSYSTEM,
idx = 2
idx = bld.get_taskgen_count()
)

View File

@ -13,6 +13,12 @@ top = '.'
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):
grp = opt.add_option_group('Common options')