aco: Don't store LS VS outputs to LDS when TCS doesn't need them.
[mesa.git] / src / mesa / drivers / osmesa / SConscript
index fb2d98cadc5542e201e4fa5688130798f30bf2eb..d7e8fe84da6d3909481f4b3b56f3b5703a696d35 100644 (file)
@@ -3,14 +3,21 @@ Import('*')
 env = env.Clone()
 
 env.Prepend(CPPPATH = [
+    '#src',
     '#src/mapi',
     '#src/mesa',
     Dir('../../../mapi'), # src/mapi build path for python-generated GL API files/headers
+    Dir('../../../mapi/glapi'), # src/mapi/glapi build path
+    Dir('../../../mapi/glapi/gen'), # src/mapi/glapi build path
 ])
 
 env.Prepend(LIBS = [
+    mesautil,
     glapi,
+    compiler,
     mesa,
+    spirv,
+    nir,
     glsl,
 ])
 
@@ -21,14 +28,12 @@ sources = [
 if env['platform'] == 'windows':
     env.AppendUnique(CPPDEFINES = [
         '_GDI32_', # prevent wgl* being declared __declspec(dllimport)
-        'BUILD_GL32', # declare gl* as __declspec(dllexport) in Mesa headers 
+        'BUILD_GL32', # declare gl* as __declspec(dllexport) in Mesa headers
+        '_GLAPI_NO_EXPORTS', # prevent _glapi_* from being declared __declspec(dllimport)
     ])
-    if not env['gles']:
-        # prevent _glapi_* from being declared __declspec(dllimport)
-        env.Append(CPPDEFINES = ['_GLAPI_NO_EXPORTS'])
 
     sources += ['osmesa.def']
-    
+
 osmesa = env.SharedLibrary(
     target ='osmesa',
     source = sources,