forked from stcarrez/ada-util
-
Notifications
You must be signed in to change notification settings - Fork 0
/
util_tests.gpr
59 lines (40 loc) · 1.34 KB
/
util_tests.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
with "config";
with "util";
with "util_http";
with "util_unit";
with "tests_proc";
project Util_Tests is
for Languages use ("Ada", "Project file");
Mains := ("util_harness.adb");
for Source_Dirs use ("regtests/");
case Util_Http.Has_Curl is
when "yes" =>
for Source_Dirs use project'Source_Dirs & ("regtests/curl");
when others =>
end case;
case Util_Http.Has_Aws is
when "yes" =>
for Source_Dirs use project'Source_Dirs & ("regtests/aws");
when others =>
end case;
case Util.Os_Version is
when "os-linux" =>
for Source_Dirs use project'Source_Dirs & ("regtests/dlls");
for Source_Dirs use project'Source_Dirs & ("regtests/systems");
when "os-win32" =>
for Source_Dirs use project'Source_Dirs & ("regtests/dlls");
for Source_Dirs use project'Source_Dirs & ("regtests/systems");
when others =>
end case;
for Main use Mains;
for Object_Dir use "./" & Config'Object_Dir & "/obj";
for Exec_Dir use "./" & Config'Exec_Dir & "/bin";
package Binder renames Config.Binder;
package Builder renames Config.Builder;
package Compiler renames Config.Compiler;
package Linker renames Config.Linker;
package Ide is
for Compiler_Command ("ada") use "gnatmake";
for Compiler_Command ("c") use "gcc";
end Ide;
end Util_Tests;