[build] Add mako sources to py actions using it

... so these actions are more incrementally correct. i.e. changes in
mako should trigger rebuild of these actions when building
incrementally.

Change-Id: I595ca1def6ec5b78ab8ee59fd5e501258f15151c
Reviewed-on: https://fuchsia-review.googlesource.com/c/third_party/mesa/+/503620
Reviewed-by: Anirudh Mathukumilli <rudymathu@google.com>
Reviewed-by: David Fang <fangism@google.com>
diff --git a/src/compiler/nir/BUILD.gn b/src/compiler/nir/BUILD.gn
index edcc188..e6ac977 100644
--- a/src/compiler/nir/BUILD.gn
+++ b/src/compiler/nir/BUILD.gn
@@ -19,6 +19,7 @@
 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
 # IN THE SOFTWARE.
 
+import("//third_party/mako/py_srcs.gni")
 import("../../../mesa.gni")
 
 config("nir_public_config") {
@@ -211,7 +212,7 @@
 
   outputs = [ "$target_gen_dir/$output_name" ]
 
-  inputs = [ "nir_intrinsics.py" ]
+  inputs = [ "nir_intrinsics.py" ] + third_party_mako_srcs
 
   args = [
     "--outdir",
@@ -225,7 +226,7 @@
 
   outputs = [ "$target_gen_dir/$output_name" ]
 
-  inputs = [ "nir_intrinsics.py" ]
+  inputs = [ "nir_intrinsics.py" ] + third_party_mako_srcs
 
   args = [
     "--outdir",