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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news1.google.com!news.glorb.com!newsfeed-0.progon.net!progon.net!uucp.gnuu.de!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: How can I loose the cmd window from my GtkAda app? Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: Date: Tue, 12 May 2009 09:15:38 +0200 Message-ID: NNTP-Posting-Date: 12 May 2009 09:15:27 CEST NNTP-Posting-Host: 5767b98d.newsspool1.arcor-online.net X-Trace: DXC==E3LcgLl4Jeg`45cDR8l?oic==]BZ:afn4Fo<]lROoRa^YC2XCjHcbi?@AV>hR\\>jDNcfSJ;bb[eFCTGGVUmh?dLK[5LiR>kgb\IeoYi>mkaj X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:5776 Date: 2009-05-12T09:15:27+02:00 List-Id: On Mon, 11 May 2009 14:36:16 -0700 (PDT), sjw wrote: > On May 11, 5:40�pm, "Dmitry A. Kazakov" > wrote: > >> Yes, however I would prefer to have it enforced by gtkada.gpr, rather than >> contaminating the application's gpr which with-es gtkada.gpr. Unfortunately >> I know no way to do this in a library project. > > I've provided strings in library projects ... > > project Tash_Options is > ...... > Library_Options := > ( > "-L/usr/lib", > "-ltk8.4", > "-ltcl8.4" > ); > > Linker_Options := ("-ltash") & Library_Options; > end Pash_Options; > > with "tash_options"; > project Tash is > ... > Linker_Options := Tash_Options.Linker_Options; > package Linker is > for Default_Switches ("ada") use Linker_Options; > end Linker; > ... > end Tash; > > after which you can get at the linker options with either > > Tash.Linker_Options > > or > > Tash.Linker'Default_Switches ("ada") > > (I don't remember why I supply both! must go to bed ..) You can also rename Linker package: package Linker renames Parent_Project.Linker; But in general I have a big question to the design of the GPR language. In my view all packages of all parents projects should to be [multiple] inherited by the child project, with an option to explicitly override them. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de