mirror of https://github.com/berriedale/arun
34 lines
973 B
Plaintext
34 lines
973 B
Plaintext
with "gtkada";
|
|
|
|
project Arun is
|
|
|
|
for Languages use ("Ada", "C");
|
|
for Source_Dirs use ("src");
|
|
for Object_Dir use "obj";
|
|
for Exec_Dir use "bin";
|
|
for Main use ("main.adb");
|
|
|
|
package Linker is
|
|
For Leading_Switches ("Ada") use ("arun-resources.o");
|
|
end Linker;
|
|
|
|
package Builder is
|
|
for Executable ("main.adb") use "arun";
|
|
end Builder;
|
|
|
|
-- Enable Ada 2012.
|
|
package Compiler is
|
|
for Switches ("Ada") use ("-gnat2012",
|
|
"-fstack-check",
|
|
"-gnata",
|
|
"-gnato",
|
|
"-gnatf", -- Full, verbose error messages
|
|
"-gnatwa", -- All optional warnings
|
|
"-gnatVa", -- All validity checks
|
|
"-gnaty3abcdefhiklmnoOprstux", -- Style checks
|
|
"-gnatwe"); -- Treat warnings as errors
|
|
end Compiler;
|
|
|
|
end Arun;
|
|
|