-
-
Notifications
You must be signed in to change notification settings - Fork 339
/
Jamfile
70 lines (59 loc) · 1.19 KB
/
Jamfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
SubDir HAIKU_TOP src libs glut ;
SubDirSysHdrs $(HAIKU_MESA_HEADERS) ;
SetSubDirSupportedPlatformsBeOSCompatible ;
if $(TARGET_PLATFORM) != haiku {
UseHeaders [ FDirName $(HAIKU_TOP) headers os opengl ] : true ;
# We need our public GL headers also when not compiling for Haiku.
}
local sourcesCc =
# C sources
glut_8x13.c
glut_9x15.c
glut_bitmap.c
glut_bwidth.c
glut_hel10.c
glut_hel12.c
glut_hel18.c
glut_tr10.c
glut_tr24.c
glut_mroman.c
glut_roman.c
glut_stroke.c
glut_swidth.c
glut_shapes.c
glut_teapot.c
glut_vidresize.c
glut_util.c
glut_ext.c
;
local sourcesCpp =
glutBlocker.cpp
glutInit.cpp
glutWindow.cpp
glutEvent.cpp
glutCallback.cpp
glutOverlay.cpp
glutGet.cpp
glutColor.cpp
glutCursor.cpp
glutMenu.cpp
glutDstr.cpp
glutGameMode.cpp
beos_x11.cpp
;
# For GCC2
if $(HAIKU_GCC_VERSION[1]) < 3 {
SubDirC++Flags --no-warnings ;
}
# Ensure GLU dependency is met
Includes [ FGristFiles $(sourcesCc) $(sourcesCpp) ]
: $(HAIKU_GLU_HEADERS_DEPENDENCY) ;
# Ensure Mesa dependency is met
Includes [ FGristFiles $(sourcesCc) $(sourcesCpp) ]
: $(HAIKU_MESA_HEADERS_DEPENDENCY) ;
MergeObject <opengl>glut.o :
# C++ sources
$(sourcesCpp)
# C sources
$(sourcesCc)
;