File: prj_editor.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 (38 lines) | stat: -rw-r--r-- 1,016 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
with "../common/common";
with "gtkada";
with "../kernel/kernel";
with "../toolchains_editor/core/toolchains_core";
with "../widgets/widgets";
with "../vsearch/vsearch";
with "../shared";
with "prj_core";

project Prj_Editor is

   for Languages use ("C", "Ada");
   for Source_Dirs use ("src");
   for Object_Dir use Shared'Object_Dir;

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

   package Builder is
      for Switches ("Ada") use ("-g", "-m");
      case Build is
          when "Debug" =>
             for Switches ("Ada") use Builder'Switches ("Ada");
             for Global_Configuration_Pragmas use "../gps/gnat_debug.adc";
          when "Production" =>
             for Global_Configuration_Pragmas use "../gps/gnat.adc";
      end case;
   end Builder;

   package Compiler renames Shared.Compiler;

   package Binder renames Shared.Binder;

   package Linker is
      for Switches ("Ada") use ("-shared-libgcc");
   end Linker;

end Prj_Editor;