1#######################################################################
2# SConscript for Haiku OpenGL kit
3
4Import('*')
5
6env = env.Clone()
7
8env.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
18env.Prepend(LIBS = [
19    glapi
20])
21
22sources = [
23    'GLView.cpp',
24    'GLRenderer.cpp',
25    'GLRendererRoster.cpp',
26    'GLDispatcher.cpp',
27]
28
29# libGL.so
30libgl = env.SharedLibrary(
31    target ='GL',
32    source = sources,
33    SHLIBSUFFIX = env['SHLIBSUFFIX'],
34)
35
36env.Alias('libgl-haiku', libgl)
37Export('libgl')
38