Includes per configuration [message #209689] |
Thu, 14 February 2008 08:39  |
Eclipse User |
|
|
|
Originally posted by: sebastian.huber.embedded-brains.de
Hi,
I set up a standard makefile project and want to use different
configurations to build artifacts for different hardware boards in a
cross-compiler environment. The build process works fine. Each
configuration uses header files in the standard include paths provided
by the cross-compiler (gcc) and header files in board specific include
paths. I added the path settings to Project Properties->C/C++
General->Paths and Symbols->Includes. The problem is now that if I
switch the configuration the project->Includes in the Project Explorer
won't be updated (= change of board specific include paths). This is bad
since many things seem to rely on this e.g. automatic opening of include
files from the file outline. Is there a way to update the project->Includes?
Ciao,
Sebastian Huber
|
|
|
|
Re: Includes per configuration [message #210015 is a reply to message #209961] |
Tue, 19 February 2008 10:18  |
Eclipse User |
|
|
|
Originally posted by: sebastian.huber.embedded-brains.de
Angel Roman wrote:
> Hi Sebastian,
>
> The "Includes" that show up in the C/C++ Projects view are controlled by
> the "Build configuration for indexer" setting under C/C++ General ->
> Indexer.
Oh, I haven't checked that tab. Thanks for this hint. I use now the
active build configuration for the indexer.
> After you modify your configuration via "Paths and symbols" (like you
> did), make sure the desired configuration is selected under C/C++
> General -> Indexer / "Build configuration for the indexer."
The paths in the project->Includes will be updated now if I clean and
build the project (or vice versa). A Index->Rebuild has no effect.
> Let me know if this works for you.
>
> Regards,
>
> Angel Roman
> MDE Systems, Inc.
>
> Sebastian Huber wrote:
>> Hi,
>> I set up a standard makefile project and want to use different
>> configurations to build artifacts for different hardware boards in a
>> cross-compiler environment. The build process works fine. Each
>> configuration uses header files in the standard include paths provided
>> by the cross-compiler (gcc) and header files in board specific include
>> paths. I added the path settings to Project Properties->C/C++
>> General->Paths and Symbols->Includes. The problem is now that if I
>> switch the configuration the project->Includes in the Project Explorer
>> won't be updated (= change of board specific include paths). This is bad
>> since many things seem to rely on this e.g. automatic opening of include
>> files from the file outline. Is there a way to update the
>> project->Includes?
>>
>> Ciao,
>> Sebastian Huber
|
|
|
Powered by
FUDForum. Page generated in 0.03712 seconds