tests/glsl: Fix glsl OpenGL test build
This commit is contained in:
@@ -1,21 +1,17 @@
|
|||||||
SubDir HAIKU_TOP src tests kits opengl glsl ;
|
SubDir HAIKU_TOP src tests kits opengl glsl ;
|
||||||
UseBuildFeatureHeaders mesa ;
|
UseBuildFeatureHeaders mesa ;
|
||||||
|
UseBuildFeatureHeaders glu ;
|
||||||
SetSubDirSupportedPlatformsBeOSCompatible ;
|
UseLibraryHeaders glut ;
|
||||||
|
|
||||||
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 ;
|
|
||||||
}
|
|
||||||
|
|
||||||
local shadersources =
|
local shadersources =
|
||||||
shaderutil.c
|
shaderutil.c
|
||||||
;
|
;
|
||||||
|
|
||||||
Includes [ FGristFiles $(shadersources) ]
|
Includes [ FGristFiles $(shadersources) ]
|
||||||
: [ BuildFeatureAttribute mesa : headers ] ;
|
:
|
||||||
|
[ BuildFeatureAttribute mesa : headers ]
|
||||||
|
[ BuildFeatureAttribute glu : headers ]
|
||||||
|
;
|
||||||
|
|
||||||
StaticLibrary libshaderutil.a :
|
StaticLibrary libshaderutil.a :
|
||||||
$(shadersources)
|
$(shadersources)
|
||||||
@@ -24,6 +20,7 @@ StaticLibrary libshaderutil.a :
|
|||||||
SimpleTest brick :
|
SimpleTest brick :
|
||||||
brick.c
|
brick.c
|
||||||
:
|
:
|
||||||
libshaderutil.a be
|
libshaderutil.a be libglut.so
|
||||||
[ BuildFeatureAttribute mesa : library ]
|
[ BuildFeatureAttribute mesa : library ]
|
||||||
|
[ BuildFeatureAttribute glu : library ]
|
||||||
;
|
;
|
||||||
|
|||||||
Reference in New Issue
Block a user