This is not working for me, and I think it is because I cant seem to get a lanuageSEttingProvider
attached to my toolchain (on the “preprocessor Include Paths, Macros, etc.” page I get a “Cannot Determine Toolchain Languages” message.
I think this is how I have my tools setup, but I could not realy find a way to setup my toolchain
to produce the proper output. Maybe this is a good time to describe my problem, and the approach that I took that is now leading to this problem.
Our build system is quite unique. We have a distributed system, and we use “Sparse” projects. This
means that we don’t actually invoke the compiler, we call a separate tool “sdsbuild” which reads build script(s) and then executes the proper commands to build the source files.
Basically what I want is this:
Lets say that we have this setup:
file a.c builds with script script1.bld
file b.c builds with script script1.bld
file c.c builds with script script2.bld
so, the build command should be something like: sdsbuild script1, script2
This could also be something like sdsbuild script1; sdsbuild script2
But I need to have just 1 invocation the build command for both a.c and b.c
The only way that I could find to make this happen was to create “dummy” tools that produce fake
outputs that are then piped into another tool that filters out the inputs, and creates a mashed up command line.
If you have a suggestions, I would really appreciate it.
From:
cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx]
On Behalf Of Andrew Gvozdev
Sent: Tuesday, September 17, 2013 4:05 PM
To: CDT General developers list.
Subject: Re: [cdt-dev] Using ScannerInfoProvider and "Includes" project element
On Tue, Sep 17, 2013 at 12:41 PM, Joseph Henry <Joseph.Henry@xxxxxxx> wrote:
How does that work?
Could you give me an example of how to do this?
From:
cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx]
On Behalf Of Andrew Gvozdev
Sent: Tuesday, September 17, 2013 11:53 AM
To: CDT General developers list.
Subject: Re: [cdt-dev] Using ScannerInfoProvider and "Includes" project element
Hi Joseph,
LanguageSettingsProviders are designed to support entries per resource basis. If you have 1 resource that is different you can set the common entries on project level and different
set of entries for the specific resource.
On Tue, Sep 17, 2013 at 10:56 AM, Joseph Henry <Joseph.Henry@xxxxxxx> wrote:
I have an interesting problem that maybe somebody on this list could help me with.
We have a custom tool chain, and to put it simply, we are required to provide a ScannerInfoProvider implementation so that we can properly return IScannerInfo on a per resource
basis. We do this because 1 resource in a project can have a much different include path that another, so putting them all in the LanuageSettings was not acceptable.
With all this said, here is my problem:
Since we are not using the LanguageSettingProvider to give all the search include paths, the “Includes” project element does not show up any more. This is the UI element that you
can expand and see the include folders, and further expand to see the files, etc.
Is there any way that I can:
1.) Have this element use the search path that I return from my ScannerInfoProvider
2.) Append the paths in the Language Settings also. (I still want to have this work so that users have a way to manually specify search paths.)
Any help with this would be great. As far as I can tell, the Java class that somewhat control the contents of the Includes element is org.eclipse.cdt.internal.ui.cview.IncludeRefContainer.
Thanks,
Joseph Henry.
_______________________________________________
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