-
Notifications
You must be signed in to change notification settings - Fork 3
/
openapi_tests.gpr.in
52 lines (37 loc) · 1.12 KB
/
openapi_tests.gpr.in
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
with "@UTIL_DIR@config";
with "@UTIL_DIR@utilada_sys";
with "@UTIL_DIR@utilada_unit";
with "@UTIL_DIR@utilada_http";
with "testapi_model";
with "openapi";
project Openapi_Tests is
for Languages use ("Ada");
Mains := ();
case Utilada_Http.Has_Curl is
when "yes" =>
Mains := Mains & ("swagger_harness_curl.adb");
when "no" =>
null;
end case;
case Utilada_Http.Has_Aws is
when "yes" =>
Mains := Mains & ("swagger_harness_aws.adb");
when "no" =>
null;
end case;
for Source_Dirs use ("regtests", "regtests/client/src/client");
for Main use Mains;
for Object_Dir use "./" & Config'Object_Dir & "/obj";
for Exec_Dir use "./" & Config'Exec_Dir & "/bin";
package binder is
case Config.Mode is
when "debug" =>
for Default_Switches ("Ada") use ("-E", "-W8");
when others =>
for Default_Switches ("Ada") use ("-E", "-W8");
end case;
end binder;
package Builder renames Config.Builder;
package Compiler renames Config.Compiler;
package Linker renames Config.Linker;
end Openapi_Tests;