-
Notifications
You must be signed in to change notification settings - Fork 36
/
alire.toml
41 lines (33 loc) · 1.37 KB
/
alire.toml
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
name = "sdlada"
description = "Ada 2012 SDL 2.x bindings."
version = "2.5.124"
authors = ["Luke A. Guest"]
maintainers = ["Luke A. Guest <laguest@archeia.com>"]
maintainers-logins = ["Lucretia"]
licenses = "Zlib"
website = "https://github.com/ada-game-framework"
tags = ["gamedev", "games", "portable", "cross-platform"]
# project-files = ["build/gnat/tools.gpr", "build/gnat/sdlada.gpr"] #, "build/gnat/"]
project-files = ["build/gnat/sdlada.gpr"] #, "build/gnat/"]
[gpr-externals]
SDL_PLATFORM = ["linux", "bsd", "windows", "macosx", "macos_homebrew", "macos_ports", "ios", "android"]
SDL_MODE = ["debug", "release"]
# [gpr-set-externals]
# BUILD_MODE = "release"
[gpr-set-externals.'case(os)']
linux = { SDL_PLATFORM = "linux" }
windows = { SDL_PLATFORM = "windows" }
[gpr-set-externals.'case(os)'.macos.'case(distribution)']
homebrew = { SDL_PLATFORM = "macos_homebrew" }
macports = { SDL_PLATFORM = "macos_ports" }
'...' = { SDL_PLATFORM = "macosx" }
[[actions]]
type = "pre-build"
command = ["make", "-C", "./build/gnat", "tools"]
[[depends-on]]
libsdl2 = "^2.0.0"
make = "*" # Required for post-fetch actions
[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"