-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdelirium.gpr
45 lines (37 loc) · 1.64 KB
/
delirium.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
-- This is a GNAT, GCC or GNAT Programming Studio (GPS) project file
-- for the project Corporate Bullshit Generator ( http://sf.net/projects/cbsg/ )
-- Build me with "gnatmake -P delirium", or open me with GPS
--
project Delirium is
type Build_Mode_Type is ("Debug", "Fast");
Build_Mode : Build_Mode_Type := external ("Build_Mode", "Fast");
for Main use ("produce_corporate_bullshit.adb", "live.adb");
for Object_Dir use "obj";
for Exec_Dir use ".";
for Create_Missing_Dirs use "True"; -- Flips by default the "-p" switch
case Build_Mode is
when "Debug" => for Object_Dir use "obj_debug";
when "Fast" => for Object_Dir use "obj_fast";
end case;
Common_Options := (
"-g",
"-gnatyM110",
"-gnatwa",
"-gnatyaknpr", -- Style: check all casings: a:attribute, k:keywords, n:package Standard identifiers, p:pragma, r:identifier references
"-gnatyfhiu", -- Style: check f:no ff/vtabs, h: no htabs, i:if-then layout, u:no unnecessary blank lines
"-gnatybct", -- Style: check b:blanks at end of lines, c:comment format (two spaces), t:token separation rules
"-gnatyx", -- Style: check x:no extra parens
"-gnatye" -- Style: check e:end/exit labels present
);
package Compiler is
case Build_Mode is
when "Debug" =>
for Default_Switches ("ada") use Common_Options & ("-gnatVa", "-gnato");
when "Fast" =>
for Default_Switches ("ada") use Common_Options & ("-g", "-O2", "-gnatpn");
end case;
end Compiler;
package Binder is
for Default_Switches ("ada") use ("-static");
end Binder;
end Delirium;