Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] RE: Changing the project types


How can i modify the make command?. I want to modify this programatically.

Also while doing project build, before executing the 'Makefile' I want to run one '.env' file which contains some environmet variables which is used in Makefile. So is it possible to write some hook in project build? or can i change the builder(my builder) for cdt project?
   
Thanks,
Raj.
--- On Wed, 1/4/09, Elena Laskavaia <elaskavaia@xxxxxxx> wrote:

> From: Elena Laskavaia <elaskavaia@xxxxxxx>
> Subject: Re: [cdt-dev] RE: Changing the project types
> To: "CDT General developers list." <cdt-dev@xxxxxxxxxxx>
> Date: Wednesday, 1 April, 2009, 7:55 PM
> You need to modify make command
> invocation if Makefile is not in the project root..
> For includes you may want to modify include paths for
> Indexer, otherwise it does not matter as long as sources are
> in the project.
> For binary outside of the project - it is not very good.
> You can still create launch configuration using external
> binary location but it is better
> to create another project in the workspace which contain
> these binaries or use linked resource to point to directory
> where binaries are.
> 
> 
> Pushparaj Ponniah wrote:
> > Hi,
> > Thanks for your reply. 
> > while programmatically creating cdt project i want to
> specify different project location which contains *.c, *.h
> and Makefile. How can i do that?
> > 
> > Thanks,
> > Raj
> > 
> > 
> > --- On Wed, 1/4/09, Ron Bermejo <ronbermejo@xxxxxxxxx>
> wrote:
> > 
> >> From: Ron Bermejo <ronbermejo@xxxxxxxxx>
> >> Subject: Re: [cdt-dev] RE: Changing the project
> types
> >> To: "CDT General developers list." <cdt-dev@xxxxxxxxxxx>
> >> Date: Wednesday, 1 April, 2009, 2:52 PM
> >>
> >> Hello,
> >>
> >> I do something like this for my project: http://cdt-devel-faq.wikidot.com/#toc25
> >> Works if you already know the toolchain ID and
> project type
> >> ID beforehand.
> >> This was based on code snippets from the CDT
> wizards.
> >>
> >> Hope this helps,
> >> Ron
> >>
> >>
> >> ----- Original Message ----
> >> From: Elena Laskavaia <elaskavaia@xxxxxxx>
> >> To: CDT General developers list. <cdt-dev@xxxxxxxxxxx>
> >> Sent: Tuesday, March 31, 2009 11:10:01 PM
> >> Subject: Re: [cdt-dev] RE: Changing the project
> types
> >>
> >> Adding nature is not enough. To make full managed
> project
> >> you also have to set toolchain and some other
> stuff. You can
> >> check code of conversion wizard to see how it
> >> does it.
> >>
> >> Kaestel-Baumgartner Harald (DCC/EDF2) wrote:
> >>>   
> >>>> In my application i am having the project
> with
> >> simple nature. But at the runtime i want to change
> my simple
> >> project to cdt project and also i want to use all
> the cdt
> >> support for my project. Is this possible in
> eclipse?
> >>> AFAIK for a managed project you can simply
> call 
> >>   
> org.eclipse.cdt.managedbuilder.core.ManagedCProjectNature..addManagedNature(IProject
> >> project, IProgressMonitor monitor) throws
> CoreException
> >>> For StandardProjects the call could be
> >>>
> >>>    void
> >>
> org.eclipse.cdt.core.CProjectNature.addCNature(IProject
> >> project, IProgressMonitor mon) throws
> CoreException
> >>>
> >>> Regards
> >>>
> Harald_______________________________________________
> >>> cdt-dev mailing list
> >>> cdt-dev@xxxxxxxxxxx
> >>> https://dev.eclipse.org/mailman/listinfo/cdt-dev
> >> _______________________________________________
> >> cdt-dev mailing list
> >> cdt-dev@xxxxxxxxxxx
> >> https://dev.eclipse.org/mailman/listinfo/cdt-dev
> >>
> >>
> >>
> >>       
> >> _______________________________________________
> >> cdt-dev mailing list
> >> cdt-dev@xxxxxxxxxxx
> >> https://dev.eclipse.org/mailman/listinfo/cdt-dev
> >>
> > 
> > 
> >       Add more friends to
> your messenger and enjoy! Go to http://messenger.yahoo.com/invite/
> > 
> > _______________________________________________
> > cdt-dev mailing list
> > cdt-dev@xxxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/cdt-dev
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-dev
> 


      Check out the all-new Messenger 9.0! Go to http://in.messenger.yahoo.com/



Back to the top