> Le 9 juin 2018 à 13:01, Pascal via Gnoga-list > <gnoga-list@lists.sourceforge.net> a écrit : > > Hello, > > I'll add a standalone compilation mode with Gnoga which doesn't need Gnoga > install. > > For Unix like: > (it is like gtkada-config) > The script is created a first time with makefile and then can be use without > makefile. > > Simply do: > $ cd <gnoga-repo> > $ make gnoga-config > $ cd <your-stuff> > $ gprbuild -P your-project.gpr your-main.adb > `<gnoga-repo>/build/bin/gnoga-config` > (your-project.gpr just have to include 'with "gnoga";') > > You can also add <gnoga-repo>/build/bin to your PATH and then just do: > $ gprbuild -P your-project.gpr your-main.adb `gnoga-config` > > gnoga-config sets the search project directories for gprbuild. >
For Windows, I fear that I can't do the same. Nevertheless, I can use Gautier trick: make.cmd: mingw32-make %1 %2 %3 %4 %5 %6 %7 %8 %9 Thus, makefile creates gnoga-config.cmd with up to 9 arguments with gnoga compilation options. Usage: > cd <gnoga-repo> > make gnoga-config > cd <your-stuff> > <gnoga-repo>\build\bin\gnoga-config gprbuild -P your-project.gpr your-main.adb (your-project.gpr just have to include 'with "gnoga";') You can also add <gnoga-repo>\build\bin to your PATH and then just do: > gnoga-config gprbuild -P your-project.gpr your-main.adb Could some Windows users test it? Has someone better ideas? Thanks, Pascal. http://blady.pagesperso-orange.fr The modified 1.3 makefile:
Makefile
Description: Binary data
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________ Gnoga-list mailing list Gnoga-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gnoga-list