Browse Source

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

half-secret
Alibek Omarov 5 years ago
parent
commit
ae6299f636
  1. 2
      cl_dll/wscript
  2. 2
      dlls/wscript
  3. 6
      wscript

2
cl_dll/wscript

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

2
dlls/wscript

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

@ -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…
Cancel
Save