summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander von Gluck IV <kallisti5@unixzen.com>2013-12-31 15:39:49 -0600
committerAlexander von Gluck IV <kallisti5@unixzen.com>2014-01-06 15:50:21 -0600
commit61ef697afc0ad509dcabdecfc424f27b5966969c (patch)
treeb099044ff97e9a0f4522b8c59adaaec82d6ace28
parentb236314a1107214210c429295fac8a5bdf457772 (diff)
downloadexternal_mesa3d-61ef697afc0ad509dcabdecfc424f27b5966969c.tar.gz
external_mesa3d-61ef697afc0ad509dcabdecfc424f27b5966969c.tar.bz2
external_mesa3d-61ef697afc0ad509dcabdecfc424f27b5966969c.zip
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>
-rw-r--r--src/SConscript5
-rw-r--r--src/gallium/SConscript1
-rw-r--r--src/gallium/targets/haiku-softpipe/SConscript2
-rw-r--r--src/hgl/GLDispatcher.cpp (renamed from src/gallium/targets/libgl-haiku/GLDispatcher.cpp)0
-rw-r--r--src/hgl/GLDispatcher.h (renamed from src/gallium/targets/libgl-haiku/GLDispatcher.h)0
-rw-r--r--src/hgl/GLRenderer.cpp (renamed from src/gallium/targets/libgl-haiku/GLRenderer.cpp)0
-rw-r--r--src/hgl/GLRendererRoster.cpp (renamed from src/gallium/targets/libgl-haiku/GLRendererRoster.cpp)0
-rw-r--r--src/hgl/GLRendererRoster.h (renamed from src/gallium/targets/libgl-haiku/GLRendererRoster.h)0
-rw-r--r--src/hgl/GLView.cpp (renamed from src/gallium/targets/libgl-haiku/GLView.cpp)0
-rw-r--r--src/hgl/SConscript (renamed from src/gallium/targets/libgl-haiku/SConscript)1
-rw-r--r--src/mesa/drivers/haiku/swrast/SConscript2
11 files changed, 10 insertions, 1 deletions
diff --git a/src/SConscript b/src/SConscript
index 146591866c..a24aceaea1 100644
--- a/src/SConscript
+++ b/src/SConscript
@@ -18,6 +18,11 @@ if env['hostonly']:
# enable OpenGL ES support.
SConscript('mapi/glapi/gen/SConscript')
SConscript('mapi/glapi/SConscript')
+
+# Haiku C++ libGL dispatch (renderers depend on libgl)
+if env['platform'] in ['haiku']:
+ SConscript('hgl/SConscript')
+
SConscript('mesa/SConscript')
SConscript('mapi/vgapi/SConscript')
diff --git a/src/gallium/SConscript b/src/gallium/SConscript
index 6e27be2c06..32bbdbe568 100644
--- a/src/gallium/SConscript
+++ b/src/gallium/SConscript
@@ -119,7 +119,6 @@ if not env['embedded']:
if env['platform'] == 'haiku':
SConscript([
'targets/haiku-softpipe/SConscript',
- 'targets/libgl-haiku/SConscript',
])
if env['dri']:
diff --git a/src/gallium/targets/haiku-softpipe/SConscript b/src/gallium/targets/haiku-softpipe/SConscript
index 16ce7cd9e1..0381d0550e 100644
--- a/src/gallium/targets/haiku-softpipe/SConscript
+++ b/src/gallium/targets/haiku-softpipe/SConscript
@@ -17,6 +17,8 @@ if True:
])
env.Prepend(LIBS = [softpipe])
+env.Prepend(LIBS = [libgl])
+
env.Append(CPPPATH = [
'#/src/mapi',
'#/src/mesa',
diff --git a/src/gallium/targets/libgl-haiku/GLDispatcher.cpp b/src/hgl/GLDispatcher.cpp
index 46b91d57c4..46b91d57c4 100644
--- a/src/gallium/targets/libgl-haiku/GLDispatcher.cpp
+++ b/src/hgl/GLDispatcher.cpp
diff --git a/src/gallium/targets/libgl-haiku/GLDispatcher.h b/src/hgl/GLDispatcher.h
index 44bca8ce58..44bca8ce58 100644
--- a/src/gallium/targets/libgl-haiku/GLDispatcher.h
+++ b/src/hgl/GLDispatcher.h
diff --git a/src/gallium/targets/libgl-haiku/GLRenderer.cpp b/src/hgl/GLRenderer.cpp
index 4573a64a35..4573a64a35 100644
--- a/src/gallium/targets/libgl-haiku/GLRenderer.cpp
+++ b/src/hgl/GLRenderer.cpp
diff --git a/src/gallium/targets/libgl-haiku/GLRendererRoster.cpp b/src/hgl/GLRendererRoster.cpp
index 1712a871c9..1712a871c9 100644
--- a/src/gallium/targets/libgl-haiku/GLRendererRoster.cpp
+++ b/src/hgl/GLRendererRoster.cpp
diff --git a/src/gallium/targets/libgl-haiku/GLRendererRoster.h b/src/hgl/GLRendererRoster.h
index 5c8da27119..5c8da27119 100644
--- a/src/gallium/targets/libgl-haiku/GLRendererRoster.h
+++ b/src/hgl/GLRendererRoster.h
diff --git a/src/gallium/targets/libgl-haiku/GLView.cpp b/src/hgl/GLView.cpp
index 9ae5b5c83a..9ae5b5c83a 100644
--- a/src/gallium/targets/libgl-haiku/GLView.cpp
+++ b/src/hgl/GLView.cpp
diff --git a/src/gallium/targets/libgl-haiku/SConscript b/src/hgl/SConscript
index 43d15c50e3..70db1494df 100644
--- a/src/gallium/targets/libgl-haiku/SConscript
+++ b/src/hgl/SConscript
@@ -33,3 +33,4 @@ libgl = env.SharedLibrary(
)
env.Alias('libgl-haiku', libgl)
+Export('libgl')
diff --git a/src/mesa/drivers/haiku/swrast/SConscript b/src/mesa/drivers/haiku/swrast/SConscript
index ca0423e4ad..aef730098c 100644
--- a/src/mesa/drivers/haiku/swrast/SConscript
+++ b/src/mesa/drivers/haiku/swrast/SConscript
@@ -16,6 +16,8 @@ env.Prepend(LIBS = [
mesa,
])
+env.Prepend(LIBS = [libgl])
+
sources = [
'SoftwareRast.cpp'
]