summaryrefslogtreecommitdiff
path: root/firmware/ada/pouetpouet.gpr
diff options
context:
space:
mode:
authorMarc Poulhiès <dkm@kataplop.net>2022-07-07 22:36:29 +0200
committerMarc Poulhiès <dkm@kataplop.net>2022-07-22 21:06:23 +0200
commitc9094c7d7b49e21bc53d273288463723beec6601 (patch)
tree35882eb4560ba16575a5b7f0ad275bedaf4e9558 /firmware/ada/pouetpouet.gpr
parent3c71e3a2a3af39d579c2649fddf0c8ba835bfa01 (diff)
Initial Ada firmware
Missing doc, comment.
Diffstat (limited to 'firmware/ada/pouetpouet.gpr')
-rw-r--r--firmware/ada/pouetpouet.gpr32
1 files changed, 32 insertions, 0 deletions
diff --git a/firmware/ada/pouetpouet.gpr b/firmware/ada/pouetpouet.gpr
new file mode 100644
index 0000000..78bd5ad
--- /dev/null
+++ b/firmware/ada/pouetpouet.gpr
@@ -0,0 +1,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");
+ 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;