File: ncursesada.gpr

package info (click to toggle)
libncursesada 5.9.20110404-7
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 4,872 kB
  • sloc: ada: 10,614; sh: 3,047; ansic: 1,491; makefile: 865; awk: 45
file content (49 lines) | stat: -rw-r--r-- 1,812 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
-- Copyright (c) 2012 Nicolas Boulenguez <nicolas.boulenguez@free.fr>

-- This build script is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License as
-- published by the Free Software Foundation; either version 3 of the
-- License, or (at your option) any later version.

-- This program is distributed in the hope that it will be useful, but
-- WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-- General Public License for more details.

-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
-- USA

-- On Debian systems, the full text of the GPL is in the file
-- /usr/share/common-licenses/GPL-3.

project Ncursesada is
  type Library_Kind is ("dynamic", "static");
  Kind : Library_Kind := External ("KIND");

  for Library_Name use Project'Name;
  case Kind is
     when "dynamic" =>
        for Library_Version use "lib" & Project'Name & ".so."
          & External ("SOVERSION");
        for Library_Options use External_As_List ("LDFLAGS", " ")
          & External_As_List ("LDLIBS", " ");
     when "static" =>
        null;
  end case;
  for Library_Kind use Kind;
  for Library_Dir use "build-lib-" & Kind;
  for Object_Dir use "build-obj-" & Kind;
  for Source_Dirs use ("../src");
  for Languages use ("Ada", "C");

  package Compiler is
     for Default_Switches ("Ada") use
       External_As_List ("ADAFLAGS", " ")
       & ("-gnatafno", "-gnatVa", "-gnatwa");
     for Default_Switches ("C") use External_As_List ("CPPFLAGS", " ")
       & External_As_List ("CFLAGS", " ");
  end Compiler;

end Ncursesada;