Bug 976853 - Exclude dependency file from dependency output for expandlibs_exec.py; r=gps

--HG--
extra : amend_source : d7f26ca852a9013d031fe752cd3ae5d8d6ad1414
This commit is contained in:
Mike Hommey 2014-02-26 13:55:36 +09:00
parent c4aab9cf77
commit c4df4bacb1

View File

@ -348,7 +348,8 @@ def main():
return
ensureParentDir(options.depend)
mk = Makefile()
deps = [dep for dep in deps if os.path.isfile(dep) and dep != options.target]
deps = [dep for dep in deps if os.path.isfile(dep) and dep != options.target
and os.path.abspath(dep) != os.path.abspath(options.depend)]
no_dynamic_lib = [dep for dep in deps if not isDynamicLib(dep)]
mk.create_rule([options.target]).add_dependencies(no_dynamic_lib)
if len(deps) != len(no_dynamic_lib):