File: texttools.gpr.sed

package info (click to toggle)
libtexttools 2.1.0-13
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 952 kB
  • sloc: ada: 11,394; ansic: 529; makefile: 88; sed: 75; sh: 12
file content (47 lines) | stat: -rw-r--r-- 1,788 bytes parent folder | download | duplicates (7)
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
--    Build project for Textools.
--    Copyright (C) 2009-2012 Nicolas Boulenguez <nicolas.boulenguez@free.fr>
--
--    This program 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, see <http://www.gnu.org/licenses/>.

project Texttools is
  Soversion := "SOVERSION";
  Ldlibs := ("LDLIBS");

  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'Library_Name & ".so." & Soversion;
        --  Build-time options use to link the shared library.
        for Library_Options use ("LDFLAGS") & 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;
  package Linker is
     --  This package only exists to pass more options to importing
     --  projects like demo/demo.gpr.
     for Linker_Options use Ldlibs;
  end Linker;
  package Compiler is
     for Default_Switches ("Ada") use ("ADAFLAGS");
     for Default_Switches ("C") use ("CFLAGS");
  end Compiler;
  for Languages use ("Ada", "C");
  for Source_Dirs use ("src");
end Texttools;