File: common_with_xmlada.gpr.in

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 (46 lines) | stat: -rw-r--r-- 1,350 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
with "gtkada";
with "../gnatlib/src/gnatcoll_sqlite.gpr";
with "../gnat";
with "../shared";
with "xmlada_sax";
with "../gnatlib/src/gnatcoll_gtk";

project Common is

   for Languages use ("Ada", "C");
   for Source_Dirs use ("core/src", "tty", "tests");
   for Object_Dir use "core/obj";

   package Compiler is
      for Default_Switches ("Ada") use Shared.Compiler'Default_Switches ("Ada");
      for Default_Switches ("C") use Shared.Compiler'Default_Switches ("C");
      for Switches ("test_htables.adb") use ("-g", "-O2", "-gnatwue");
      for Switches ("s-memory.adb") use ("-g", "-O2", "-gnatpg");

      No_Checks := ("-g", "-O2", "-gnat2012", "-gnatpn");

      case Shared.Build is
          when "Production" =>
             for Switches ("htables.adb") use No_Checks;
             for Switches ("dynamic_arrays.adb") use No_Checks;
          when "Debug" =>
      end case;
   end Compiler;

   package IDE renames Shared.IDE;

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

   package Naming is
      for Implementation ("xml_parsers") use "xml_parsers__xmlada.adb";
   end Naming;

   package Linker is
      for Linker_Options use Shared.Linker'Linker_Options &
        @TARGET_LFLAGS@;
      for Default_Switches ("Ada") use Shared.Linker'Default_Switches ("Ada");
   end Linker;

end Common;