build: Make action targets hermetic
authorYilong Li <liyl@google.com>
Sat, 1 Jan 2022 23:08:35 +0000 (15:08 -0800)
committerYilong Li <liyl@google.com>
Sat, 1 Jan 2022 23:15:25 +0000 (15:15 -0800)
commit978338025acb4f40daf70189c60061ae6da52b74
tree662e1ded42dbba9eac8a1610b3fe13d46bf8f8e1
parentc9706bdda0ac22b9856f1aa8261e5b9e15cd20c5
build: Make action targets hermetic

Fuchsia GN build requires all "action" targets to be
hermetic, and they should correctly and fully state
their inputs and ouptuts in "sources" and "outputs"
fields (see https://fuchsia.dev/fuchsia-src/development/build/hermetic_actions
for details).

This change adds "sources" field to "glslang_extension_headers"
build target so that it states all its input files in its
GN target build rule.

TEST=fx set workstation.x64 --args=build_should_trace_actions=true
     fx build

Bug: 90846
Change-Id: I63bd5d03cee86d93b0bb7cf2cee95c5ae0d98f93
BUILD.gn