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=unavailable autolearn_force=no version=3.4.4 Path: border2.nntp.dca.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Two questions about gpr files References: Date: Tue, 08 Apr 2014 03:07:30 -0500 Message-ID: <8561mktfb1.fsf@stephe-leake.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (windows-nt) Cancel-Lock: sha1:ao2nMCQlNzGD3Zz6OzHC7zxDtgM= MIME-Version: 1.0 Content-Type: text/plain X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: f22995343ae43eef2f4a313860 X-Received-Bytes: 1520 X-Received-Body-CRC: 649850502 Xref: number.nntp.dca.giganews.com comp.lang.ada:185624 Date: 2014-04-08T03:07:30-05:00 List-Id: mockturtle writes: > (a) to run on different systems (e.g., Windows, Linux, ...) > despite the fact that it needs to access to some system-specific > features that are outside the scope of the standard. > > (b) to use a GTK-based interface, but falling down to a text-based > one (e.g., ncurses) if GTK is not available at compilation time > > > > I looked around the gprbuild documentation, but I was not able to find anything. I know I could use external variables, such as reading environment variables or use the -X switch, but I would like a solution that works on any OS (OK, most of the commonly used OSes :-) and it requires no special intervention from the user that compiles the code. > > Any ideas? use a Makefile, and or a configure script. See gnatcoll for detailed ideas. -- -- Stephe