forked from stcarrez/ada-util
-
Notifications
You must be signed in to change notification settings - Fork 0
/
samples.gpr
56 lines (37 loc) · 1.19 KB
/
samples.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
with "config";
with "util";
with "util_http";
project Samples is
Mains := ("measures.adb", "properties.adb", "log.adb",
"bundles.adb", "escape.adb", "encodes.adb", "popen.adb",
"multipro.adb", "multipro_refs.adb", "date.adb",
"csv_reader.adb", "launch.adb", "gperfhash.adb",
"cut.adb", "xmi.adb");
for Main use Mains;
-- GCC 4.7 fails to instantiate the Vector_Mapper generic package.
case Util.Has_Vector_Mappers is
when "yes" =>
for Main use Mains & ("json.adb", "xmlrd.adb", "csv_city.adb");
when "no" =>
null;
end case;
case Util_Http.Has_Curl is
when "yes" =>
for Main use Mains & ("wget.adb");
when others =>
null;
end case;
case Util_Http.Has_Aws is
when "yes" =>
for Main use Mains & ("facebook.adb");
when others =>
null;
end case;
for Source_Dirs use ("samples");
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;
end Samples;