aco: Don't store LS VS outputs to LDS when TCS doesn't need them.
[mesa.git] / src / gallium / targets / osmesa / SConscript
index eeaacbcaf6450882f4fa15ec5e3d6933b1deeb30..3df5c50097632258a0b508efb5b3eea47d9e2161 100644 (file)
@@ -15,13 +15,14 @@ env.Prepend(LIBS = [
     compiler,
     mesa,
     gallium,
-    trace,
     glsl,
+    nir,
+    spirv,
     mesautil,
     softpipe
 ])
 
-env.Append(CPPDEFINES = ['GALLIUM_TRACE', 'GALLIUM_SOFTPIPE'])
+env.Append(CPPDEFINES = ['GALLIUM_SOFTPIPE'])
 
 sources = ['target.c']
 
@@ -29,11 +30,18 @@ if env['llvm']:
     env.Append(CPPDEFINES = 'GALLIUM_LLVMPIPE')
     env.Prepend(LIBS = [llvmpipe])
 
+    if env['swr']:
+        env.Append(CPPDEFINES = 'GALLIUM_SWR')
+        env.Prepend(LIBS = [swr])
+
 if env['platform'] == 'windows':
     if env['gcc'] and env['machine'] != 'x86_64':
         sources += ['osmesa.mingw.def']
     else:
         sources += ['osmesa.def']
+    # Link with winsock2 library
+    env.Append(LIBS = ['ws2_32'])
+
 
 gallium_osmesa = env.SharedLibrary(
     target ='osmesa',