60 lines
1.6 KiB
TOML
60 lines
1.6 KiB
TOML
name = "sdlada"
|
|
version = "2.5.4-1"
|
|
description = "Ada 2012 bindings to SDL 2"
|
|
licenses = "Zlib"
|
|
tags = ["sdl", "framework"]
|
|
website = "https://github.com/Lucretia/sdlada"
|
|
|
|
authors = ["Luke A. Guest"]
|
|
maintainers = ["alejandro@mosteo.com"]
|
|
maintainers-logins = ["mosteo"]
|
|
|
|
project-files = ["build/gnat/sdlada.gpr"]
|
|
|
|
[[depends-on]]
|
|
libsdl2 = "^2.0"
|
|
libsdl2_image = "^2.0"
|
|
libsdl2_ttf = "^2.0"
|
|
# gnat = "/=2020" # Does not build yet with CE 2020
|
|
|
|
[[actions."case(os)".linux]]
|
|
type = "post-fetch"
|
|
command = ["make", "-C", "build/gnat", "SDL_PLATFORM=linux"]
|
|
|
|
[[actions."case(os)".linux]]
|
|
type = "pre-build"
|
|
command = ["make", "-C", "build/gnat", "SDL_PLATFORM=linux"]
|
|
|
|
[[actions."case(os)".macos]]
|
|
type = "post-fetch"
|
|
command = ["make", "-C", "build/gnat", "SDL_PLATFORM=macosx"]
|
|
|
|
[[actions."case(os)".windows]]
|
|
type = "post-fetch"
|
|
command = ["make", "-C", "build/gnat", "SDL_PLATFORM=windows"]
|
|
|
|
[available."case(os)"]
|
|
'linux|macos|windows' = true
|
|
"..." = false
|
|
|
|
[gpr-externals]
|
|
SDL_MODE = ["debug", "release"]
|
|
SDL_PLATFORM = ["linux", "bsd", "windows", "macosx", "ios", "android"]
|
|
|
|
[gpr-set-externals."case(os)".linux]
|
|
SDL_PLATFORM = "linux"
|
|
[gpr-set-externals."case(os)".macos]
|
|
SDL_PLATFORM = "macosx"
|
|
[gpr-set-externals."case(os)".windows]
|
|
SDL_PLATFORM = "windows"
|
|
|
|
[environment.'case(distribution)'.msys2.C_INCLUDE_PATH]
|
|
# sdlada expects SDL2 headers to be in the C_INCLUDE_PATH but the option
|
|
# used in the project file ("-I/usr/include/SDL2") doesn't work with msys2
|
|
append = "${DISTRIB_ROOT}/mingw64/include/SDL2"
|
|
|
|
[origin]
|
|
commit = "7981bbd658fa7b0618f6fae689b3af634d2d8234"
|
|
url = "git+https://github.com/alire-project/sdlada.git"
|
|
|