aboutsummaryrefslogtreecommitdiff
path: root/example.gpr
diff options
context:
space:
mode:
Diffstat (limited to 'example.gpr')
-rw-r--r--example.gpr31
1 files changed, 20 insertions, 11 deletions
diff --git a/example.gpr b/example.gpr
index 3d48940..8de669d 100644
--- a/example.gpr
+++ b/example.gpr
@@ -1,6 +1,9 @@
-with "portadao";
+with
+
+ "portadao",
+ "proj/common";
project Example is
@@ -8,23 +11,29 @@ project Example is
for languages use ("Ada");
-
for Source_Dirs use ("example");
- for Object_Dir use "obj";
- for Exec_Dir use "bin";
- for Main use ("device_list.adb", "saw_back.adb", "sine_block.adb");
+ for Object_Dir use "obj";
+ for Exec_Dir use "bin";
+ for Main use
+ ("device_list.adb",
+ "saw_back.adb",
+ "sine_block.adb");
package Builder is
for Executable ("device_list.adb") use "device_list";
- for Executable ("saw_back.adb") use "saw_back";
- for Executable ("sine_block.adb") use "sine_block";
- end Builder;
+ for Executable ("saw_back.adb") use "saw_back";
+ for Executable ("sine_block.adb") use "sine_block";
+ for Default_Switches ("Ada") use
+ Common.Builder'Default_Switches ("Ada");
+ for Global_Compilation_Switches ("Ada") use
+ Common.Builder'Global_Compilation_Switches ("Ada");
+ end Builder;
- package Compiler is
- for Default_Switches("Ada") use ("-gnaty4aAbcefhiklM100nprt");
- end Compiler;
+ package Compiler renames Common.Compiler;
+ package Binder renames Common.Binder;
+ package Linker renames Common.Linker;
end Example;