mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
Substitute the pidl files without using 'headermap.txt'
The headers generated by pidl contain references to bin/default. Those paths may be replaced automatically. Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
This commit is contained in:
parent
6e7d39f4dd
commit
bd8e3cf855
@ -660,9 +660,17 @@ def init_subst(bld):
|
||||
if not node:
|
||||
return {}
|
||||
lines = node.read(None)
|
||||
bld.subst_table_h = hash(lines)
|
||||
|
||||
lines = [x.strip().split(': ') for x in lines.split('\n') if x.rfind(': ') > -1]
|
||||
bld.subst_table = dict(lines)
|
||||
|
||||
# pidl file replacement (all of this is temporary, one step at a time)
|
||||
keyz = list(bld.subst_table.keys())
|
||||
for k in keyz:
|
||||
bld.subst_table['bin/default/' + k] = bld.subst_table[k]
|
||||
|
||||
tp = tuple(bld.subst_table.keys())
|
||||
bld.subst_table_h = hash(tp)
|
||||
return bld.subst_table_h
|
||||
|
||||
@TaskGen.feature('pubh')
|
||||
|
Loading…
x
Reference in New Issue
Block a user