mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 940708 - Part 3: Handle asm sources for unified webrtc builds; r=gps
--HG-- extra : rebase_source : 517c6e73002b288d2d16bc4c516096ff1a0caf72
This commit is contained in:
parent
2f090c7e79
commit
db66ae9127
@ -162,12 +162,13 @@ def read_from_gyp(config, path, output, vars, non_unified_sources = set()):
|
||||
name = name[3:]
|
||||
# The sandbox expects an unicode string.
|
||||
sandbox['LIBRARY_NAME'] = name.decode('utf-8')
|
||||
# gyp files contain headers in sources lists.
|
||||
# gyp files contain headers and asm sources in sources lists.
|
||||
sources = set(mozpath.normpath(mozpath.join(sandbox['SRCDIR'], f))
|
||||
for f in spec.get('sources', [])
|
||||
if mozpath.splitext(f)[-1] != '.h')
|
||||
asm_sources = set(f for f in sources if f.endswith('.S'))
|
||||
|
||||
unified_sources = sources - non_unified_sources
|
||||
unified_sources = sources - non_unified_sources - asm_sources
|
||||
sources -= unified_sources
|
||||
all_sources |= sources
|
||||
# The sandbox expects alphabetical order when adding sources
|
||||
|
Loading…
Reference in New Issue
Block a user