X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fcompiler%2FSConscript.nir;h=41c67941f51b4b60512c27d1763536ada10f8750;hb=a06955f4ef623c3767739f7b73438eb54b59222c;hp=51cc0d403fdbe32359132449cce5e49f5eb4e62d;hpb=5567ae0547d5f31e51e5f32e78065894e594fd1a;p=mesa.git diff --git a/src/compiler/SConscript.nir b/src/compiler/SConscript.nir index 51cc0d403fd..41c67941f51 100644 --- a/src/compiler/SConscript.nir +++ b/src/compiler/SConscript.nir @@ -19,6 +19,7 @@ env.Prepend(CPPPATH = [ ]) # Make generated headers reachable from the include path. +env.Prepend(CPPPATH = [Dir('.').abspath, Dir('glsl').abspath]) env.Prepend(CPPPATH = [Dir('.').abspath, Dir('nir').abspath]) # nir generated sources @@ -58,6 +59,22 @@ env.CodeGenerate( command = python_cmd + ' $SCRIPT > $TARGET' ) +bldroot = Dir('.').abspath + +env.CodeGenerate( + target = 'nir/nir_intrinsics.h', + script = 'nir/nir_intrinsics_h.py', + source = [], + command = python_cmd + ' $SCRIPT --outdir ' + bldroot + '/nir' +) + +env.CodeGenerate( + target = 'nir/nir_intrinsics.c', + script = 'nir/nir_intrinsics_c.py', + source = [], + command = python_cmd + ' $SCRIPT --outdir ' + bldroot + '/nir' +) + # parse Makefile.sources source_lists = env.ParseSourceList('Makefile.sources')