glut: build and link into libGL
This commit is contained in:
@@ -38,13 +38,16 @@ LINKFLAGS on libGL.so = [ on libGL.so return $(LINKFLAGS) ]
|
|||||||
if $(HAIKU_GCC_VERSION[1]) < 3 {
|
if $(HAIKU_GCC_VERSION[1]) < 3 {
|
||||||
SubDirC++Flags --no-warnings ;
|
SubDirC++Flags --no-warnings ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
SharedLibrary libGL.so : $(sources) :
|
SharedLibrary libGL.so : $(sources) :
|
||||||
|
|
||||||
# Mesa libraries (from Mesa optional package):
|
# Mesa libraries (from Mesa optional package):
|
||||||
$(HAIKU_MESA_LIBS)
|
$(HAIKU_MESA_LIBS)
|
||||||
|
|
||||||
|
# Glut
|
||||||
|
<opengl>glut.o
|
||||||
|
|
||||||
# External libraries:
|
# External libraries:
|
||||||
be
|
be
|
||||||
game # BWindowScreen needed by BGLScreen stub class
|
game # BWindowScreen needed by BGLScreen stub class
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
SubDir HAIKU_TOP src libs glut ;
|
SubDir HAIKU_TOP src libs glut ;
|
||||||
|
SubDirSysHdrs $(HAIKU_MESA_HEADERS) ;
|
||||||
|
|
||||||
SetSubDirSupportedPlatformsBeOSCompatible ;
|
SetSubDirSupportedPlatformsBeOSCompatible ;
|
||||||
|
|
||||||
@@ -7,6 +8,13 @@ if $(TARGET_PLATFORM) != haiku {
|
|||||||
# We need our public GL headers also when not compiling for Haiku.
|
# We need our public GL headers also when not compiling for Haiku.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
# For GCC2
|
||||||
|
if $(HAIKU_GCC_VERSION[1]) < 3 {
|
||||||
|
SubDirC++Flags --no-warnings ;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
MergeObject <opengl>glut.o :
|
MergeObject <opengl>glut.o :
|
||||||
# C++ sources
|
# C++ sources
|
||||||
glutBlocker.cpp
|
glutBlocker.cpp
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
#include "glutState.h"
|
#include "glutState.h"
|
||||||
#include "glutBlocker.h"
|
#include "glutBlocker.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
#define MOUSE_WHEEL_UP 3
|
#define MOUSE_WHEEL_UP 3
|
||||||
#define MOUSE_WHEEL_DOWN 4
|
#define MOUSE_WHEEL_DOWN 4
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
#include <GL/glut.h>
|
#include <GL/glut.h>
|
||||||
#include <String.h>
|
#include <String.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
|
||||||
// GlutGameMode class
|
// GlutGameMode class
|
||||||
|
|||||||
Reference in New Issue
Block a user