Use CDT indexer without build system [message #1794535] |
Sat, 01 September 2018 07:19  |
Eclipse User |
|
|
|
Hello,
I woul like to use eclipse for its editor and especially for its indexer.
I use an external build system.
My include paths are managed externally.
I need to exclude some folders from indexer.
Adding an exclude filter is not enough.
I need to give the include path list to the indexer.
I would like to provide this path list with pattern or something similar that allow a recursive inclusion.
The aim is to write inclusion rules instead of managing an accurate list of path.
Pattern inclusion is not supported.
But is there a simple way to add such feature by using setting provider for example ?
Even if it need a bit of code (scripting ot something like that).
I just woul like to avoid a plugin development.
Thank
|
|
|
Re: Use CDT indexer without build system [message #1794690 is a reply to message #1794535] |
Wed, 05 September 2018 02:03  |
Eclipse User |
|
|
|
The Indexer is independent of builds.
I have many projects where I build by simply calling make.
I create my own makefiles.
I still use the Indexer.
The Indexer needs to know what compiler is being used (by selecting a toolchain)
to be able to get the compiler to yield its built-in settings.
If you don't have the compiler built-ins provider selected then the Indexer doesn't care what compiler is being used.
You tell the Indexer to ignore files and directories using the context menu in the Project Explorer view.
Right click on a file or directory in Project Explorer then select
Resource Configurations --> Exclude from Build ...
Note that these are by build configurations.
If you can find out where this is stored (I really don't know myself)
you can add the XML with an editor.
Other that than you have to select each file or directory by hand using the context menu.
|
|
|
Powered by
FUDForum. Page generated in 0.02592 seconds