File: shared.gpr

package info (click to toggle)
libgtkada 2.24.4dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 12,208 kB
  • ctags: 1,676
  • sloc: ada: 119,686; ansic: 4,719; sh: 3,003; makefile: 690; xml: 338; perl: 70
file content (48 lines) | stat: -rw-r--r-- 1,406 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
36
37
38
39
40
41
42
43
44
45
46
47
48
project Shared is

   type Build_Type is ("Debug", "Production");
   Build : Build_Type := external ("BUILD", "Production");

   Processors := external ("PROCESSORS", "1");
   --  Number of parallel compilations that should be performed

   type Boolean_Type is ("True", "False");
   Build_Gnome  : Boolean_Type := external ("GNOME",  "True");
   Build_Opengl : Boolean_Type := external ("OPENGL", "True");

   for Source_Files use ();

   package Compiler is
      case Build is
         when "Debug" =>
             for Default_Switches ("Ada") use
                ("-gnatQ", "-gnatwae", "-gnatay", "-g", "-O0");
         when "Production" =>
             for Default_Switches ("Ada") use
                ("-gnatQ", "-O2", "-gnatn", "-gnatws");
      end case;
      for Local_Configuration_Pragmas use "src/gnat.adc";
   end Compiler;

   package Builder is
      for Default_Switches ("Ada") use ("-m", "-j" & Processors);
      for Global_Configuration_Pragmas use "src/gnat.adc";
   end Builder;

   package Binder is
      case Build is
         when "Debug" =>
             for Default_Switches ("Ada") use ("-E");
         when "Production" =>
             null;
      end case;
   end Binder;

   package IDE is
      for VCS_Kind use "subversion";
      for VCS_Log_Check use "log_check";
      for VCS_File_Check use "ci_check";
      for Documentation_Dir use "html";
   end IDE;

end Shared;