comp.lang.ada
 help / color / mirror / Atom feed
From: Pascal Obry <pascal@obry.net>
Subject: Re: Specifying a target in a GPRBuild project file?
Date: Fri, 26 Apr 2013 18:09:37 +0200
Date: 2013-04-26T18:09:37+02:00	[thread overview]
Message-ID: <517AA6C1.7050508@obry.net> (raw)
In-Reply-To: 1jpdzc49i9m1w.12yp9l8whf5lk$.dlg@40tude.net

Le 25/04/2013 21:02, Dmitry A. Kazakov a �crit :
> For this purpose I am using a scenario variable that controls Compiler,
> Linker etc packages. It also manipulates Source_Dirs because different
> targets have some source files different (I don't want to use
> preprocessor).

No scenario variable won't help calling the right tool chain. For
example if you compile a Win32 version of a project from Linux the
proper winres tool will be called:

   $ gprbuild --target=i686-pc-mingw32 prj.gpr

And if one of the language is winres then at some point a call to:

   $ i686-pc-mingw32-winres ...

will be made.

There is no way to achieve that with scenario variables which are useful
to select proper sources and naming scheme. It is also used to pass the
proper libraries. In fact most of the time I'm using:

   $ gprbuild --target=i686-pc-mingw32 -XTARGET=Windows prj.gpr

That is, I teach gprbuild about the cross environment using the proper
triplet name and the project file circuitry about the variant I'm
building. Most of the time the TARGET project variable is UNIX, Darwin
or Windows.

Pascal.

-- 
  Pascal Obry /  Magny Les Hameaux (78)

  The best way to travel is by means of imagination

  http://v2p.fr.eu.org
  http://www.obry.net

  gpg --keyserver keys.gnupg.net --recv-key F949BD3B



  reply	other threads:[~2013-04-26 16:09 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-23  7:46 Specifying a target in a GPRBuild project file? Yannick Duchêne (Hibou57)
2013-04-23  8:09 ` Yannick Duchêne (Hibou57)
2013-04-23 11:37   ` Yannick Duchêne (Hibou57)
2013-04-23 14:04     ` Yannick Duchêne (Hibou57)
2013-04-23 15:17       ` Yannick Duchêne (Hibou57)
2013-04-23 19:14         ` sbelmont700
2013-04-25  9:01           ` Yannick Duchêne (Hibou57)
2013-04-25 16:57             ` Pascal Obry
2013-04-25 19:02               ` Dmitry A. Kazakov
2013-04-26 16:09                 ` Pascal Obry [this message]
2013-04-26 17:51                   ` Yannick Duchêne (Hibou57)
2013-04-26 18:32                   ` Dmitry A. Kazakov
2013-04-26 18:52                     ` Pascal Obry
2013-04-27  6:05                       ` Dmitry A. Kazakov
2013-04-27  8:37                         ` Yannick Duchêne (Hibou57)
2013-04-27  8:48                           ` Dmitry A. Kazakov
2013-04-27 13:32                             ` Georg Bauhaus
2013-04-27 16:57                               ` Yannick Duchêne (Hibou57)
2013-04-27 18:30                                 ` Georg Bauhaus
2013-04-27 21:20                                   ` Yannick Duchêne (Hibou57)
2013-04-28  6:47                                     ` Gour
2013-04-28  8:11                                       ` Dmitry A. Kazakov
2013-04-28 12:56                                         ` Gour
2013-04-28 14:52                                           ` Dmitry A. Kazakov
2013-04-28 16:03                                             ` Simon Wright
2013-04-28 19:09                                             ` Gour
2013-04-28  7:21                                     ` Simon Wright
2013-04-27 19:34                                 ` Simon Wright
2013-04-26 19:09                     ` sbelmont700
2013-04-27  6:17                       ` Dmitry A. Kazakov
2013-04-27  7:45                         ` Pascal Obry
2013-04-27  8:36                           ` Dmitry A. Kazakov
2013-04-27  8:43                         ` Yannick Duchêne (Hibou57)
2013-04-26 19:31                     ` Yannick Duchêne (Hibou57)
2013-04-27  7:45                       ` Pascal Obry
2013-04-26  9:54               ` Stephen Leake
2013-04-26 17:41                 ` Yannick Duchêne (Hibou57)
2013-04-28  2:09                   ` Stephen Leake
2013-04-25 21:00             ` sbelmont700
replies disabled

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