diff options
author | Alexander von Gluck IV <kallisti5@unixzen.com> | 2013-12-31 15:39:49 -0600 |
---|---|---|
committer | Alexander von Gluck IV <kallisti5@unixzen.com> | 2014-01-06 15:50:21 -0600 |
commit | 61ef697afc0ad509dcabdecfc424f27b5966969c (patch) | |
tree | b099044ff97e9a0f4522b8c59adaaec82d6ace28 /src/hgl/SConscript | |
parent | b236314a1107214210c429295fac8a5bdf457772 (diff) | |
download | mesa-61ef697afc0ad509dcabdecfc424f27b5966969c.tar.gz |
haiku libGL: Move from gallium target to src/hgl
* The Haiku renderers need to link to libGL to function properly
in all usage contexts. As mesa drivers build before gallium
targets, we couldn't properly link the mesa swrast driver to
the gallium libGL target for Haiku.
* This is likely better as it mimics how glx is laid out ensuring
the Haiku libGL is better understood.
* All renderers properly link in libGL now.
Acked-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'src/hgl/SConscript')
-rw-r--r-- | src/hgl/SConscript | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/hgl/SConscript b/src/hgl/SConscript new file mode 100644 index 00000000000..70db1494df8 --- /dev/null +++ b/src/hgl/SConscript @@ -0,0 +1,36 @@ +####################################################################### +# SConscript for Haiku OpenGL kit + +Import('*') + +env = env.Clone() + +env.Append(CPPPATH = [ + '#/src/mapi', + '#/src/mesa', + '#/src/mesa/main', + '#/include/HaikuGL', + '/boot/system/develop/headers/private', + Dir('../../../mapi'), # src/mapi build path for python-generated GL API files/headers +]) + +env.Prepend(LIBS = [ + glapi +]) + +sources = [ + 'GLView.cpp', + 'GLRenderer.cpp', + 'GLRendererRoster.cpp', + 'GLDispatcher.cpp', +] + +# libGL.so +libgl = env.SharedLibrary( + target ='GL', + source = sources, + SHLIBSUFFIX = env['SHLIBSUFFIX'], +) + +env.Alias('libgl-haiku', libgl) +Export('libgl') |