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