-
Notifications
You must be signed in to change notification settings - Fork 4
/
keystoreada_tools.gpr.in
92 lines (65 loc) · 2.04 KB
/
keystoreada_tools.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
with "@UTIL_DIR@config";
with "@UTIL_DIR@utilada_sys";
with "keystoreada";
@WITH_FUSE_ADA@
project KeystoreAda_Tools is
Use_NLS : Config.Yes_No := "@USE_NLS@";
Use_Libintl : Config.Yes_No := "@USE_LIBINTL@";
Use_Fuse : Config.Yes_No := "@HAVE_FUSE@";
for Languages use ("Ada");
Mains := ("akt-main.adb");
for Source_Dirs use ("tools");
for Main use Mains;
for Object_Dir use "./" & Config'Object_Dir & "/obj";
for Exec_Dir use "./" & Config'Exec_Dir & "/bin";
case Use_Fuse is
when "yes" =>
for Source_Dirs use Project'Source_Dirs
& ("tools/fuse");
when "no" =>
for Source_Dirs use Project'Source_Dirs
& ("tools/no-fuse");
end case;
package Naming is
case Use_NLS is
when "yes" =>
for Implementation ("Intl")
use "intl_nls.adb";
when "no" =>
for Implementation ("Intl")
use "intl_none.adb";
end case;
end Naming;
package binder is
case Config.Mode is
when "debug" =>
for Default_Switches ("Ada") use ("-E");
when others =>
for Default_Switches ("Ada") use ("-E");
end case;
end binder;
package Builder is
for Default_Switches ("Ada") use
Config.Builder'Default_Switches ("Ada");
for Executable ("akt-main.adb") use "akt";
end Builder;
Fuse_Libs := external_as_list ("FUSE_LIBS", " ");
package Linker is
for Default_Switches ("Ada") use Config.Linker'Default_Switches ("Ada");
case Use_Libintl is
when "yes" =>
for Default_Switches ("Ada") use Linker'Default_Switches ("Ada")
& "-lintl";
when "no" =>
null;
end case;
case Use_Fuse is
when "yes" =>
for Default_Switches ("Ada") use Linker'Default_Switches ("Ada")
& Fuse_Libs;
when "no" =>
null;
end case;
end Linker;
package Compiler renames Config.Compiler;
end KeystoreAda_Tools;