comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <stephen_leake@stephe-leake.org>
Subject: Re: Pragma for conditional compilation? (Ada 2005 vs. 95)
Date: Sat, 29 Sep 2007 06:18:40 -0400
Date: 2007-09-29T06:18:40-04:00	[thread overview]
Message-ID: <ups01lqpr.fsf@stephe-leake.org> (raw)
In-Reply-To: 1v8jdf.rc4.ln@hunter.axlog.fr

Jean-Pierre Rosen <rosen@adalog.fr> writes:

> Ludovic Brenta a �crit :
>> Jean-Pierre Rosen writes:
>>> Library package renaming is a way to achieve the same effect without
>>> resorting to CM.
>> But what if you want to maintain two versions of the software in
>> parallel, like the OP does? You'll want two versions of the renaming.
>> I don't see how you'd do that without some sort of configuration
>> management system. OK, maybe I'm biased: I haven't worked without a
>> configuration management system since 1999 :)
>> 
> If you have something like:
>
> with OS_Services_Linux;
> package OS_Services renames OS_Services_Linux;
>
> You certainly need to edit the source to move to -say- a Windows
> version, but I claim that it is not much more work than changing the
> value of a variable in a Make file....

You can have _two_ make files, in two build directories, and compile
both without editing anything. Each top-level make file can define the
relevant variables, then call a common makefile that does the real
work.

Or you can have two GNAT project files that declare source names for
package OS_Services, again in two build directories, and compile both
without editing.

You can't do that with your solution.

You need two build directories anyway, since all (or at least some of)
the object files will be different.

A true solution involves _zero_ manual steps.

-- 
-- Stephe



  parent reply	other threads:[~2007-09-29 10:18 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-27  7:56 Pragma for conditional compilation? (Ada 2005 vs. 95) Jerry
2007-09-27  9:31 ` Georg Bauhaus
2007-09-27 16:59   ` Pascal Obry
2007-09-27 21:56     ` Jerry
2007-09-27  9:52 ` Stephen Leake
2007-09-27  9:58 ` Brian Drummond
2007-09-27 15:26 ` anon
2007-09-27 21:46   ` Jerry
2007-09-28  4:55     ` Jeffrey R. Carter
2007-09-28 12:15       ` Jeffrey Creem
2007-09-28 14:06         ` Jean-Pierre Rosen
2007-09-28 15:24           ` Ludovic Brenta
2007-09-28 16:08             ` Jean-Pierre Rosen
2007-09-28 17:54               ` Georg Bauhaus
2007-09-28 18:19                 ` Pascal Obry
2007-09-28 20:02                   ` Stefan Bellon
2007-09-28 20:14                     ` Pascal Obry
2007-09-28 20:26                       ` Stefan Bellon
2007-09-29 10:24                     ` Stephen Leake
2007-09-28 20:04                   ` Simon Wright
2007-09-28 20:11                     ` Pascal Obry
2007-09-29 10:29                     ` Stephen Leake
2007-09-29 10:18               ` Stephen Leake [this message]
2007-09-28 18:07     ` anon
2007-09-29 22:13 ` Jerry
2007-09-30 10:54   ` Stephen Leake
replies disabled

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