Home | History | Annotate | Download | only in hgl
      1 #######################################################################
      2 # SConscript for Haiku OpenGL kit
      3 
      4 Import('*')
      5 
      6 env = env.Clone()
      7 
      8 env.Append(CPPPATH = [
      9     '#/src',
     10     '#/src/mapi',
     11     '#/src/mesa',
     12     '#/src/mesa/main',
     13     '#/include/HaikuGL',
     14     '/boot/system/develop/headers/private',
     15     Dir('../../../mapi'), # src/mapi build path for python-generated GL API files/headers
     16 ])
     17 
     18 env.Prepend(LIBS = [
     19     glapi
     20 ])
     21 
     22 sources = [
     23     'GLView.cpp',
     24     'GLRenderer.cpp',
     25     'GLRendererRoster.cpp',
     26     'GLDispatcher.cpp',
     27 ]
     28 
     29 # libGL.so
     30 libgl = env.SharedLibrary(
     31     target ='GL',
     32     source = sources,
     33     SHLIBSUFFIX = env['SHLIBSUFFIX'],
     34 )
     35 
     36 env.Alias('libgl-haiku', libgl)
     37 Export('libgl')
     38