Hello,
For installation I've modified gnoga.gpr to add docs, tutorial and demo:
--- ./src/gnoga.gpr.0 2015-07-06 22:15:30.000000000 +0200
+++ ./src/gnoga.gpr 2015-07-08 20:55:05.000000000 +0200
@@ -18,4 +18,8 @@
for Documentation_Dir use "../docs/html/gnoga_rm";
end IDE;
But tutorial and demo are not correct to build as their gpr project file points to dev directory structure.
Is there a convenient way to have project file correct in install directory structure ?
Regards, Pascal.
I am not sure I understand, what solution would your propose?
Well, I want to provide demo and tutorial examples in install directory. GPRInstall does some works automatically with the above lines.
But the GPR project files are not translated, they are relative to Gnoga project directory structure not relative to install directory structure.
I've done this manually for XNAdalib:
with "gnoga";
project AdaBlog is
for Languages use ("Ada");
for Source_Dirs use (".");
for Object_Dir use "../obj";
for Exec_Dir use "../bin";
for Main use ("adablog-main.adb");
package Builder is
for Executable ("adablog-main.adb") use "adablog";
end Builder;
end AdaBlog;
Is there a way to do that automatically?