Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | RSS feed

  1. Import('*')
  2.  
  3. env = env.Clone()
  4.  
  5. env.Append(CPPDEFINES = [
  6.         'DEFAULT_DRIVER_DIR=\\"\\"'
  7. ])
  8.  
  9. env.Append(CPPPATH = [
  10.         '#/include',
  11.         '#/src/egl/main',
  12.         '#/src/loader',
  13. ])
  14.  
  15. sources = [
  16.         'egl_dri2.c',
  17. ]
  18.  
  19. if env['x11']:
  20.         sources.append('platform_x11.c')
  21.         env.Append(CPPDEFINES = [
  22.                 'HAVE_X11_PLATFORM',
  23.         ])
  24.         #env.Append(CPPPATH = [
  25.         #       'XCB_DRI2_CFLAGS',
  26.         #])
  27.  
  28. if env['drm']:
  29.         env.PkgUseModules('DRM')
  30.  
  31. env.Prepend(LIBS = [
  32.         libloader,
  33. ])
  34.  
  35. egl_dri2 = env.ConvenienceLibrary(
  36.         target = 'egl_dri2',
  37.         source = sources,
  38. )
  39.  
  40. Export('egl_dri2')
  41.