From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.182.47.137 with SMTP id d9mr7847029obn.31.1440184342813; Fri, 21 Aug 2015 12:12:22 -0700 (PDT) X-Received: by 10.182.248.166 with SMTP id yn6mr159922obc.33.1440184342788; Fri, 21 Aug 2015 12:12:22 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!x6no3030344igd.0!news-out.google.com!nt1ni11133igb.0!nntp.google.com!se8no7879702igc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 21 Aug 2015 12:12:22 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=109.189.154.38; posting-account=ksRsxQoAAABy6zt79noBFvM9-gP_mwCL NNTP-Posting-Host: 109.189.154.38 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <3cc4926d-c738-40e4-9201-6eeb0059928e@googlegroups.com> Subject: Project files / Distributed Application / Library - compile / clean From: dontspam365@gmail.com Injection-Date: Fri, 21 Aug 2015 19:12:22 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:27561 Date: 2015-08-21T12:12:22-07:00 List-Id: 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;