-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenssl.gpr
More file actions
75 lines (66 loc) · 2.76 KB
/
openssl.gpr
File metadata and controls
75 lines (66 loc) · 2.76 KB
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
75
-- ---------------------------------------------
--
--
--
--
-- ---------------------------------------------
project OPenSSL is
for Source_Dirs use ("src","src/gen");
for Languages use ("Ada","Text");
for Object_Dir use ".obj";
type Library_Kind_Type is ("static","relocateble");
Library_Kind : Library_Kind_Type := External ("LIBRARY_TYPE", "static");
for Library_Dir use "lib/" & project'Name & "/" & Library_Kind;
for Object_Dir use Project'Object_Dir & "/" & Library_Kind;
for Library_Kind use Library_Kind;
for Library_Auto_Init use "True";
for Library_Name use project'Name;
-- ========================================================================
-- BUILDER
-- ========================================================================
package Builder is
for Default_Switches ("Ada") use
("-C", -- Cache source mappings
"-k", -- Keep going after compilation errors
"-s", -- Recompile if compiler switches have changed
"-j" & External ("NUMBER_OF_PROCESSORS", "1"));
for Default_Switches ("C") use Builder'Default_Switches ("Ada");
for Default_Switches ("C++") use Builder'Default_Switches ("Ada");
end Builder;
package Compiler is
for Driver ("Text") use "";
for Default_Switches ("Ada") use
("-gnatf", -- Full source path in brief error messages
"-gnatq", -- Don't quit, try semantics, even if parse errors
"-gnatQ", -- Don't quit, write ali/tree file even if compile errors
"-gnat05", -- Full Ada05
"-gnato", -- Overflow checking enabled.
"-gnatwa",
"-gnaty" &
"3" & -- check indentation
"a" & -- check attribute casing
"A" & -- check array attribute indexes
"b" & -- check no blanks at end of lines
"c" & -- check comment format
"e" & -- check end/exit labels present
"f" & -- check no form feeds/vertical tabs in source
"h" & -- check no horizontal tabs in source
"i" & -- check if-then layout
"I" & -- check mode in
"k" & -- check casing rules for keywords
"l" & -- check reference manual layout
"n" & -- check casing of package Standard identifiers
"M4096" & -- check line length <= nn characters
"p" & -- check pragma casing
"r" & -- check casing for identifier references
"s" & -- check separate subprogram specs present
"t" & -- check token separation rules
"x" & -- check extra parens around conditionals
"");
for Default_Switches ("c") use ();
for Default_Switches ("c++") use ();
end Compiler;
package Naming is
for spec_suffix("Text") use ".txt";
end Naming;
end OPenSSL;