comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: Two questions about gpr files
Date: Sat, 05 Apr 2014 12:19:51 +0100
Date: 2014-04-05T12:19:51+01:00	[thread overview]
Message-ID: <lyvbuof2g8.fsf@pushface.org> (raw)
In-Reply-To: b9a73b03-7938-416b-b6d1-ce74c925f34d@googlegroups.com

mockturtle <framefritti@gmail.com> writes:

> I could solve those two problems if it was possible to find within the
> *.gpr file the type of system and if a given project file is present.
> For example, with something like
>
>   case OS is
>     when "Linux" =>
>       OS_Dependent_Source_Dir := "src/linux";
>
>     when "Windows" =>
>       OS_Dependent_Source_Dir := "src/win";
>   end case;

You might find "aggregate projects" useful, especially the last part of
section 1.7.3.

http://docs.adacore.com/gprbuild-docs/html/gprbuild_ug.html#Define-a-build-environment


  reply	other threads:[~2014-04-05 11:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-05  8:01 Two questions about gpr files mockturtle
2014-04-05 11:19 ` Simon Wright [this message]
2014-04-08  8:07 ` Stephen Leake
2014-04-08  9:38   ` Dmitry A. Kazakov
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox