meson: extract out variable for nir_algebraic.py

Also needed in freedreno/ir3.

Signed-off-by: Rob Clark <robdclark@gmail.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
diff --git a/src/compiler/nir/meson.build b/src/compiler/nir/meson.build
index 144cf01..cb88eff 100644
--- a/src/compiler/nir/meson.build
+++ b/src/compiler/nir/meson.build
@@ -193,6 +193,8 @@
   build_by_default : false,
 )
 
+nir_algebraic_py = files('nir_algebraic.py')
+
 if with_tests
   nir_control_flow_test = executable(
     'nir_control_flow_test',
diff --git a/src/intel/compiler/meson.build b/src/intel/compiler/meson.build
index e29e1d3..d6fb8f4 100644
--- a/src/intel/compiler/meson.build
+++ b/src/intel/compiler/meson.build
@@ -122,7 +122,7 @@
   output : 'brw_nir_trig_workarounds.c',
   command : [prog_python2, '@INPUT@', '-p',
              join_paths(meson.source_root(), 'src/compiler/nir/')],
-  depend_files : files('../../compiler/nir/nir_algebraic.py'),
+  depend_files : nir_algebraic_py,
   capture : true,
 )