Repository navigation
Expand file tree
/
Copy paththumper.gpr
More file actions
59 lines (50 loc) · 2.01 KB
/
Copy paththumper.gpr
File metadata and controls
59 lines (50 loc) · 2.01 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
with "aunit.gpr";
with "aws.gpr";
with "gtkada.gpr";
project Thumper is
for Languages use ("Ada", "C");
for Source_Dirs use ("src", "src/hermes", "src/client", "src/server", "src/tests");
for Object_Dir use "build";
for Main use ("hermes_test.adb", "thumper_test.adb", "thumper_server.adb", "thumper_client.adb");
for Roots ("signature_demo.c") use ();
type Runtime_Type is ("full");
Runtime : Runtime_Type := external ("RUNTIME", "full");
-- Target platform customizations...
Target := Project'Target;
case Target is
when "x86_64-windows" =>
for Library_Options use ("-LC:/Program Files/PostgreSQL/14/lib", "-lcrypto", "-lz", "-lpq");
when "x86_64-linux" =>
for Library_Options use ("-lcrypto", "-lz", "-lpq");
when "x86_64-darwin" =>
for Library_Options use ("-L/Library/PostgreSQL/14/lib", "-lcrypto", "-lz", "-lpq");
when others =>
for Library_Options use ("-lcrypto", "-lz", "-lpq");
end case;
package Builder is
for Default_Switches ("Ada") use ("-g", "-gnata", "-gnatwa");
end Builder;
package Compiler is
for Default_Switches ("Ada") use ("-g", "-gnata", "-gnatwa");
case Target is
when "x86_64-windows" =>
for Default_Switches ("C") use("-IC:/Program Files/PostgreSQL/14/include");
when "x86_64-linux" =>
-- If PostgreSQL is installed from packages, the standard /usr/include is good enough.
when "x86_64-darwin" =>
for Default_Switches ("C") use ("-I/Library/PostgreSQL/14/include");
when others =>
for Default_Switches ("C") use ();
end case;
end Compiler;
package Binder is
for Default_Switches ("Ada") use ("-static");
end Binder;
package Linker is
for Default_Switches ("Ada") use ("-g") & Project'Library_Options;
for Default_Switches ("C") use ("-g") & Project'Library_Options;
end Linker;
package Prove is
for Proof_Switches ("Ada") use ("-j0");
end Prove;
end Thumper;