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: a07f3367d7,d561cda996d4dac4 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,UTF8 Path: g2news1.google.com!news2.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Adding a compiler to GPS or a GPR project References: <1l5v84b72sizk$.j72gn8d711oq$.dlg@40tude.net> From: Stephen Leake Date: Thu, 31 Dec 2009 02:03:07 -0500 Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (windows-nt) Cancel-Lock: sha1:gr0ce06XXjGlkZi/OwVIIhaMg5o= MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: bd8944b3c4cdde197caa724048 Xref: g2news1.google.com comp.lang.ada:8561 Date: 2009-12-31T02:03:07-05:00 List-Id: "Dmitry A. Kazakov" writes: > On Wed, 30 Dec 2009 06:05:45 -0800 (PST), Hibou57 (Yannick DuchĂȘne) wrote: > >> 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. >> >> ... > > What about: > > http://www.adacore.com/wp-content/files/auto_update/gprbuild-docs/html/gprbuild_ug.html#Package-Compiler > > which defines the compiler for the given language. (The compilation command > line is determined by a combination of various project setting, obviously.) Another approach is to teach gprbuild about the language at a deeper level; see http://www.adacore.com/wp-content/files/auto_update/gprbuild-docs/html/gprbuild_ug.html#The-GPRconfig-knowledge-base Once gpr knows about the RC language, you can just put for Languages use ("Ada", "RC"); in your main *.gpr file. -- -- Stephe