-
Notifications
You must be signed in to change notification settings - Fork 3
/
gnatcoll-json.gpr
60 lines (49 loc) · 1.97 KB
/
gnatcoll-json.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
with "gnatcoll";
library project GnatColl.JSON is
type Library_Type_Type is ("static", "relocatable", "static-pic");
Library_Type : Library_Type_Type := external("LIBRARY_TYPE","static");
VERSION := "1.4.1";
-- VERSION shall be in sync with:
-- GNATCOLL.JSON.Support.VERSION
-- The the README.md file
for Languages use ("ada","Python","Makefile","MarkUP");
for Source_Dirs use (".","src", "bin");
for Object_Dir use ".obj/" & project'Name & "/" & Library_Type;
for Library_Dir use "lib";
for Library_Name use "gnatcolljson";
case Library_Type is
when "relocatable" =>
for Library_Kind use "relocatable";
when "static" =>
for Library_Kind use "static";
when "static-pic" =>
for Library_Kind use "static-pic";
end case;
for Library_Dir use "lib/" & Library_Type;
for Library_Version use "lib" & -- project'Shared_Library_Prefix &
project'Library_Name & ".so" & -- project'Shared_Library_Suffix &
"." & VERSION;
package Builder is
for Default_Switches ("ada") use ("-j0", "-k", "-s");
end Builder;
package Compiler is
for Driver("Python") use "";
for Driver("MarkUP") use "";
for Driver("Makefile") use "";
for Default_Switches ("ada") use ("-gnatwa",
"-gnat12",
"-gnatq",
-- "-gnata", "-gnateE",
"-gnatyaAbBcdefhiklnOprtux", --< Triggers a compiler bug in 17.0w 20160503>
"-fstack-check",
"-gnatQ");
end Compiler;
package Install is
end Install;
package Naming is
for Body_Suffix ("Python") use ".py";
for Body_Suffix ("MarkUP") use ".md";
for Body_Suffix ("Makefile") use ".mk";
for Implementation_Exceptions ("Makefile") use ("Makefile");
end Naming;
end GnatColl.JSON;