win32ada 26.0.0 (#1748)

This commit is contained in:
César Sagaert
2026-01-08 17:30:10 +01:00
committed by GitHub
parent e16941f0b7
commit 2df10ce7a3
+68
View File
@@ -0,0 +1,68 @@
name = "win32ada"
version = "26.0.0"
description = "Ada API to the Windows library"
long-description = """\
Due to a subpar integration of Win32Ada in Alire, any project using Win32Ada
specs must also have the Win32Ada pre-processing switches.
Do this edit your GPR project file to:
1. With the "shared" project from Win32Ada: `with "shared.gpr";`
2. Add the following switches for Ada: `(Shared.Prep, "-gnateG");`
Here's what it looks like in an example project:
```ada
with "config/test_win32_config.gpr";
with "shared.gpr";
project Test_Win32 is
for Source_Dirs use ("src/", "config/");
for Object_Dir use "obj/" & Test_Win32_Config.Build_Profile;
for Create_Missing_Dirs use "True";
for Exec_Dir use "bin";
for Main use ("test_win32.adb");
package Compiler is
for Default_Switches ("Ada") use
Test_Win32_Config.Ada_Compiler_Switches &
(Shared.Prep, "-gnateG"); -- See this line here
end Compiler;
package Binder is
for Switches ("Ada") use ("-Es");
end Binder;
package Install is
for Artifacts (".") use ("share");
end Install;
end Test_Win32;
```
"""
website = "https://github.com/adacore/win32ada"
authors = ["Intermetrics", "AdaCore"]
maintainers = ["chouteau@adacore.com"]
maintainers-logins = ["Fabien-Chouteau"]
tags = ["windows", "api"]
[configuration]
disabled = true
[gpr-externals]
PRJ_TARGET = ["Win32", "Win64"]
PRJ_BUILD = ["Debug", "Release"]
[available.'case(os)']
windows = true
'...' = false
[gpr-set-externals]
TARGET = "Win64"
PRJ_TARGET = "Win64"
PRJ_BUILD = "Release"
[origin]
url= "https://github.com/AdaCore/win32ada/archive/refs/tags/v26.0.0.zip"
hashes=['sha512:d9764d5f049c88f85026e2f492208fa6e97fbad9ae4a36c7a723584bd7b53d91b8a5e8c6cd5c4d0931a49a11d8e060d678d0ebfce4b41e5b00e5cc180e5a9382']