OSDN Git Service

Add SourceFileGenerator.GeneratedDeps()
authorDan Willemsen <dwillemsen@google.com>
Thu, 22 Feb 2018 02:47:18 +0000 (18:47 -0800)
committerMauro Rossi <issor.oruam@gmail.com>
Thu, 15 Apr 2021 11:05:05 +0000 (13:05 +0200)
commit09ce9592f17f74539f57f1feeaa21ac8d3b5d9b5
tree2f969f5eef718a6e2fc95f06098e24bb8288e7fb
parent53ce0e1dc0f01f071f52e3d3f2c7b2988c965fa9
Add SourceFileGenerator.GeneratedDeps()

To clean up unnecessary dependencies when using generated headers,
GeneratedDeps() should return a single file from every build entry.
GeneratedSourceFiles() used to be used from this, but now if you create
one build rule with multiple outputs, it's valid to only return a single
output file.

In this case, ModuleBuild is called once per source file, each
outputing a single output file, so all of them still need to be listed.

Bug: 73745773
Test: diff out/soong/build.ninja
Test: diff out/soong/Android-aosp_arm.mk
Test: rm -rf out; m
Change-Id: I073e3be7ecd9545f4002ad94d3da44f1a6652baa
llvm/soong/tblgen.go