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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,fe1dc0666af8f6a6 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!wn11feed!worldnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!53ab2750!not-for-mail Newsgroups: comp.lang.ada From: anon@anon.org (anon) Subject: Re: Creating mixed language static libraries with gpr files? Reply-To: no to spamers (No@email.given.org) References: X-Newsreader: IBM NewsReader/2 2.0 Message-ID: Date: Tue, 03 Mar 2009 18:21:43 GMT NNTP-Posting-Host: 12.65.222.214 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc05-news.ops.worldnet.att.net 1236104503 12.65.222.214 (Tue, 03 Mar 2009 18:21:43 GMT) NNTP-Posting-Date: Tue, 03 Mar 2009 18:21:43 GMT Organization: AT&T Worldnet Xref: g2news1.google.com comp.lang.ada:3902 Date: 2009-03-03T18:21:43+00:00 List-Id: -- This might work. It based on my design of a gpr to build libgnat -- -- to build lib -- gnatmake -Pfoo.gpr -x -- -- project foo is for Source_Dirs use ( "asrc", "csrc" ) ; -- for source in two dir -- ada = asrc -- c = csrc for Object_Dir use "obj" ; for Library_Dir use "./lib" ; for Library_Name use "foo" ; for Library_Kind use "static" ; package Compiler is for Default_Switches ( "Ada" ) use ( "" ) ; for Default_Switches ( "C" ) use ( "" ) ; end Compiler ; end foo ; In , Markus Schoepflin writes: >Using gcc 4.3.3, I'm trying to create a static library that contains both >object files created from Ada and C. > >The gpr file to create the library (only using the Ada parts) looks like this: > >---%<--- >project foo is > > for source_dirs use ("src"); > for object_dir use "obj"; > > for library_name use "foo"; > for library_dir use "./lib"; > for library_kind use "static"; > >end foo; >--->%--- > >Now I have a few object files built from C sources. Is it possibly to use >the gnat project file to create the static library including those object >files? > >Markus