File: shared.gpr

package info (click to toggle)
gnat-gps 5.3dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 50,360 kB
  • ctags: 11,617
  • sloc: ada: 374,346; ansic: 92,327; python: 15,979; xml: 12,186; sh: 3,277; makefile: 1,113; awk: 154; perl: 128; java: 17
file content (58 lines) | stat: -rw-r--r-- 1,660 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
49
50
51
52
53
54
55
56
57
58
with "gnatlib/gnatcoll_shared";

project Shared is

   type OS_Type is ("unix", "Windows_NT");
   OS : OS_Type := External ("OS", "unix");

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

   for Source_Dirs use ();
   for Object_Dir use Gnatcoll_Shared'Object_Dir;
   for Library_Dir use Gnatcoll_Shared'Library_Dir;

   type VCS_Type is ("Subversion", "Git", "Auto");
   VCS_Kind : VCS_Type := External ("PRJ_VCS", "Subversion");

   package IDE is
      case OS is
         when "unix" =>
            for VCS_Kind use "Auto";
         when "Windows_NT" =>
            for VCS_Kind use VCS_Kind;
      end case;

      for VCS_Log_Check use "log_check";
      for VCS_File_Check use "ci_check";
   end IDE;

   package Compiler is
      case Build is
         when "Debug" =>
            for Default_Switches ("Ada") use
              ("-g", "-O0", "-gnata", "-gnatVa", "-gnatQ", "-gnatygO",
               "-gnatwaCJe", "-gnat2012", "-gnateE");

            for Default_Switches ("C") use
              ("-g", "-O1", "-fdump-xref") & GnatColl_Shared.Gtk_Include;

         when "Production" =>
            for Default_Switches ("Ada") use
              ("-O2", "-gnatn",  "-g",
               "-gnatT3", --  Temporary, L403-023.
               "-gnatws", "-gnat12");
            for Default_Switches ("C") use
              ("-g", "-O2") & GnatColl_Shared.Gtk_Include;
      end case;
   end Compiler;

   package Binder is
      for Switches ("Ada") use ("-E");
   end Binder;

   package Linker is
      for Default_Switches ("Ada") use Gnatcoll_Shared.System_Linker_Flags;
   end Linker;

end Shared;