From 2bdc3fb8383d0a412464295f50d8101a8941571b Mon Sep 17 00:00:00 2001 From: Björn Persson Date: Sun, 7 Sep 2025 08:20:09 +0200 Subject: Updated Comfignat to version 1.6. --- comfignat.gpr.gp | 39 ++++++++++++++++++++++++++++++++++++--- 1 file changed, 36 insertions(+), 3 deletions(-) (limited to 'comfignat.gpr.gp') diff --git a/comfignat.gpr.gp b/comfignat.gpr.gp index e024f90..e7acd58 100644 --- a/comfignat.gpr.gp +++ b/comfignat.gpr.gp @@ -1,5 +1,5 @@ -- Comfignat configuration variables for GNAT project files --- Copyright 2013 - 2016 B. Persson, Bjorn@Rombobeorn.se +-- Copyright 2013 - 2025 B. Persson, Bjorn@Rombobeorn.se -- -- This material is provided as is, with absolutely no warranty expressed -- or implied. Any use is at your own risk. @@ -11,9 +11,9 @@ -- modified is included with the above copyright notice. --- This file is part of Comfignat 1.5 – common, convenient, command-line- +-- This file is part of Comfignat 1.6 – common, convenient, command-line- -- controlled compile-time configuration of software built with the GNAT tools. --- For information about Comfignat, see http://www.Rombobeorn.se/Comfignat/. +-- For information about Comfignat, see https://www.Rombobeorn.se/Comfignat/. -- This project file defines directory variables for use in build-controlling @@ -228,6 +228,39 @@ abstract project Comfignat is #end if; + -- + -- The following variables are convenient to use in Compiler'Switches or + -- Compiler'Default_Switches in project files. + -- + -- There are no switch variables for: + -- · Unitdir, Userunitdir and GPRdir: A program working on such files would + -- need to use a search path, not just one directory. + -- · Includedir, Archincludedir and Alidir: Libraries have those pathnames + -- in usage project files. There doesn't seem to be a usecase for + -- compiling them into binaries. + + Bindir_Switch := "-gnateDBindir=""" & Bindir & """"; + Libexecdir_Switch := "-gnateDLibexecdir=""" & Libexecdir & """"; + Datadir_Switch := "-gnateDDatadir=""" & Datadir & """"; + Sysconfdir_Switch := "-gnateDSysconfdir=""" & Sysconfdir & """"; + Statedir_Switch := "-gnateDStatedir=""" & Statedir & """"; + Cachedir_Switch := "-gnateDCachedir=""" & Cachedir & """"; + Logdir_Switch := "-gnateDLogdir=""" & Logdir & """"; + Runstatedir_Switch := "-gnateDRunstatedir=""" & Runstatedir & """"; + Lockdir_Switch := "-gnateDLockdir=""" & Lockdir & """"; + Libdir_Switch := "-gnateDLibdir=""" & Libdir & """"; + Localedir_Switch := "-gnateDLocaledir=""" & Localedir & """"; + Mandir_Switch := "-gnateDMandir=""" & Mandir & """"; + Infodir_Switch := "-gnateDInfodir=""" & Infodir & """"; + Miscdocdir_Switch := "-gnateDMiscdocdir=""" & Miscdocdir & """"; + + All_Dir_Switches := + (Bindir_Switch, Libexecdir_Switch, Datadir_Switch, Sysconfdir_Switch, + Statedir_Switch, Cachedir_Switch, Logdir_Switch, Runstatedir_Switch, + Lockdir_Switch, Libdir_Switch, Localedir_Switch, Mandir_Switch, + Infodir_Switch, Miscdocdir_Switch); + + -- -- The following variables are for use in attributes to control where -- generated files are placed. -- cgit v1.2.3