62f9de87b0
been since long already. This should help aljen reintegrate his gallium branch sooner than later, which after the speed improvment on softpipe made last days will be welcomed, I'll bet ;-) Maybe it's possible to even have both current Mesa Software Renderer add-on *and* Gallium-based SoftPipe one. Will need to actually support renderer selection (in OpenGL preference panel or via a missing OpenGL Kit API), as today the first add-on found is the only one ever selected... git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33282 a95241bf-73f2-0310-859d-f6bbb57e9c96
64 lines
1.8 KiB
Plaintext
64 lines
1.8 KiB
Plaintext
SubDir HAIKU_TOP src kits opengl ;
|
|
|
|
SetSubDirSupportedPlatformsBeOSCompatible ;
|
|
|
|
UsePrivateHeaders interface ;
|
|
UseLibraryHeaders mesa ;
|
|
UsePrivateSystemHeaders ;
|
|
|
|
if $(TARGET_PLATFORM) != haiku {
|
|
UseHeaders [ FDirName $(HAIKU_TOP) headers os opengl ] : true ;
|
|
# We need our public GL headers also when not compiling for Haiku.
|
|
}
|
|
|
|
|
|
UseHeaders [ FDirName $(HAIKU_TOP) src libs mesa mesa ] ;
|
|
UseHeaders [ FDirName $(HAIKU_TOP) src libs mesa mesa main ] ;
|
|
UseHeaders [ FDirName $(HAIKU_TOP) src libs mesa mesa glapi ] ;
|
|
UseHeaders [ FDirName $(HAIKU_TOP) src libs mesa mesa math ] ;
|
|
UseHeaders [ FDirName $(HAIKU_TOP) src libs mesa mesa tnl ] ;
|
|
UseHeaders [ FDirName $(HAIKU_TOP) src libs mesa mesa shader ] ;
|
|
UseHeaders [ FDirName $(HAIKU_TOP) src libs mesa mesa swrast ] ;
|
|
UseHeaders [ FDirName $(HAIKU_TOP) src libs mesa mesa swrast_setup ] ;
|
|
|
|
{
|
|
local defines ;
|
|
defines = BEOS_THREADS GNU_ASSEMBLER ;
|
|
|
|
if $(TARGET_ARCH) = x86 {
|
|
defines += USE_X86_ASM USE_MMX_ASM USE_3DNOW_ASM USE_SSE_ASM ;
|
|
} else if $(TARGET_ARCH) = ppc {
|
|
# Not yet supported, as current Mesa3D PPC assembly is Linux-dependent!
|
|
# defines += USE_PPC_ASM ;
|
|
} else if $(TARGET_ARCH) = sparc {
|
|
defines += USE_SPARC_ASM ;
|
|
}
|
|
|
|
defines = [ FDefines $(defines) ] ;
|
|
SubDirCcFlags $(defines) ;
|
|
SubDirC++Flags $(defines) ;
|
|
SubDirAsFlags $(defines) ;
|
|
}
|
|
|
|
SharedLibrary libGL.so :
|
|
GLView.cpp
|
|
GLDispatcher.cpp
|
|
GLRenderer.cpp
|
|
GLRendererRoster.cpp
|
|
:
|
|
|
|
# Mesa GL API dispatching code
|
|
<mesa>glapi-dispatching.o
|
|
|
|
# GLU API is included in libGL.so under BeOS R5, not a separate libglu.so library
|
|
<opengl>sgi-glu.o
|
|
|
|
# GLUT API is included in libGL.so under Haiku, not a separate libglut.so library
|
|
<opengl>glut.o
|
|
|
|
# External libs:
|
|
be
|
|
game # BWindowScreen needed by BGLScreen stub class
|
|
$(TARGET_LIBSTDC++)
|
|
;
|