-
Notifications
You must be signed in to change notification settings - Fork 14
/
utilada_unit.gpr.in
40 lines (28 loc) · 1.23 KB
/
utilada_unit.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
with "utilada_conf";
with "utilada_sys";
@WITH_AUNIT@
library project UtilAda_Unit is
Version := UtilAda_Conf.Version;
Unit : UtilAda_Conf.Unit_Type := UtilAda_Conf.Unit;
for Library_Name use "utilada_unit";
for Library_Kind use UtilAda_Conf.Library_Type;
for Library_Version use "lib" & Project'Library_Name & ".so." & Version;
for Library_Dir use "lib/" & "/utilada_unit/" & Project'Library_Kind;
for Object_Dir use "obj/utilada_unit/" & Project'Library_Kind;
case Unit is
when "ahven-unix" =>
for Source_Dirs use ("src/tests", "src/tests/ahven", "src/tests/ahven/unix");
when "ahven-windows" =>
for Source_Dirs use ("src/tests", "src/tests/ahven", "src/tests/ahven/windows");
when "aunit" =>
for Source_Dirs use ("src/tests", "src/tests/aunit");
when "none" =>
for Source_Dirs use ("src/tests");
end case;
package Compiler is
-- Disable some comment style checks to avoid several warnings in Ahven files.
for Default_Switches ("Ada") use UtilAda_Conf.Compiler'Default_Switches ("Ada") & ("-gnaty-cs");
end Compiler;
package Ide renames UtilAda_Conf.Ide;
package Binder renames UtilAda_Sys.Binder;
end UtilAda_Unit;