-
Notifications
You must be signed in to change notification settings - Fork 7
/
opengl_test.gpr
41 lines (30 loc) · 960 Bytes
/
opengl_test.gpr
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
-- this project is just for testing if OpenGL functions are correctly
-- imported (primarily on Windows, where StdCall does things to the
-- symbol names)
with "opengl.gpr";
project OpenGL_Test is
for Object_Dir use "obj";
for Exec_Dir use "bin";
for Source_Dirs use ("gl/tests");
type Os_Type is
("Windows", "Linux", "MacOSX");
Os : Os_Type := external ("OS");
case Os is
when "Windows" =>
for Source_Files use ("wgl_test1.adb");
for Main use ("wgl_test1.adb");
when "Linux" => null;
when "MacOSX" =>
for Source_Files use ("cgl_test1.adb");
for Main use ("cgl_test1.adb");
end case;
package Ide is
for Vcs_Kind use "Git";
end Ide;
package Builder is
for Default_Switches ("ada") use ("-s");
end Builder;
package Compiler is
for Default_Switches ("ada") use ("-gnat05", "-gnatn", "-fstack-check");
end Compiler;
end OpenGL_Test;