File: templates_parser.gpr

package info (click to toggle)
libtemplates-parser 10.0+20060522-5
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,880 kB
  • ctags: 52
  • sloc: ada: 9,842; makefile: 360; sh: 26
file content (60 lines) | stat: -rw-r--r-- 1,629 bytes parent folder | download | duplicates (3)
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
59
60

-- To build with XML/Ada you need to uncomment the following line
-- with "xmlada";

project Templates_Parser is

   type Tasking_Type is ("No_Tasking", "Standard_Tasking");
   Tasking : Tasking_Type := external ("TP_TASKING", "Standard_Tasking");

   type XMLAda_Type is ("Installed", "Disabled");
   XMLAda : XMLAda_Type := external ("TP_XMLADA", "Disabled");

   for Source_Dirs use ("src", "include");
   for Object_Dir use "obj";

   case XMLAda is
      when "Installed" =>
         for Source_Dirs use project'Source_Dirs & ("xsrc");
      when "Disabled" =>
         null;
   end case;

   ------------
   -- Naming --
   ------------

   package Naming is

      for Specification ("Templates_Parser.Configuration")
        use "templates_parser-configuration__standalone.ads";
      for Implementation ("Templates_Parser.Input")
        use "templates_parser-input__standalone.adb";

      case Tasking is
         when "No_Tasking" =>
            for Implementation ("Templates_Parser.Tasking")
              use "templates_parser-tasking__no_tasking.adb";
         when "Standard_Tasking" =>
            for Implementation ("Templates_Parser.Tasking")
              use "templates_parser-tasking__standard_tasking.adb";
      end case;

   end Naming;

   ---------
   -- Ide --
   ---------

   package Ide is
      for Vcs_Kind use "CVS";
   end Ide;

   --  For now we try to have Templates_Parser compatible with GNAT 3.15p, so
   --  we do not use a library project.

   --  for Library_Dir use "lib";
   --  for Library_Name use "templates_parser";
   --  for Library_Kind use "static";

end Templates_Parser;