Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Integration with QNX Momentics IDE: (6 Items)
   
Integration with QNX Momentics IDE  
Hi to the forum members,

I am developing an Eclipse CDT plug-in that sets some build settings like include and library paths and preprocessor 
definitions. The integration is
based on the assumption that the Eclipse CDT project is managed.

I tried to test this plug-in on QNX Momentics IDE. I use the following
API in the start of the plug-in :

org.eclipse.cdt.managedbuilder.core.ManagedBuildManager.getBuildInfo
(IProject project)

In QNX Momentics IDE this call returns null, so the plug-in fails to
work.

Should this API work for QNX IDE ? Is there a special API for QNX
Momentics IDE ? In case there is, I'm looking for info about the following
functionality regarding QNX projects:

   Set include path
   Set library path
   Set define
   Set undefine
   Append environment.

Thanks,
Gidi
Re: Integration with QNX Momentics IDE  
Hi, Gidi,

Is the project for which you are requesting the build info a "QNX C/C++"
project or a regular managed-make project?  In the former case, I would
not expect this API to return anything useful, as QNX C/C++ projects are
not managed-make projects.

The Momentics IDE does not publish any API for working with QNX C/C++
projects.  However, it should not interfere with the normal operation of
and API for Eclipse CDT's managed-make projects.  This includes the
provided integration of the QCC toolchain into the managed build system.

HTH,

Christian


On Tue, 2009-09-08 at 11:29 -0400, Gidi Gal wrote:

> Hi to the forum members,
> 
> I am developing an Eclipse CDT plug-in that sets some build settings like include and library paths and preprocessor 
definitions. The integration is
> based on the assumption that the Eclipse CDT project is managed.
> 
> I tried to test this plug-in on QNX Momentics IDE. I use the following
> API in the start of the plug-in :
> 
> org.eclipse.cdt.managedbuilder.core.ManagedBuildManager.getBuildInfo
> (IProject project)
> 
> In QNX Momentics IDE this call returns null, so the plug-in fails to
> work.
> 
> Should this API work for QNX IDE ? Is there a special API for QNX
> Momentics IDE ? In case there is, I'm looking for info about the following
> functionality regarding QNX projects:
> 
>    Set include path
>    Set library path
>    Set define
>    Set undefine
>    Append environment.
> 
> Thanks,
> Gidi


Re: Integration with QNX Momentics IDE  
Hi Christian,

Many thanks for your prompt reply. I tested my plug-in on "QNX C/C++" projects. If I understand correctly, I should look
 for an API to set the build settings for non-managed-make projects (my current code is fully based on the return value 
from getBuildInfo API, so I guess it is useless for QNX IDE). 

In case you know of an example source code that sets these build settings to a non-managed-make project (preferably for 
a QNX project) I'll be grateful if you could send me a reference for it.

Many thanks,
Gidi
Re: Integration with QNX Momentics IDE  
Hi Christian,

I have a question regarding your reply. I understood from your reply that QNX C/C++ projects are not managed-make 
projects. You also mentioned that there is an integration of the QCC toolchain into the managed build system. If QNX C\C
++ are not managed-make projects, what is the meaning of integration of the QCC toolchain into managed build system ?

Thanks,
Gidi
Re: Integration with QNX Momentics IDE  
Hi, Gidi,

In the Momentics IDE, if you create a C/C++ project of the non-QNX
variety, then the default toolchain selection is the QCC compiler
driver.  This applies to all of the basic templates, for managed-make
and for simple makefile projects.

This lets you use QCC to build projects for the Neutrino platform in
projects for which the Eclipse CDT provides API (such as IBuildInfo)
that you can use for your own tooling purposes.  The QCC toolchain
integration provides certain critical indexing functions, such as
discovery of the Neutrino include paths and macro definitions,
environment variables, and possibly more, according to your current
qconfig target selection.

HTH,

Christian


On Wed, 2009-09-09 at 03:23 -0400, Gidi Gal wrote:

> Hi Christian,
> 
> I have a question regarding your reply. I understood from your reply that QNX C/C++ projects are not managed-make 
projects. You also mentioned that there is an integration of the QCC toolchain into the managed build system. If QNX C\C
++ are not managed-make projects, what is the meaning of integration of the QCC toolchain into managed build system ?
> 
> Thanks,
> Gidi


Re: Integration with QNX Momentics IDE  
Hi, Gidi,

Build settings for non-managed projects are, as far as the CDT is
concerned, maintained almost entirely in Makefiles.  There is some
facility for toolchains to inject environment variables, for example,
into the build process, but in general the CDT will have no knowledge of
the steps and outcomes of the build process.

QNX C/C++ projects use an entirely different framework than CDT's
managed build system for the implementation of build settings and
generation/maintenance of the makefile.  In part this is to better
leverage the multi-platform recursive makefile architecture and the QCC
compiler driver.  At this time, there is no API by which tool extenders
may inspect or modify the settings in QNX C/C++ projects.

Cheers,

Christian


On Tue, 2009-09-08 at 12:09 -0400, Gidi Gal wrote:

> Hi Christian,
> 
> Many thanks for your prompt reply. I tested my plug-in on "QNX C/C++" projects. If I understand correctly, I should 
look for an API to set the build settings for non-managed-make projects (my current code is fully based on the return 
value from getBuildInfo API, so I guess it is useless for QNX IDE). 
> 
> In case you know of an example source code that sets these build settings to a non-managed-make project (preferably 
for a QNX project) I'll be grateful if you could send me a reference for it.
> 
> Many thanks,
> Gidi
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post37534
> 


________________________________________________________________________

Christian W. Damus
Software Developer, IDE Team
QNX Software Systems