File: build.gpr

package info (click to toggle)
adacontrol 1.16r11-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 9,008 kB
  • ctags: 709
  • sloc: ada: 55,246; python: 419; xml: 343; sh: 229; makefile: 77; sed: 30
file content (35 lines) | stat: -rw-r--r-- 879 bytes parent folder | download
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
33
34
35
with "asis";
project Build is
   type Fixes is ("1", "none");
   Gnat_Fix : Fixes := external ("GNAT_FIX", "none");

   for Languages use ("Ada");
   for Source_Dirs use (".");
   for Object_Dir use "obj";
   for Exec_Dir use "exe";
   for Main use ("adactl", "ptree", "pfni");

   package Linker is
      for Default_Switches ("ada") use ("-g");
   end Linker;

   package Binder is
      for Default_Switches ("ada") use ("-E");
   end Binder;

   Std_Options := ("-O2", "-gnatws", "-gnat05", "-gnato", "-gnatf", "-g");
   package Compiler is
      case Gnat_Fix is
      when "1" =>
         for Default_Switches ("ada") use Std_Options & "-fno-tree-vrp";
      when others =>
         for Default_Switches ("ada") use Std_Options;
      end case;
   end Compiler;

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

end Build;