[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [cdt-dev] Mozilla now has built-in support for CDT project generation
|
Note, that there is an official API to postpone the indexer for a project:
IIndexManager.addIndexerSetupParticipant(...)
Markus.
-----Original Message-----
From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Benoit Girard
Sent: Fri, 24. 10. 2014 19:24
To: elaskavaia.cdt@xxxxxxxxx; CDT General developers list.
Subject: Re: [cdt-dev] Mozilla now has built-in support for CDT project generation
Here's how it's done:
http://mxr.mozilla.org/mozilla-central/source/python/mozbuild/mozbuild/backend/cpp_eclipse.py#125
I disable the indexer by writing to
'.settings/org.eclipse.cdt.core.prefs', I import the project using 'org.eclipse.cdt.managedbuilder.core.headlessbuild' and restore the indexer.
If we see breakage from time to time I'll contribute a patch. I'm hoping to get the indexer closer to 100% first.
On Fri, Oct 24, 2014 at 12:06 PM, Alena Laskavaia <elaskavaia.cdt@xxxxxxxxx> wrote:
> Are you calling cdt command line application to import the project?
> There is a way to hold off indexer before project build is complete,
> but it is java programmatic API. But if you want to contribute to CDT
> it may be easier to do what you want from CDT and just add extra
> arguments to existing application (command line entry to CDT)
>
> On Fri, Oct 24, 2014 at 11:54 AM, Benoit Girard <bgirard@xxxxxxxxxxx> wrote:
>>
>> Sorry if this doesn't pertain directly to cdt-dev. I was told this
>> list might be interested in knowing this since I heard the CDT is
>> tested against mozilla-central from time to time.
>>
>> This week the last piece of the CDT project generation was merged in
>> the mozilla repo. This means that you can generate a project for
>> gecko and launch eclipse using only the following commands:
>> hg pull https://hg.mozilla.org/mozilla-central
>> ./mach ide eclipse
>>
>> This gives an 90-95% working indexer. Most of the problems are
>> because our project generation is incomplete and a few issues is the
>> indexer doesn't handle the fancy (i.e. hacky) #include tricks we use.
>>
>> Writing the project generator took me about 10-15 hours but it feels
>> very hacky and fragile. My process was modifying options through the
>> CDT and watching diffs to the setting/XML files. I wish there was a
>> better way generate and import build settings. The most challenging
>> part was automating the import a project to the workspace without
>> indexing it. The generator is here:
>>
>> http://mxr.mozilla.org/mozilla-central/source/python/mozbuild/mozbuil
>> d/backend/cpp_eclipse.py
>>
>> If anyone has any suggestions from the CDT side for improving this or
>> making this more robust, we would be interested to hear.
>>
>> - Benoit
>> _______________________________________________
>> cdt-dev mailing list
>> cdt-dev@xxxxxxxxxxx
>> To change your delivery options, retrieve your password, or
>> unsubscribe from this list, visit
>> https://dev.eclipse.org/mailman/listinfo/cdt-dev
>
>
>
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or
> unsubscribe from this list, visit
> https://dev.eclipse.org/mailman/listinfo/cdt-dev
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/cdt-dev