comp.lang.ada
 help / color / mirror / Atom feed
* Project files / Distributed Application / Library - compile / clean
@ 2015-08-21 19:12 dontspam365
  0 siblings, 0 replies; only message in thread
From: dontspam365 @ 2015-08-21 19:12 UTC (permalink / raw)


Hi! Windows 8.1 / GNATMAKE GPL 2014 (20140331)
I am using the project https://github.com/AdaCore/ada-lua in my project. It is a distributed application using PolyORB / Annex E: Distributed Systems.  See all project files in simplified variants below.

What does work:
Open the project file "lua.gpr" and build the project- this gives me .ALI / .O / .A files and I get the library files I need in a lib folder, and everything is good.
If I now open "MyProject" and build this, I get the executables, linking and all is ok. 

What is not so great:
If I chose "Clean" in GPS in "MyProject" then also the .ALI / .O / .A files for the Lua project are removed from the folders.
If I now chose build "MyProject" (distributed application) then this does NOT build the .A file for the Lua library.


This means that at the moment I need to open a new GPS for the lua.gpr and build the library there, before building MyProjects.

I would like either that the "Clean" on "MyProject" leave the Lua files as they are - 
or (preferably) that the building process of "MyProject" could be able to build the Lua files also.

I have experiemented with the "Exernally_Built="true" in the Lua.gpr with the idea that then it should not "Clean" the files in Lua - but I didn't manage to make that work.

When I build Lua.gpr alone from GPS, then I get the following output:
"
building static library for project lua
ar cr D:\Ada\AnotherProject\lua\lib\libadalua.a D:\Ada\AnotherProject\lua\obj\lua-ada_limited_types.o ...
ranlib D:\Ada\AnotherProject\lua\lib\libadalua.a
"

These lines dont appear when I build "MyProject". The .ads / .adb files from the Lua projects do get compiled - but it seems that the last steps of creating the library is not done in the "MyProject".

Does anyone have any good ideas how to improve this?

Frank

--------
I have a project file for my own project that looks like this:

with "gtkada";
with "AnotherProject";

project MyProject is

   for Source_Dirs use ("src");

   package Dsa is
      for Configuration_File use "MyProjectDsaConfig";
   end Dsa;

   package Pretty_Printer is
      for Default_Switches ("ada") use ("-M100");
   end Pretty_Printer;

   package Linker is
     for Default_Switches("ada") use ("-llua");
   end Linker;

end MyProject ;


The project file "AnotherProject"

looks like this:

with "lua";
project AnotherProject is

   for Source_Dirs use ("src",
                        "src/folder1",
                        "src/folder2");

end AnotherProject;


project Lua is 
   for Languages use ("ada"); 


   for Source_Dirs use ("src"); 
   for Object_Dir use "obj"; 
   for Library_Dir use "lib"; 
   for Library_Name use "adalua"; 


    package Compiler is 
       for Default_Switches("ada") use ("-O2", 
                                        "-gnat12", 
                                        "-gnatwa", 
                                        "-gnatyg"); 
    end Compiler; 

 
end Lua; 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-08-21 19:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-21 19:12 Project files / Distributed Application / Library - compile / clean dontspam365

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox