This commit is contained in:
Thomas Nagy 2017-09-14 22:20:31 +02:00
parent ddbc9726b0
commit e68bc5d65b
No known key found for this signature in database
GPG Key ID: 49B4C67C05277AAA
5 changed files with 2 additions and 6 deletions

View File

@ -2,7 +2,7 @@
def write_header(tsk):
tsk.outputs[0].write('int abc = 423;\n')
bld(rule=write_header, target='b.h', ext_out=['.h'])
bld(features='use', rule=write_header, target='b.h', ext_out=['.h'], name='XYZ')
tg = bld.program(
features = 'aaa',
@ -11,7 +11,7 @@ tg = bld.program(
#cflags = ['-O3'], # for example
defines = ['foo=bar'],
target = 'myprogram',
use = 'M')
use = 'M XYZ')
# just for fun, make main.c depend on wscript_build
bld.add_manual_dependency('main.c', bld.path.find_resource('wscript_build'))

View File

@ -35,7 +35,6 @@ class PriorityTasks(object):
return heapq.heappop(self.lst)
def extend(self, lst):
if self.lst:
# TODO no heapq.merge in Python 2.5
for x in lst:
self.append(x)
else:

View File

@ -568,7 +568,6 @@ def post_check(self, *k, **kw):
is_success = (kw['success'] == 0)
if kw.get('define_name'):
# TODO this is still way too complicated
comment = kw.get('comment', '')
define_name = kw['define_name']
if kw['execute'] and kw.get('define_ret') and isinstance(is_success, str):

View File

@ -524,7 +524,6 @@ def reduce_tokens(lst, defs, ban=[]):
accu.append((p2, v2))
accu.extend(toks)
elif to_add[j+1][0] == IDENT and to_add[j+1][1] == '__VA_ARGS__':
# TODO not sure
# first collect the tokens
va_toks = []
st = len(macro_def[0])

View File

@ -452,7 +452,6 @@ def find_glib_compile_schemas(conf):
def getstr(varname):
return getattr(Options.options, varname, getattr(conf.env,varname, ''))
# TODO make this dependent on the gnu_dirs tool?
gsettingsschemadir = getstr('GSETTINGSSCHEMADIR')
if not gsettingsschemadir:
datadir = getstr('DATADIR')