forked from jfuica/bingada
-
Notifications
You must be signed in to change notification settings - Fork 1
/
bingada_custom.gpr
74 lines (62 loc) · 2.13 KB
/
bingada_custom.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
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
71
72
73
74
-- This is the project file to use when you don't have Alire.
-- It uses git submodules, so you have to clone using the recurse option:
-- git clone --recursive https://github.com/jfuica/bingada
-- Add path to your gtkada installation if it is not found by gprbuild, e.g.:
--with "/opt/COTS/gtkada-2019/lib/gnat/gtkada";
with "gtkada.gpr";
-- Delete this line under Windows, since canberra is not supported and won't
-- link.
with "libs/canberra-ada/tools/canberra.gpr";
-- Delete this line if sfmlAudio does not build and choose another option
-- for SOUND_LIB.
with "libs/sfmlAudio/sfmlAudio.gpr";
-- Delete this line if ASFML does not build and choose another option
-- for SOUND_LIB.
with "libs/ASFML/asfml.gpr";
project Bingada is
type T_OS is ("Windows_NT", "Linux");
V_OS : T_OS := external ("OS", "Linux");
type T_Sound_Lib is ("canberra", "sfml", "asfml", "none");
V_Sound_Lib : T_Sound_Lib := external ("SOUND_LIB", "asfml");
for Source_Dirs use ("src");
for Object_Dir use "obj";
for Exec_Dir use "bin";
for Main use ("bingada.adb");
package Naming is
case V_OS is
when "Windows_NT" =>
case V_Sound_Lib is
when "sfml" =>
for body("Q_Sound") use "q_sound.sfml.adb";
when "asfml" =>
for Body("Q_Sound") use "q_sound.adb";
when others =>
-- canberra not supported
for body("Q_Sound") use "q_sound.null.adb";
end case;
when "Linux" =>
case V_Sound_Lib is
when "canberra" =>
for body("Q_Sound") use "q_sound.canberra.adb";
when "sfml" =>
for body("Q_Sound") use "q_sound.sfml.adb";
when "asfml" =>
for Body("Q_Sound") use "q_sound.adb";
when "none" =>
for body("Q_Sound") use "q_sound.null.adb";
end case;
when others =>
for body("Q_Sound") use "q_sound.null.adb";
end case;
end Naming;
package Compiler is
for Default_Switches ("ada") use
("-g",
"-gnatwa",
"-fstack-check",
"-gnatVa",
"-gnatU",
"-gnatf",
"-gnateE");
end Compiler;
end Bingada;