buildsupport.gpr 1.38 KB
Newer Older
1
with "ocarina/ocarina";
2
--  with "templates_parser";  --  from libtemplates-parser11.10.1-dev
Maxime Perrotin's avatar
Maxime Perrotin committed
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17

project BuildSupport is

   for Source_Dirs use ("ada", "c", "include");

   for Object_Dir use "tmpBuild";
   for Exec_Dir use ".";
   for Main use ("buildsupport.adb");
   for Languages use ("Ada", "C");

   package Builder is
      for Default_Switches ("ada") use ("-m");
   end Builder;

   package binder is
18
     for default_switches ("Ada") use ("-E", "-t");
Maxime Perrotin's avatar
Maxime Perrotin committed
19
   end binder;
Maxime Perrotin's avatar
Maxime Perrotin committed
20 21 22 23

   package Compiler is
      for Default_Switches ("Ada") use
        ("-g",
Maxime Perrotin's avatar
Maxime Perrotin committed
24
         "-Ada2012",
Maxime Perrotin's avatar
Maxime Perrotin committed
25 26
         "-gnatf",
         "-gnaty",
Maxime Perrotin's avatar
Maxime Perrotin committed
27
         "-gnatwa",
Maxime Perrotin's avatar
Maxime Perrotin committed
28
         "-gnatoa",
Maxime Perrotin's avatar
Maxime Perrotin committed
29
         "-gnatg",
30 31
         "-fstack-check",
         "-no-pie");
Maxime Perrotin's avatar
Maxime Perrotin committed
32

Maxime Perrotin's avatar
Maxime Perrotin committed
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
      for Default_Switches ("C") use
         ("-g",
          "-W",
          "-g3",
          "-Wall",
          "-Werror",
          "-Wextra",
          "-Werror=format-security",
          "-Wconversion",
          "-Wno-deprecated",
          "-Winit-self",
          "-Wsign-conversion",
          "-Wredundant-decls",
          "-Wvla",
          "-Wshadow",
          "-Wlogical-op",
          "-Wmissing-include-dirs",
          "-Winit-self",
          "-Wpointer-arith",
          "-Wcast-qual",
          "-Wcast-align",
          "-Wno-error=old-style-cast",
          "-Wundef",
          "-std=c11",
57 58
          "-pedantic",
          "-no-pie");
Maxime Perrotin's avatar
Maxime Perrotin committed
59 60 61 62
   end Compiler;

end BuildSupport;