[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [cdt-dev] Custom make target and project building
|
- From: Sten Gruener <sten.gruener@xxxxxxxxx>
- Date: Fri, 29 Jun 2012 17:03:33 +0200
- Delivered-to: cdt-dev@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=OdJYU+BX5ulUd1rcN9j8mFNqVUmJcUMGUJAu1vZ8HmI=; b=OgGRxSQVfT/gVxBD2YBR4KaBu0LIWLF5w8VmavXS3YVJM2bEjoTdWqw1zZMCcJycS2 ucZ0DUWbwIWOrtNEimULmjtwCLWfPvrK0aOxJUIyvzOPukB9zzc+852tjeE1D7kl45yC haixApz7u5Tq+7Sb3N2HX/Mye+ctEvfK1vQLyS3UTfooQzXXXbZzGGDfPCRediUNuGbu N3aLe3dgWGfFlqMOZXZ2NFuzPd4qfEkprzuepmQOwUXAfgNvDlWZEC5neBvCTy+MfCJA K7S94WCFGOoJ6DfILX0EPRjTQKkmlpkIu51Bn9xL5L6KtIO/zlRpqL02bm1z3oTAqDGI E6Rw==
Thanks Andrew, but, how do I then start a build on the new target?
Regards, Sten
On 29 June 2012 15:56, Andrew Gvozdev <angvoz.dev@xxxxxxxxx> wrote:
> Hi Sten,
> We generate make targets during creation of a new project in our own wizard
> contributed pretty much for this purpose. You can see the code for
> generating targets on
> http://wiki.eclipse.org/CDT/Developer/FAQ#How_to_add_new_make_targets_in_the_.22Make_Target.22_view.3F.
>
> Thanks,
> Andrew
>
> On Fri, Jun 29, 2012 at 9:40 AM, Sten Gruener <sten.gruener@xxxxxxxxx>
> wrote:
>>
>> Hello,
>>
>> i am building a plugin which extends CDT.
>>
>> We have three make targets: 'all', 'clean' and 'generate'. The normal
>> used targets are clean and all, they work fine
>>
>> So, I would like to call "make generate" if some files are saved.
>>
>> The dirty plan was to change the clean target to 'generate' and then
>> call project.build(IncrementalProjectBuilder.CLEAN_BUILD, null);. I
>> need to use builder system in order to get some nice syntax
>> highlighting on errors.
>>
>> I ran into 2 problems:
>>
>> 1) I can not find the place to modify the clean command
>> 2) Running project.build(IncrementalProjectBuilder.CLEAN_BUILD, null);
>> works fine for the first time, but lets eclipse hang and become
>> inaccessible on the second time. Is it a race condition?
>>
>> What is a clean way of solving this problem?
>>
>> Thank you very much
>> Sten
>> _______________________________________________
>> 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
>