From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,6426898aedaa5880 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!w3g2000hsg.googlegroups.com!not-for-mail From: Jerry Newsgroups: comp.lang.ada Subject: Re: Pragma for conditional compilation? (Ada 2005 vs. 95) Date: Thu, 27 Sep 2007 14:56:18 -0700 Organization: http://groups.google.com Message-ID: <1190930178.810160.282870@w3g2000hsg.googlegroups.com> References: <1190879769.361848.188220@22g2000hsm.googlegroups.com> <1190885467.22443.5.camel@sonnenregen> <46FBE17B.6060007@obry.net> NNTP-Posting-Host: 75.171.63.196 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1190930179 5959 127.0.0.1 (27 Sep 2007 21:56:19 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 27 Sep 2007 21:56:19 +0000 (UTC) In-Reply-To: <46FBE17B.6060007@obry.net> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US) AppleWebKit/522+ (KHTML, like Gecko, Safari/522) OmniWeb/v612.0.91344,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: w3g2000hsg.googlegroups.com; posting-host=75.171.63.196; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Xref: g2news2.google.com comp.lang.ada:2172 Date: 2007-09-27T14:56:18-07:00 List-Id: On Sep 27, 9:59 am, Pascal Obry wrote: > Georg Bauhaus a =E9crit : > > > Sounds like simple configuration management will help. > > If you are using GNAT, make two project files, and two > > source directories for units that differ. > > Or one project file with the proper directory selected by a project > variable. This variable will appear inside GPS (see scenario view). > Quite handy and very simple. But I agree, no conditional compilation > needed this is a configuration management issue. > > Pascal. > Thanks all who suggested the project file solution. That sounds like the way to go. More to learn for me 8^). I would then have to see how this might fit into the build system (cmake) used by the SVN gurus on this project. (The project is PLplot, BTW.) They have been amazing in their ability to incorporate my Ada code into their project so far, given that there are no Ada programmers involved (except for me) and given that I know little of cmake or SVN (commits are made for me by a guru). The good news is that everything I have done compiles and runs correctly on every system that they have tested it with (thanks to help I received quite a while back from this list regarding other issues). Always the Ada noob, Jerry