-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathada_sqlite3.gpr
More file actions
37 lines (29 loc) · 1.32 KB
/
ada_sqlite3.gpr
File metadata and controls
37 lines (29 loc) · 1.32 KB
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
with "config/ada_sqlite3_config.gpr";
project Ada_Sqlite3 is
for Library_Name use "Ada_Sqlite3";
for Library_Version use Project'Library_Name & ".so." & Ada_Sqlite3_Config.Crate_Version;
for Source_Dirs use ("src/", "config/", "src/sqlite3");
for Object_Dir use "obj/" & Ada_Sqlite3_Config.Build_Profile;
for Create_Missing_Dirs use "True";
for Library_Dir use "lib";
type Library_Type_Type is ("relocatable", "static", "static-pic");
Library_Type : Library_Type_Type :=
external ("ADA_SQLITE3_LIBRARY_TYPE", external ("LIBRARY_TYPE", "static"));
for Library_Kind use Library_Type;
for Languages use ("Ada", "C");
package Compiler is
for Default_Switches ("Ada") use Ada_Sqlite3_Config.Ada_Compiler_Switches;
for Default_Switches ("C") use
("-O2", -- Optimize for performance
"-DSQLITE_THREADSAFE=1", -- Enable thread-safety
"-DSQLITE_ENABLE_COLUMN_METADATA", -- Enable additional metadata
"-DSQLITE_ENABLE_UNLOCK_NOTIFY", -- Enable unlock notification
"-fPIC"); -- Position Independent Code
end Compiler;
package Binder is
for Switches ("Ada") use ("-Es"); -- Symbolic traceback
end Binder;
package Install is
for Artifacts (".") use ("share");
end Install;
end Ada_Sqlite3;