Bug 1245763 - Group sources and linkables handling function cals in mozbuild.emitter. r=gps

This commit is contained in:
Mike Hommey 2016-02-04 13:40:10 +09:00
Родитель a96f295645
Коммит dcd8e418ac
1 изменённых файлов: 10 добавлений и 6 удалений

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

@ -371,6 +371,15 @@ class TreeMetadataEmitter(LoggingMixin):
else:
return ExternalSharedLibrary(context, name)
def _handle_linkables(self, context, passthru):
for obj in self._process_sources(context, passthru):
yield obj
self._handle_programs(context)
for obj in self._handle_libraries(context):
yield obj
def _handle_libraries(self, context):
host_libname = context.get('HOST_LIBRARY_NAME')
libname = context.get('LIBRARY_NAME')
@ -625,9 +634,6 @@ class TreeMetadataEmitter(LoggingMixin):
elif dist_install is False:
passthru.variables['NO_DIST_INSTALL'] = True
for obj in self._process_sources(context, passthru):
yield obj
generated_files = set()
for obj in self._process_generated_files(context):
generated_files.add(obj.output)
@ -644,8 +650,6 @@ class TreeMetadataEmitter(LoggingMixin):
if host_defines:
yield HostDefines(context, host_defines)
self._handle_programs(context)
simple_lists = [
('GENERATED_EVENTS_WEBIDL_FILES', GeneratedEventWebIDLFile),
('GENERATED_WEBIDL_FILES', GeneratedWebIDLFile),
@ -745,7 +749,7 @@ class TreeMetadataEmitter(LoggingMixin):
Manifest('components',
mozpath.basename(c)))
for obj in self._handle_libraries(context):
for obj in self._handle_linkables(context, passthru):
yield obj
for obj in self._process_test_manifests(context):