aco: Don't store LS VS outputs to LDS when TCS doesn't need them.
[mesa.git] / src / mesa / drivers / osmesa / SConscript
index cbff5943fbb36a88041d07d2c9d16f3bf339cc98..d7e8fe84da6d3909481f4b3b56f3b5703a696d35 100644 (file)
@@ -7,11 +7,17 @@ env.Prepend(CPPPATH = [
     '#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,
 ])
 
@@ -22,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,