Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-dev] API for changing contents of template

Except, it would seem, create a new project that uses a different toolchain??

 


From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Doug Schaefer
Sent: 25 July 2007 14:58
To: CDT General developers list.
Subject: RE: [cdt-dev] API for changing contents of template

 

Yes. I think the real power of the template engine is the template processes. You can do pretty much anything with them.

 

Doug Schaefer, QNX Software Systems
Eclipse CDT Project Lead, http://cdtdoug.blogspot.com


From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Mike Wrighton
Sent: Wednesday, July 25, 2007 7:26 AM
To: CDT General developers list.
Subject: RE: [cdt-dev] API for changing contents of template

 

Yeah exactly (as far as I know).

 


From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Sheldon Dsouza
Sent: 25 July 2007 12:12
To: CDT General developers list.
Subject: Re: [cdt-dev] API for changing contents of template

 

Thanks, so in order to do this i will have to implement a process similar to AppendToMBSStringListOptionValues to add my include paths.

Regards,
Sheldon

On 7/25/07, Mike Wrighton <mikew@xxxxxxxxxxxxxx> wrote:

Sheldon, I think what you need to do is create a template process, and set the project options such as paths accordingly inside this process. This is what I've done – I just call System.getEnv() inside my template process to set the include and library paths based on environment variables.

 


From: cdt-dev-bounces@xxxxxxxxxxx [mailto: cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Sheldon Dsouza
Sent: 25 July 2007 11:52
To: CDT General developers list.
Subject: [cdt-dev] API for changing contents of template

 

Hi,

         Just wanted to know if it is possible to modify the template XML before creating a project using API. As per my previous question on adding include paths through the templates, the includes paths needed for our projects are dependent on a particular target. So if i select a particular target for project creation the include path will change

e.g /target/usr/include this cannot be hard coded in the template. Needs to be changed on the fly while creating the project.

Regards,
Sheldon


_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev

 


Back to the top