-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_maths.gpr
33 lines (28 loc) · 1.07 KB
/
test_maths.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
with "config/test_maths_config.gpr";
project Test_Maths is
for Library_Name use "testmaths";
for Library_Version use Project'Library_Name & ".so." & Test_Maths_Config.Crate_Version;
for Languages use ("Ada", "C");
for Source_Dirs use ("src/maths/", "config/");
-- For some reason, the source files do not get added without specifying them here.
for Source_Files use (
"maths.adb",
"maths_sub.c",
"test_maths_config.ads"
);
for Object_Dir use "obj/" & Test_Maths_Config.Build_Profile;
for Create_Missing_Dirs use "True";
for Library_Dir use "lib";
for Library_Kind use "relocatable";
package Compiler is
for Default_Switches ("Ada") use Test_Maths_Config.Ada_Compiler_Switches &
("-gnat2022", "-gnata", "-gnato", "-gnatwa", "-gnaty", "-gnaty-s", "-gnatyO", "-gnatyM120", "-gnatyx",
"-gnatwaJ");
end Compiler;
package Binder is
for Switches ("Ada") use ("-Es"); -- Symbolic traceback
end Binder;
package Install is
for Artifacts (".") use ("share");
end Install;
end Test_Maths;