Duplicate the glsl_types_hack.cpp work-around from the libgl-xlib target.
env.Append(CPPPATH = [
'#src',
+ '#src/mesa',
+ '#src/mapi',
+ '#src/glsl',
+ '#src/glsl/nir',
'#src/gallium/state_trackers/wgl',
'#src/gallium/winsys/sw',
])
env.Prepend(LIBS = [mesautil])
-sources = ['libgl_gdi.c']
+sources = [
+ 'libgl_gdi.c',
+ 'glsl_types_hack.cpp'
+]
+
drivers = []
if True:
--- /dev/null
+/* errrg scons.. otherwise "scons: *** Two environments with different actions were specified for the same target: $mesa/build/linux-x86_64-debug/glsl/nir/glsl_types.os" */
+#include "glsl_types.cpp"
+
env.Prepend(CPPPATH = [
'#src/mapi',
'#src/mesa',
+ '#src/glsl',
+ '#src/glsl/nir',
#Dir('../../../mapi'), # src/mapi build path for python-generated GL API files/headers
])
env.Append(CPPDEFINES = ['GALLIUM_TRACE', 'GALLIUM_SOFTPIPE'])
-sources = ['target.c']
+sources = [
+ 'target.c',
+ 'glsl_types_hack.cpp'
+]
if env['llvm']:
env.Append(CPPDEFINES = 'GALLIUM_LLVMPIPE')
--- /dev/null
+/* errrg scons.. otherwise "scons: *** Two environments with different actions were specified for the same target: $mesa/build/linux-x86_64-debug/glsl/nir/glsl_types.os" */
+#include "glsl_types.cpp"
+