tests/glsl: Fix glsl OpenGL test build

This commit is contained in:
Alexander von Gluck IV
2013-12-26 23:47:32 -06:00
parent 447224bf79
commit 56e7f623a3
+8 -11
View File
@@ -1,21 +1,17 @@
SubDir HAIKU_TOP src tests kits opengl glsl ;
UseBuildFeatureHeaders mesa ;
SetSubDirSupportedPlatformsBeOSCompatible ;
if $(TARGET_PLATFORM) != haiku {
# Needed for <GL/glut.h>, not present in R5.
# Unfortunately we also get the other headers there,
# that we don't really want.
UsePublicHeaders opengl ;
}
UseBuildFeatureHeaders glu ;
UseLibraryHeaders glut ;
local shadersources =
shaderutil.c
;
Includes [ FGristFiles $(shadersources) ]
: [ BuildFeatureAttribute mesa : headers ] ;
:
[ BuildFeatureAttribute mesa : headers ]
[ BuildFeatureAttribute glu : headers ]
;
StaticLibrary libshaderutil.a :
$(shadersources)
@@ -24,6 +20,7 @@ StaticLibrary libshaderutil.a :
SimpleTest brick :
brick.c
:
libshaderutil.a be
libshaderutil.a be libglut.so
[ BuildFeatureAttribute mesa : library ]
[ BuildFeatureAttribute glu : library ]
;