Menu

#27 Doc, demo and tutorial installation.

1.2
open
nobody
None
2015-11-28
2015-08-02
Blady
No

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;

  • package Install is
  • for Artifacts ("share/gnoga") use ("../docs/html", "../docs/user_guide", "../demo", "../tutorial");
  • end Install;
    +

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.

Discussion

  • David Botton

    David Botton - 2015-11-25

    I am not sure I understand, what solution would your propose?

     
  • Blady

    Blady - 2015-11-28

    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?

     

Log in to post a comment.