diff options
author | Alexander von Gluck IV <[email protected]> | 2013-10-01 21:03:48 +0000 |
---|---|---|
committer | Alexander von Gluck IV <[email protected]> | 2013-10-04 18:20:09 -0500 |
commit | c9f1217e1f2c309cfd8770940773f1f35582a795 (patch) | |
tree | c66197fd83c9a6edbeb2f570e3a9337ac2e4de16 /src/gallium/targets/libgl-haiku/SConscript | |
parent | 1349766612709a4bc15eac0780178fb01e5d18bc (diff) |
haiku: Build Haiku's libGL from within Mesa
* This in essence means that Mesa would be
taking control of Haiku's OpenGL kit.
* This works by dispatching renderers from the
OpenGL add-ons directory
Diffstat (limited to 'src/gallium/targets/libgl-haiku/SConscript')
-rw-r--r-- | src/gallium/targets/libgl-haiku/SConscript | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/gallium/targets/libgl-haiku/SConscript b/src/gallium/targets/libgl-haiku/SConscript new file mode 100644 index 00000000000..2e6b62824a3 --- /dev/null +++ b/src/gallium/targets/libgl-haiku/SConscript @@ -0,0 +1,34 @@ +####################################################################### +# SConscript for Haiku OpenGL kit + +Import('*') + +env = env.Clone() + +env.Append(CPPPATH = [ + '#/src/mapi', + '#/src/mesa', + '#/src/mesa/main', + '/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) |