File: no-c-if-external-sqlite.diff

package info (click to toggle)
libgnatcoll-db 21.0.0-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 11,628 kB
  • sloc: ansic: 128,019; ada: 26,428; sql: 15,777; python: 2,263; makefile: 627; sh: 42
file content (28 lines) | stat: -rw-r--r-- 848 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
Description: only add C language if sqlite is embedded
 The warning about unused language becomes an error with
 unusual libgprbuild options (dh_ada_library for example).
Author: Nicolas Boulenguez <nicolas@debian.org>
Forwarded: no

--- a/sqlite/gnatcoll_sqlite.gpr
+++ b/sqlite/gnatcoll_sqlite.gpr
@@ -43,8 +43,6 @@
    for Library_Name    use Name;
    for Library_Version use "lib" & Name & Gnatcoll.So_Ext & "." & Version;
 
-   for Languages use ("Ada", "C");
-
    Thread_Lib := ();
 
    case Library_Type is
@@ -67,8 +65,10 @@
 
    case Sqlite_Dep is
       when "embedded" =>
+         for Languages use ("Ada", "C");
          for Source_Dirs use (".", "amalgamation");
       when "external" =>
+         for Languages use ("Ada");
          for Source_Dirs use (".");
          case Library_Type is
             when "relocatable" =>