Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | RSS feed

  1. Import('*')
  2.  
  3. env = env.Clone()
  4.  
  5. env.Prepend(CPPPATH = [
  6.     '#src/mapi',
  7.     '#src/mesa',
  8.     #Dir('../../../mapi'), # src/mapi build path for python-generated GL API files/headers
  9. ])
  10.  
  11. env.Prepend(LIBS = [
  12.     st_osmesa,
  13.     ws_null,
  14.     glapi,
  15.     mesa,
  16.     gallium,
  17.     trace,
  18.     glsl,
  19.     mesautil,
  20.     softpipe
  21. ])
  22.  
  23. env.Append(CPPDEFINES = ['GALLIUM_TRACE', 'GALLIUM_SOFTPIPE'])
  24.  
  25. sources = ['target.c']
  26.  
  27. if env['llvm']:
  28.     env.Append(CPPDEFINES = 'GALLIUM_LLVMPIPE')
  29.     env.Prepend(LIBS = [llvmpipe])
  30.  
  31. if env['platform'] == 'windows':
  32.     if env['gcc'] and env['machine'] != 'x86_64':
  33.         sources += ['osmesa.mingw.def']
  34.     else:
  35.         sources += ['osmesa.def']
  36.  
  37. gallium_osmesa = env.SharedLibrary(
  38.     target ='osmesa',
  39.     source = sources,
  40.     LIBS = env['LIBS'],
  41. )
  42.  
  43. env.Alias('osmesa', gallium_osmesa)
  44.