> Le 3 mars 2019 à 19:19, Pascal <blady-...@users.sf.net> a écrit : > > Hello, > > I worked to achieve the possibility to use Gnoga either directly without an > installation folder or with an installation folder. > The past results weren't so satisfying :-( > I recently discovered the library aggregate projects facility of gprbuild: > https://docs.adacore.com/gprbuild-docs/html/gprbuild_ug/gnat_project_manager.html#aggregate-projects > This capacity opens the possibility to define aggregate projects with > specific project paths. > > Thus I've created two kinds of aggregate projects: > 1a) without installation - direct aggregate projects to use with a "with" > clause in your own project: > $ make all # as usual > # add "with <path to gnoga>/src/gnoga_agg.gpr;" in your project
Revert to gnoga.gpr (gnoga_agg.gpr has been kept but will be no more used). Take care of the options (if default ones are not suitable as for Windows), see gnoga-config in makefile. > $ gprbuild -P <your project> > > 1b) with installation: > $ make all # as usual > $ make install PREFIX=<your installation folder path> > # add "with <your installation folder path>/share/gpr/gnoga_agg.gpr;" in your > project Revert to gnoga.gpr. (options are frozen in installed project) > $ gprbuild -P <your project> > > 2) with installation - external aggregate projects: > $ make all # as usual > $ make install PREFIX=<your installation folder path> > # add simply "with gnoga_agg.gpr;" in your project Revert to gnoga.gpr. > # create an external aggregate project with your project (see below) > $ export PREFIX=<your installation folder path> > $ gprbuild -P <your aggregate project> > > Example: > aggregate project Sing_Agg_Ext is > for Project_Path use (external("PREFIX") & "/share/gpr"); > for Project_Files use ("sing.gpr"); > end Sing_Agg_Ext; > > Note the power of aggregate projects with GPS, for instance all demos are > opened with one project. > see demo/demo_agg.gpr > > The changes have been pushed to Gnoga 1.5-alpha: > https://sourceforge.net/p/gnoga/code/ci/dev_1.5/tree/ > > I've tested it on macOS. > Can someones test it also on Linux or Windows? Hello, I've just push some adjustments to aggregate projects and Makefile to be more Windows friendly (see above). https://sourceforge.net/p/gnoga/code/ci/aeaea069e6e612ab8d805c4d40eeb46b0e31c4d3/ Could you please test it on Windows and Linux (for possible regression)? Thanks, Pascal. http://blady.pagesperso-orange.fr _______________________________________________ Gnoga-list mailing list Gnoga-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gnoga-list