File: cli.gpr

package info (click to toggle)
gnat-gps 18-5
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 45,716 kB
  • sloc: ada: 362,679; python: 31,031; xml: 9,597; makefile: 1,030; ansic: 917; sh: 264; java: 17
file content (58 lines) | stat: -rw-r--r-- 1,599 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 "../shared";

with "../kernel/kernel_core";
with "../python/python_core";
with "../builder/builder_core";
with "../ada_module/core/ada_module_core";
with "../gnatdoc/gnatdoc";
with "../prj_editor/prj_core";

project CLI is

   for Languages use ("Ada");
   for Main use ("gps-cli.adb", "gnatdoc_main.adb");

   for Source_Dirs use ("src");
   for Object_Dir use Shared'Object_Dir;
   for Exec_Dir use "obj";  --  Not in a subdirectory

   Processors := external ("PROCESSORS", "1");

   package Builder is
      for Executable ("gps-cli.adb") use "gps_cli";
      for Executable ("gnatdoc_main.adb") use "gnatdoc";

      case Shared.Build is
         when "Debug" =>
           for Switches ("Ada") use ("-m", "-j" & Processors);
           for Global_Configuration_Pragmas use "../gps/gnat_debug.adc";

         when "Production" =>
           for Switches ("Ada") use ("-m", "-j" & Processors);
           for Global_Configuration_Pragmas use "../gps/gnat.adc";
      end case;
   end Builder;

   package Compiler renames Shared.Compiler;
   package Binder renames Shared.Binder;
   package Linker renames Shared.Linker;

   package Documentation is
      for Documentation_Dir use Project'Object_Dir & "/html";

      for Ignored_Subprojects use (
         "gnatcoll",
         "gnatcoll_shared",
         "gnatcoll_iconv", 
         "gnatcoll_python",
         "gnatcoll_sqlite",
         "gnatcoll_xref",
         "templates_parser",
         "xmlada",
         "xmlada_sax",
         "xmlada_shared",
         "xmlada_input",
         "xmlada_unicode");
   end Documentation;

end CLI;