Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | RSS feed

  1. #######################################################################
  2. # SConscript for graw-gdi
  3.  
  4. Import('*')
  5.  
  6. env = env.Clone()
  7.  
  8. env.Append(CPPPATH = [
  9.     '#src/gallium/winsys/sw',
  10. ])
  11.  
  12. env.Prepend(LIBS = [
  13.     mesautil,
  14.     gallium,
  15.     'gdi32',
  16.     'user32',
  17.     'ws2_32',
  18. ])
  19.  
  20. sources = [
  21.     'graw_gdi.c',
  22.     graw_util,
  23. ]
  24.  
  25. if True:
  26.     env.Append(CPPDEFINES = ['GALLIUM_TRACE', 'GALLIUM_RBUG', 'GALLIUM_SOFTPIPE'])
  27.     env.Prepend(LIBS = [trace, rbug, softpipe])
  28.  
  29. if env['llvm']:
  30.     env.Append(CPPDEFINES = 'GALLIUM_LLVMPIPE')
  31.     env.Prepend(LIBS = [llvmpipe])
  32.  
  33. graw = env.SharedLibrary(
  34.     target = 'graw',
  35.     source = sources,
  36.     LIBS = ws_gdi + env['LIBS'],
  37. )
  38.  
  39. if env['platform'] == 'windows':
  40.     graw = env.FindIxes(graw, 'LIBPREFIX', 'LIBSUFFIX')
  41. else:
  42.     graw = env.FindIxes(graw, 'SHLIBPREFIX', 'SHLIBSUFFIX')
  43.  
  44. env.Alias('graw-gdi', graw)
  45.