-
Notifications
You must be signed in to change notification settings - Fork 0
/
libgit2.gpr
54 lines (47 loc) · 2 KB
/
libgit2.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
library project Libgit2 is
for Create_Missing_Dirs use "True";
for Source_Dirs use ("src/**",".","sed");
for Object_Dir use ".obj";
for Library_Name use "A-libgit2";
for Library_Dir use "lib";
for Languages use ("Ada", "C++", "MarkDown", "Makefile", "Sed");
-- Used To Get Quic access To The C-Header Files.
for Source_Dirs use project'Source_Dirs & "/usr/include/git2";
package Pretty_Printer is
for Default_Switches ("ada") use ("-M128",
"-N",
"-c3",
"-c4",
"-c5",
"-A1",
"-A0",
"-A3",
"-A4",
"-A5",
"-A2",
"-e",
"--comments-unchanged",
"--source-line-breaks",
"--vertical-enum-types");
end Pretty_Printer;
package Builder is
for Switches ("Ada") use ("-j0", "-k", "-g", "-s");
end Builder;
package Compiler is
for Driver ("C++") use "";
for Driver ("MarkDown") use "";
for Driver ("Makefile") use "";
for Driver ("Sed") use "";
for Switches ("Ada") use ("-gnat2020", "-g", "-gnatf", "-fcallgraph-info=su,da", "-fdata-sections", "-ffunction-sections", "-gnatwa", "-gnatyBabcdfhikln");
end Compiler;
package Naming is
for Spec_Suffix ("C++") use ".h";
for Body_Suffix ("makefile") use ".mk";
for Body_Suffix ("MarkDown") use ".md";
for Body_Suffix ("sed") use ".sed";
for Implementation_Exceptions ("makefile") use ("Makefile");
end Naming;
package Linker is
for Linker_Options use ("-l" & "git2");
end Linker;
end Libgit2;