summaryrefslogtreecommitdiff
path: root/firmware/ada/pouetpouet.gpr
blob: 42830d638cd334fa472e6e6cab65cc2d461249ce (plain)
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
with "config/pouetpouet_config.gpr";
with "stm32f0x2_hal.gpr";

project Pouetpouet is

   for Target use STM32F0X2_HAL'Target;
   for Runtime ("Ada") use STM32F0X2_HAL'Runtime ("Ada");

   for Source_Dirs use ("src/", "config/");
   for Object_Dir use "obj/" & Pouetpouet_Config.Build_Profile;
   for Create_Missing_Dirs use "True";
   for Exec_Dir use "bin";
   for Main use ("pouetpouet.adb");

   package Compiler is
      for Default_Switches ("Ada") use Pouetpouet_Config.Ada_Compiler_Switches & ("-gnatX", "-gnat2022", "-g3");
   end Compiler;

   package Binder is
      for Switches ("Ada") use ("-Es"); --  Symbolic traceback
   end Binder;

   package Linker is
      for Default_Switches ("Ada") use
         STM32F0X2_HAL.Linker_Switches;
   end Linker;

   package Install is
      for Artifacts (".") use ("share");
   end Install;

end Pouetpouet;