-
-
Notifications
You must be signed in to change notification settings - Fork 49
/
alire.gpr
72 lines (61 loc) · 2.33 KB
/
alire.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
60
61
62
63
64
65
66
67
68
69
70
71
72
with "aaa";
with "ada_toml";
with "alire_common";
with "ajunitgen";
with "ansiada";
with "c_strings";
with "clic";
with "den";
with "dirty_booleans";
with "diskflags";
with "gnatcoll";
with "lml";
with "minirest";
with "optional";
with "semantic_versioning";
with "simple_logging";
with "si_units";
with "spdx";
with "stopwatch";
with "toml_slicer";
with "uri_ada";
with "xml_ez_out";
library project Alire is
for Library_Name use "alire";
-- Set OS-dependent source files
Src_Dirs := ("src/alire");
case Alire_Common.Host_Os is
when "freebsd" => Src_Dirs := Src_Dirs & ("src/alire/os_freebsd");
when "openbsd" => Src_Dirs := Src_Dirs & ("src/alire/os_openbsd");
when "linux" => Src_Dirs := Src_Dirs & ("src/alire/os_linux");
when "macos" => Src_Dirs := Src_Dirs & ("src/alire/os_macos");
when "windows" => Src_Dirs := Src_Dirs & ("src/alire/os_windows");
end case;
package Naming is
case Alire_Common.Host_OS is
when "freebsd" =>
for body ("Alire.Platforms.Current") use "alire-platforms-current__freebsd.adb";
for body ("Alire.Platforms.Folders") use "alire-platforms-folders__freebsd.adb";
when "openbsd" =>
for body ("Alire.Platforms.Current") use "alire-platforms-current__openbsd.adb";
for body ("Alire.Platforms.Folders") use "alire-platforms-folders__openbsd.adb";
when "linux" =>
for body ("Alire.Platforms.Current") use "alire-platforms-current__linux.adb";
for body ("Alire.Platforms.Folders") use "alire-platforms-folders__linux.adb";
when "macos" =>
for body ("Alire.Platforms.Current") use "alire-platforms-current__macos.adb";
for body ("Alire.Platforms.Folders") use "alire-platforms-folders__macos.adb";
when "windows" =>
for body ("Alire.Platforms.Current") use "alire-platforms-current__windows.adb";
for body ("Alire.Platforms.Folders") use "alire-platforms-folders__windows.adb";
end case;
end Naming;
for Source_Dirs use Src_Dirs;
for Library_Dir use "lib";
for Object_Dir use "obj";
for Languages use ("Ada");
package Compiler renames Alire_Common.Compiler;
package Builder renames Alire_Common.Builder;
package Binder renames Alire_Common.Binder;
package Ide renames Alire_Common.Ide;
end Alire;