From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED.IIfIc3CB/+nKo+wKq8+a0g.user.gioia.aioe.org!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: How to supply O/S linker arguments with gprbuild? Date: Mon, 22 Jun 2020 22:47:00 +0100 Organization: Aioe.org NNTP Server Message-ID: References: <3f234cce-c49f-40a4-83a4-f0c9860d8abfo@googlegroups.com> <98843f83-9907-4bd4-9600-4bc67e41f883o@googlegroups.com> NNTP-Posting-Host: IIfIc3CB/+nKo+wKq8+a0g.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (darwin) X-Notice: Filtered by postfilter v. 0.9.2 Cancel-Lock: sha1:E82+kVh67jlC6UYgJ6wM4cMHXo8= Xref: reader01.eternal-september.org comp.lang.ada:59170 List-Id: "Dmitry A. Kazakov" writes: > On 22/06/2020 22:43, Simon Wright wrote: >> "Dmitry A. Kazakov" writes: >> >>> Another idea to consider would be to ditch makefiles. gprbuild does >>> everything makefiles do and better and more. >> >> Almost everything! except determining which OS you're running under, or >> building project documentation, or ... > > Are you sure that make has OS macro defined? [It would be great to > have host OS/architecture + target OS/architecture attributes in > gpr. I do not understand why gpruild still does not have them.] The first page of Gnoga's Makefile has ifeq ($(strip $(findstring darwin, $(TARGET))),darwin) PRJ_TARGET=OSX else ifeq ($(strip $(findstring mingw32, $(TARGET))),mingw32) PRJ_TARGET=Windows else etc etc etc but I agree it'd be much better to have something built-in. The internal mechanisms of gprconfig would support this kind of thing, in fact they already do because of knowing hw to build .so/.dll/.dylib depending in OS, I wonder whether we could surface that? > Isn't there the package Documentation in grpbuild? [I must admit I > never used it because I believe documentation must be written, not > built.] I just had a look at this, it works on @param-style comments (and, in the CE 2019 version anyway, goes away and builds "documentation" for all the withed units from eg GNATCOLL unless you tell it --no-subprojects. I'd have expected that to be the default.) > If you rather mean project cross reference GPS does the job to me. I use Emacs ada-mode, but yes.