File: gnatcoll_gtk.gpr

package info (click to toggle)
libgnatcoll 1.7gpl2015-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 17,280 kB
  • ctags: 1,124
  • sloc: ada: 134,072; python: 4,017; cpp: 1,397; ansic: 1,234; makefile: 368; sh: 152; xml: 31; sql: 6
file content (59 lines) | stat: -rw-r--r-- 1,858 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
59
with "gtkada";
with "../gnatcoll_shared";
with "gnatcoll";
with "gnatcoll_python";

project GnatColl_Gtk is

   for Leading_Library_Options use GnatColl_Shared.Ldflags;
   for Library_Kind    use GnatColl_Shared.Library_Type;
   for Object_Dir
      use Gnatcoll_Shared'Object_Dir & "/gtk/" & Project'Library_Kind;
   for Library_Dir
      use Gnatcoll_Shared'Library_Dir & "/gtk/" & Project'Library_Kind;
   for Library_Name    use GnatColl_Shared.Name & "_gtk";
   for Library_Version use
      "lib" & Project'Library_Name
      & GnatColl_Shared.So_Ext & "." & GnatColl_Shared.Gnatcoll_Gtk_Version;

   for Languages use ("Ada", "C");

   case GnatColl_Shared.Gtk is
      when "no" =>
         for Source_Dirs use ();
      when "yes" =>
         for Source_Dirs use ("gtk");
         for Library_Options use GnatColl_Shared.Gtk_Libs
            & GnatColl_Shared.Python_Libs;
         case GnatColl_Shared.Python is
            when "yes" =>
               for Source_Dirs use Project'Source_Dirs & ("gtk/python");
            when "no"  =>
               for Source_Dirs use Project'Source_Dirs & ("gtk/nopython");
          end case;
   end case;

   package Builder renames GnatColl_Shared.Builder;

   package Compiler is
      for Switches ("Ada") use GnatColl_Shared.Compiler'Switches ("Ada");

      for Switches ("C") use
        GnatColl_Shared.Compiler'Switches ("C")
        & GnatColl_Shared.Python_Cflags
        & GnatColl_Shared.Pygtk_Include
        & GnatColl_Shared.PyGobject_Include
        & GnatColl_Shared.Gtk_Include;
   end Compiler;

   package Linker is
      case GnatColl_Shared.Gtk is
         when "yes" => for Linker_Options use GnatColl_Shared.Gtk_Libs
            & GnatColl_Shared.Python_Libs;
         when "no"  => null;
      end case;
   end Linker;

   package Ide renames GnatColl_Shared.Ide;

end GnatColl_Gtk;