comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: How can I loose the cmd window from my GtkAda app?
Date: Tue, 12 May 2009 09:15:38 +0200
Date: 2009-05-12T09:15:27+02:00	[thread overview]
Message-ID: <dj31n839pqj$.15hjiqasdltgc$.dlg@40tude.net> (raw)
In-Reply-To: e4f80745-6139-48b3-bc11-ce2fd88d27cc@r36g2000vbr.googlegroups.com

On Mon, 11 May 2009 14:36:16 -0700 (PDT), sjw wrote:

> On May 11, 5:40�pm, "Dmitry A. Kazakov" <mail...@dmitry-kazakov.de>
> 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



  reply	other threads:[~2009-05-12  7:15 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-11 15:19 How can I loose the cmd window from my GtkAda app? daniel.wengelin
2009-05-11 15:53 ` Dmitry A. Kazakov
2009-05-11 15:30   ` Per Sandberg
2009-05-11 16:40     ` Dmitry A. Kazakov
2009-05-11 16:41       ` Per Sandberg
2009-05-11 21:36       ` sjw
2009-05-12  7:15         ` Dmitry A. Kazakov [this message]
2009-05-12  8:13       ` Jean-Pierre Rosen
2009-05-12  9:24         ` Dmitry A. Kazakov
2009-09-10 20:24           ` Jack Mitchell
replies disabled

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