mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1122812 - part 2 - factor out the grabbing of an object's backend.mk; r=mshal
UnifiedSources will be processed outside of consume_object, so we need some way of accessing the backend file for an object outside of consume_object as well.
This commit is contained in:
parent
2729dd8212
commit
9879ce53b4
@ -328,17 +328,20 @@ class RecursiveMakeBackend(CommonBackend):
|
|||||||
'tools': set(),
|
'tools': set(),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def _get_backend_file_for(self, obj):
|
||||||
|
if obj.objdir not in self._backend_files:
|
||||||
|
self._backend_files[obj.objdir] = \
|
||||||
|
BackendMakeFile(obj.srcdir, obj.objdir, obj.config,
|
||||||
|
obj.topsrcdir, self.environment.topobjdir)
|
||||||
|
return self._backend_files[obj.objdir]
|
||||||
|
|
||||||
def consume_object(self, obj):
|
def consume_object(self, obj):
|
||||||
"""Write out build files necessary to build with recursive make."""
|
"""Write out build files necessary to build with recursive make."""
|
||||||
|
|
||||||
if not isinstance(obj, ContextDerived):
|
if not isinstance(obj, ContextDerived):
|
||||||
return
|
return
|
||||||
|
|
||||||
if obj.objdir not in self._backend_files:
|
backend_file = self._get_backend_file_for(obj)
|
||||||
self._backend_files[obj.objdir] = \
|
|
||||||
BackendMakeFile(obj.srcdir, obj.objdir, obj.config,
|
|
||||||
obj.topsrcdir, self.environment.topobjdir)
|
|
||||||
backend_file = self._backend_files[obj.objdir]
|
|
||||||
|
|
||||||
CommonBackend.consume_object(self, obj)
|
CommonBackend.consume_object(self, obj)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user