comp.lang.ada
 help / color / mirror / Atom feed
* Q: Multiple GNAT project files and object directories
@ 2013-07-09 20:44 gautier_niouzes
  2013-07-09 21:27 ` Dmitry A. Kazakov
  2013-07-09 21:42 ` Simon Wright
  0 siblings, 2 replies; 12+ messages in thread
From: gautier_niouzes @ 2013-07-09 20:44 UTC (permalink / raw)


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 build modes. So the Object_Dir depends on this build mode:
   case Build_Mode is
      when "Debug" =>
         for Object_Dir use "../obj/debug";
      when "Fast" =>
         for Object_Dir use "../obj/fast";
      when "Profiling" =>
         for Object_Dir use "../obj/profiling";
   end case;
The snag is: the "with"-ed projects do not know about that and use only their own single Object_Dir. GNAT is smart enough to recompile everything in the "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...
_________________________ 
Gautier's Ada programming 
http://sf.net/users/gdemont

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2013-07-11  4:21 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-09 20:44 Q: Multiple GNAT project files and object directories gautier_niouzes
2013-07-09 21:27 ` Dmitry A. Kazakov
2013-07-09 21:42 ` Simon Wright
2013-07-10  8:00   ` gautier_niouzes
2013-07-10  8:28   ` Pascal Obry
2013-07-10 12:37     ` Simon Wright
2013-07-10 13:34       ` gautier_niouzes
2013-07-10 17:44         ` J-P. Rosen
2013-07-10 19:45           ` Simon Wright
2013-07-11  3:45           ` gautier_niouzes
2013-07-10 19:53         ` Simon Wright
2013-07-11  4:21           ` gautier_niouzes

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