-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsdlada_image.gpr
45 lines (33 loc) · 1.48 KB
/
sdlada_image.gpr
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
with "config/sdlada_image_config.gpr";
with "sdlada.gpr";
project SDLAda_Image is
type Platform_Type is ("linux", "bsd", "windows", "macosx", "macos_homebrew", "macos_ports", "ios", "android");
Platform : Platform_Type := external ("SDLADA_MIXER_PLATFORM", "linux");
Source_Platform_Linker := "";
case Platform is
when "macosx" =>
Source_Platform_Linker := "src/link/macosx";
when others =>
Source_Platform_Linker := "src/link/nix";
end case;
for Library_Name use "sdlada_image";
for Library_Version use Project'Library_Name & ".so." & SDLAda_Image_Config.Crate_Version;
for Source_Dirs use ("src/", Source_Platform_Linker, "config/");
for Object_Dir use "obj/" & SDLAda_Image_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 ("SDLADA_IMAGE_LIBRARY_TYPE", external ("LIBRARY_TYPE", "static"));
for Library_Kind use Library_Type;
package Compiler is
for Default_Switches ("Ada") use SDLAda_Image_Config.Ada_Compiler_Switches &
("-gnat2022", "-gnata", "-gnato", "-gnatwa", "-gnaty", "-gnaty-s", "-gnatyO", "-gnatyM120",
"-gnatyx", "-gnatwaJ");
end Compiler;
package Binder is
for Switches ("Ada") use ("-Es"); -- Symbolic traceback
end Binder;
package Install is
for Artifacts (".") use ("share");
end Install;
end SDLAda_Image;