xref: /haiku/src/libs/glut/Jamfile (revision d06cbe081b7ea043aea2012359744091de6d604d)
1SubDir HAIKU_TOP src libs glut ;
2
3UseLibraryHeaders glut ;
4
5SetSubDirSupportedPlatformsBeOSCompatible ;
6
7local sourcesCc =
8	# C sources
9	glut_8x13.c
10	glut_9x15.c
11	glut_bitmap.c
12	glut_bwidth.c
13	glut_hel10.c
14	glut_hel12.c
15	glut_hel18.c
16	glut_tr10.c
17	glut_tr24.c
18	glut_mroman.c
19	glut_roman.c
20	glut_stroke.c
21	glut_swidth.c
22	glut_shapes.c
23	glut_teapot.c
24	glut_vidresize.c
25	glut_util.c
26	glut_ext.c
27;
28
29
30local sourcesCpp =
31	glutBlocker.cpp
32	glutInit.cpp
33	glutWindow.cpp
34	glutEvent.cpp
35	glutCallback.cpp
36	glutOverlay.cpp
37	glutGet.cpp
38	glutColor.cpp
39	glutCursor.cpp
40	glutMenu.cpp
41	glutDstr.cpp
42	glutGameMode.cpp
43	beos_x11.cpp
44;
45
46
47local architectureObject ;
48for architectureObject in [ MultiArchSubDirSetup ] {
49	on $(architectureObject) {
50		local architecture = $(TARGET_PACKAGING_ARCH) ;
51
52		UseBuildFeatureHeaders glu ;
53		UseBuildFeatureHeaders mesa ;
54
55		# For GCC2
56		if $(architecture) = x86_gcc2 {
57			SubDirC++Flags --no-warnings ;
58		}
59
60		# Ensure Mesa dependency is met
61		Includes [ FGristFiles $(sourcesCc) $(sourcesCpp) ] :
62			[ BuildFeatureAttribute glu : headers ]
63			[ BuildFeatureAttribute mesa : headers ]
64			;
65
66		SharedLibrary [ MultiArchDefaultGristFiles libglut.so ] :
67			$(sourcesCpp)
68			$(sourcesCc)
69			:
70			game be $(TARGET_LIBSTDC++)
71			[ BuildFeatureAttribute mesa : library ]
72			[ BuildFeatureAttribute glu : library ]
73			;
74	}
75}
76