Bug 940708 - Part 3: Handle asm sources for unified webrtc builds; r=gps

--HG--
extra : rebase_source : 75f72fa64c0cde4c63b3ef5c09964cdf99fb32a2
This commit is contained in:
Ehsan Akhgari 2013-12-18 21:52:21 -05:00
Родитель 2168897d54
Коммит 6da57e25bc
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

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