name = "libgpr2"
version = "26.0.0"
description = "Parser for GPR Project File"
authors = ["AdaCore"]
licenses = "Apache-2.0 WITH LLVM-exception"
maintainers = ["chouteau@adacore.com", "sagaert@adacore.com"]
maintainers-logins = ["Fabien-Chouteau", "AldanTanneo"]
project-files = ["gpr2.gpr"]

[configuration]
disabled = true

[gpr-externals]
GPR2_BUILD = ["debug", "release", "release_checks", "gnatcov"]
GPR2_OS = ["Windows_NT", "UNIX"]
LIBRARY_TYPE = ["static", "relocatable", "static-pic"]

[gpr-set-externals]
GPR2_BUILD = "release"

[gpr-set-externals."case(os)".windows]
GPR2_OS = "Windows_NT" # UNIX by default

[[depends-on]]
xmlada = "^26.0.0"
gnatcoll = "^26.0.0"
gnatcoll_iconv = "^26.0.0"
gnatcoll_gmp = "^26.0.0"
gprconfig_kb = "^26.0.0"
make = "*"

[environment]
GPR2KBDIR.set = "$$GPRCONFIG_KB_ALIRE_PREFIX//db"

[[actions]]
type = "post-fetch"
# this action collects the db from the gprconfig_kb crate
command = ["make", ".build/kb/collect_kb", ".build/kb/gpr2-kb-embedded.ads", ".build/kb/gpr2-kb-embedded.adb"]

[origin]
url="https://github.com/AdaCore/gpr/archive/refs/tags/v26.0.0.zip"
hashes=['sha512:99e9d2cd944b200d64fcbc0fca94291fa4b01d1186dfe0cb7513aa79cd5912f743b6206d0d9d2a6029149bba50a0ce90441a05c7b4485fb2a19ac56582dbecfe']
