meson: extract out variable for nir_algebraic.py
authorRob Clark <robdclark@gmail.com>
Tue, 24 Oct 2017 15:07:52 +0000 (11:07 -0400)
committerRob Clark <robdclark@gmail.com>
Tue, 24 Oct 2017 19:33:40 +0000 (15:33 -0400)
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>
src/compiler/nir/meson.build
src/intel/compiler/meson.build

index 144cf01d2c4c15393ad8c8251f980dd898d5a4d3..cb88effa6283898ecc32556d780a613225bc8ad8 100644 (file)
@@ -193,6 +193,8 @@ libnir = static_library(
   build_by_default : false,
 )
 
+nir_algebraic_py = files('nir_algebraic.py')
+
 if with_tests
   nir_control_flow_test = executable(
     'nir_control_flow_test',
index e29e1d39e2a759b23ee67d1a1b6e2659f576c93f..d6fb8f4a648d3aa96841c6c59d7271d58f517f3c 100644 (file)
@@ -122,7 +122,7 @@ brw_nir_trig = custom_target(
   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,
 )