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=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,d561cda996d4dac4,start X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!26g2000yqo.googlegroups.com!not-for-mail From: =?ISO-8859-1?Q?Hibou57_=28Yannick_Duch=EAne=29?= Newsgroups: comp.lang.ada Subject: Adding a compiler to GPS or a GPR project Date: Wed, 30 Dec 2009 06:05:45 -0800 (PST) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: 77.198.58.83 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1262181946 13657 127.0.0.1 (30 Dec 2009 14:05:46 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 30 Dec 2009 14:05:46 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 26g2000yqo.googlegroups.com; posting-host=77.198.58.83; posting-account=vrfdLAoAAAAauX_3XwyXEwXCWN3A1l8D User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; fr),gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:8554 Date: 2009-12-30T06:05:45-08:00 List-Id: Hi all of you, Withins GPS, it is easy to add support for a language syntax, as easy as it is on most today's editors or IDEs. But I was not able to find how to associate a compilation command to a file of a given language, either in GPS or in a GPR project file. This is not formally required, as this could probably be done manually most of times, but just that this would be cleaner. GPS can compile C files in a project (sometimes a few ones may be required) invoking gcc to produce the corresponding object file in the object output directory. Is it possible to do the same with let say, *.rc files (Windows resource files) ? I had a look at the GPS documentation, and found about the root tag for XML configuration files. This allow to define most of syntactic concerns of a language, but I was not able to find a way to define a command line to compile a file of a given language with this kind of configuration files.