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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,f0bea306882c2a15 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!feeder3.cambriumusenet.nl!feed.tweaknews.nl!217.73.144.44.MISMATCH!ecngs!feeder.ecngs.de!Xl.tags.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!local2.nntp.ams.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail NNTP-Posting-Date: Sat, 30 Apr 2011 03:57:55 -0500 Content-Type: text/plain; charset="ISO-8859-1" From: Robert Matthews Date: Sat, 30 Apr 2011 09:57:54 +0100 User-Agent: KNode/4.4.9 Content-Transfer-Encoding: 7Bit Subject: Re: Problem referencing library file via project file Newsgroups: comp.lang.ada References: Followup-To: comp.lang.ada MIME-Version: 1.0 Message-ID: <1Imdneq2QP2OUibQnZ2dnUVZ8mydnZ2d@brightview.co.uk> X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-kFIH1EWiPfUn3yVwGri/eGlH3j1RhoCmeQZA6BQ8sGVgwxDh72aDnZmjYs0TaUHbWr1yJY4R5a/t9fe!/KWyVU5TUKkFYe01dNt9dd50Is1Jk9unKlSFoclpfXmAj45sDsnaE/1oldSoNxVJ31DPf3rh4bRQ!HC4R8e3Zve3g/vSbtSzFUJWw X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 1925 Xref: g2news1.google.com comp.lang.ada:19099 Date: 2011-04-30T09:57:54+01:00 List-Id: Dmitry A. Kazakov wrote: > > I would recommend always refer external non-Ada libraries as proper > library projects rather than a bunch of linker options. > > In your case it could be: > > webkit.gpr: > --------------------------------------------------- > project WebKit is > for Externally_Built use "true"; > for Source_Files use (); > for Library_Dir use "/usr/lib"; -- Or whatever location it has > for Library_Name use "webkit-1.0"; > for Library_Kind use "dynamic"; > end WebKit; > ------------------------------------------------- > and then in your project you just "with" it: > > with "webkit.gpr"; > > Gprbuild and gprmake would do the rest. > > P.S. I would make this packaging policy for all Ada distributions. > That did it! Many thanks. Robert Matthews