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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.224.172.129 with SMTP id l1mr14245252qaz.4.1373402667115; Tue, 09 Jul 2013 13:44:27 -0700 (PDT) X-Received: by 10.49.101.34 with SMTP id fd2mr832479qeb.12.1373402667093; Tue, 09 Jul 2013 13:44:27 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!usenet.blueworldhosting.com!feeder02.blueworldhosting.com!news.ripco.com!news.glorb.com!t19no928340qam.0!news-out.google.com!f7ni1805qai.0!nntp.google.com!t19no973213qam.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 9 Jul 2013 13:44:26 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2a02:120b:2c10:cb40:c8a2:a1c0:a2a7:8175; posting-account=gRqrnQkAAAAC_02ynnhqGk1VRQlve6ZG NNTP-Posting-Host: 2a02:120b:2c10:cb40:c8a2:a1c0:a2a7:8175 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <062c95f8-445d-49f1-8bd2-76481f146cf7@googlegroups.com> Subject: Q: Multiple GNAT project files and object directories From: gautier_niouzes@hotmail.com Injection-Date: Tue, 09 Jul 2013 20:44:27 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:16229 Date: 2013-07-09T13:44:26-07:00 List-Id: Hello, Quick question (probably with a long answer ;-) ): How do I force all object files to land into a single directory, including = the object files of "with"-ed projects ? With for Object_Dir use "obj"; only the object files for the project are put into it. The "with"-ed projects have their own Object_Dir's, and their object files = appear there. Fair enough. Now I have a more complicated situation: a main project with different buil= d modes. So the Object_Dir depends on this build mode: case Build_Mode is when "Debug" =3D> for Object_Dir use "../obj/debug"; when "Fast" =3D> for Object_Dir use "../obj/fast"; when "Profiling" =3D> for Object_Dir use "../obj/profiling"; end case; The snag is: the "with"-ed projects do not know about that and use only the= ir own single Object_Dir. GNAT is smart enough to recompile everything in t= he "with"-ed projects upon a build mode change. But it makes the build very= long each time a mode is changed. At worst we would have different sets of= compiler options in the object files to be linked. TIA for any clue... _________________________=20 Gautier's Ada programming=20 http://sf.net/users/gdemont