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-Thread: a07f3367d7,11936ac6f9ea8db1 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!feeder.news-service.com!news2.euro.net!newsfeed.freenet.de!news.teledata-fn.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: gnat project "include file" Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <4e8ce175-17da-414d-ba32-57406d23831a@x25g2000prf.googlegroups.com> Date: Tue, 8 Dec 2009 09:42:20 +0100 Message-ID: <1f87hchf2wgii$.bheeb6c38hez$.dlg@40tude.net> NNTP-Posting-Date: 08 Dec 2009 09:42:20 CET NNTP-Posting-Host: e45a063d.newsspool4.arcor-online.net X-Trace: DXC=KcBkKi^KQb4D]ncZ]`hZ;14IUK7enW;^6ZC`4IXm65S@:3>?70:NaTIFF^= X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:8344 Date: 2009-12-08T09:42:20+01:00 List-Id: On Mon, 7 Dec 2009 10:27:54 -0800 (PST), Zircona wrote: > I got a projet which are multiple project.. Some of them have > dependency to the other. > Is there a way to change the with command to used an environment > variable? You do not need to change it. The project itself can depend on the variable(s), i.e. instead of different versions of the same project X, you make X dependent on the scenario variables. E.g.: project X is type Development_Type is ("Debug", "Release"); Development : Development_Type := external ("Development", "Debug"); type Platform_Type is ("x86_Windows", "x86_VxWorks"); Platform : Platform_Type := external ("Platform", "x86_Windows"); case Platform is when "x86_Windows" => for Source_Dirs use Dirs & "os/Windows/i586"; case Development is when "Debug" => for Object_Dir use "lib/x86/Windows/Debug"; when "Release" => for Object_Dir use "lib/x86/Windows/Release"; end case; when "x86_VxWorks" => ... etc. The project Y may simply with "x.gpr"; project Y is ... Y can share the variables Development and Platform. (Copy type and variable declaration into Y, when necessary) -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de