-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheuler_tools.gpr
50 lines (42 loc) · 1.79 KB
/
euler_tools.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
-- ---------------------------------------------------------------------------
--
-- Copyright (c) 2023 Francesc Rocher <francesc.rocher@gnail.com>
-- SPDX-License-Identifier: MIT
--
-- ---------------------------------------------------------------------------
-- _____ _ _____ _
-- | ____| _| | ___ _ __ |_ _|__ ___ | |___ Mathematical functions
-- | _|| | | | |/ _ \ '__| | |/ _ \ / _ \| / __| and tools to solve
-- | |__| |_| | | __/ | | | (_) | (_) | \__ \ Project Euler problems
-- |_____\__,_|_|\___|_| |_|\___/ \___/|_|___/ https://projecteuler.net
--
-- ----------------------------------------------------------------------------
with "config/euler_tools_config.gpr";
project Euler_Tools is
for Library_Name use "Euler_Tools";
for Library_Version use Project'Library_Name & ".so." &
Euler_Tools_Config.Crate_Version;
for Source_Dirs use ("src/", "config/");
for Object_Dir use "obj/" & Euler_Tools_Config.Build_Profile;
for Create_Missing_Dirs use "True";
for Library_Dir use "lib";
type Library_Type_Type is ("relocatable", "static", "static-pic");
Library_Type : Library_Type_Type :=
external ("EULER_TOOLS_LIBRARY_TYPE", external ("LIBRARY_TYPE", "static"));
for Library_Kind use Library_Type;
package Compiler is
for Default_Switches ("Ada") use
Euler_Tools_Config.Ada_Compiler_Switches &
(
"-gnatW8" -- Wide character encoding method
, "-gnat2020" -- Ada 2022 mode
, "-gnatX" -- Language extensions permitted
);
end Compiler;
package Binder is
for Switches ("Ada") use ("-Es"); -- Symbolic traceback
end Binder;
package Install is
for Artifacts (".") use ("share");
end Install;
end Euler_Tools;