[gps-users] Idea for .gpr: with sources [of] "other_project"

Gautier de Montmollin gautier.de.montmollin at gmail.com
Sun Oct 8 12:06:21 CEST 2017


(This would be actually more related to GNAT itself, but let's try like
that)

Sometimes with
  with "other_project";

there is a proliferation of build modes with different object directories,
"Debug" vs "Release"-like options etc. and sometimes you want to access to
the sources of another project.
So an idea would be, in some cases, to access /only/ to the sources of the
"with-ed" project.
The "with-ing" project would take care of the options, object directories.
Of course this would be only made possible if there is only one case for
the "for Source_Dirs use" section.
In GPS, the contents Scenario panel would have the opportunity, in some
cases, to be be simpler. Sometimes it gets really messy with many projects
"with" levels.
The syntax would be perhaps:

  with sources "other_project";

or

  with sources of "other_project";

This would be similar to the "use type" clause in Ada.

Cheers
Gautier
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/gps-users/attachments/20171008/a42a2867/attachment.html>


More information about the gps-users mailing list