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-Language: ENGLISH,ASCII Path: g2news1.google.com!news4.google.com!feeder.news-service.com!feed.xsnews.nl!border-3.ams.xsnews.nl!193.141.40.65.MISMATCH!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Adding a compiler to GPS or a GPR project Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: Date: Wed, 30 Dec 2009 15:31:01 +0100 Message-ID: <1l5v84b72sizk$.j72gn8d711oq$.dlg@40tude.net> NNTP-Posting-Date: 30 Dec 2009 15:31:00 CET NNTP-Posting-Host: 742065f4.newsspool3.arcor-online.net X-Trace: DXC=ViWgab;=m6;lIh70@[6LHn;2LCV>[ 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. > > 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. 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.) -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de