Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Settings parser on multiple projects

Hi Andrew,

 

I’m using CDT to work on the android source tree.

 

The single project setup is working out of the box, it has two disadvantages:

·         Too big (~400K files)

·         Egit does not recognise the git repositories as they are subdirectories of the project

 

I do not need the whole code actually, and I would prefer to import some selected git repositories as separate CDT projects (one project per repository).

 

For what I could see the android build system works from a single base makefile at the root of the source tree so that I could not find an easy/reliable way to build the single git repositories.

 

So my idea is to have one project that triggers the whole build and then feed the parsing results to the other projects.

 

Cheers

Fabrizio

 

From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Andrew Gvozdev
Sent: Tuesday, September 10, 2013 4:57 PM
To: CDT General developers list.
Subject: Re: [cdt-dev] Settings parser on multiple projects

 

Hi Fabrizio,

I think CDT should be able to handle that kind of things through setup. But the organization of your workspace is not clear to me. You are saying that you have the whole source tree as a single project and you ran build output parser on it. What do you have in the other projects and why running their own parsers on their own build output is not enough?

 

Thanks,

Andrew

 

On Tue, Sep 10, 2013 at 4:37 AM, Iannetti, Fabrizio <fabrizio.iannetti@xxxxxxxxx> wrote:

Hi Andrew,

 

Thanks, yes, that makes sense.

I have now imported the whole AOSP source tree as a single project and CDT does an excellent job at getting compilation settings from the build output J.

The only downside is that with this setup EGit does not recognise the files as being under version control (and the project is really massive: just refreshing the resource tree takes a long time on a really fast machine…).

 

So I’ll stick with this setup and in background I’ll try to get the one with multiple projects working.

 

I’m now thinking to write a specific  SettingsProvider (based on the GCC output parser) that feeds the same settings to each project that uses it.

This way when a build is triggered its output is parsed and each project would take the bits related to its own files.

 

Do you think this is a sensible approach?

 

Cheers

Fabrizio

 

 

From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Andrew Gvozdev
Sent: Monday, August 19, 2013 3:03 PM
To: CDT General developers list.
Subject: Re: [cdt-dev] Settings parser on multiple projects

 

Hi Fabrizio,

Yes, it works as intended. I don't know if assumptions for a different project would be reliable. If the same file gets compiled from different projects compiler options could be different as well.

 

Thanks,

Andrew

 

On Mon, Aug 19, 2013 at 6:57 AM, Iannetti, Fabrizio <fabrizio.iannetti@xxxxxxxxx> wrote:

Hi,

 

Is the settings parser supposed to add settings also to files belonging to other projects than the one being built?

 

The AbstractLanguageSettingsOutputScanner class seems to search for files in the whole workspace and indeed

in my test workspace they are found, but the settings are not attached to the files outside the project that triggered

the build.

 

Thanks

Fabrizio

 


_______________________________________________
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

 


Back to the top