File: cli.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 (43 lines) | stat: -rw-r--r-- 1,207 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
with "../shared";

with "../kernel/kernel_core";
with "../python/python_core";

project CLI is

   for Languages use ("Ada");
   for Main use ("gps-cli.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";

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

         when "Production" =>
           for Default_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 IDE renames Shared.IDE;

   package Linker is
      for Default_Switches ("Ada") use Linker'Default_Switches ("Ada")
         & Shared.Linker'Default_Switches ("Ada");
      --  for Default_Switches ("Ada") use ("-lgmem");
      --  for Default_Switches ("Ada") use ("-pg");
   end Linker;


end CLI;