Re: Source code generation in Xcode 4
Re: Source code generation in Xcode 4
- Subject: Re: Source code generation in Xcode 4
- From: Jean-Denis MUYS <email@hidden>
- Date: Fri, 09 Sep 2011 16:35:30 +0000
- Thread-topic: Source code generation in Xcode 4
I am also very interested in knowing about that. As far as I understand, custom build rules work fine when there is a one-to-one correspondence between an "exotic" source file and a produced C{++} source file, as in:
metadescription.xyz -------> metadescription.m
But, despite many hours spent trying, I failed to express a custom build rules where metadescription.xyz produces a *set* of source files, whose names are not fixed in advance and depend on the metadescription.
To give some context, my case is about mogenerator, where the metadescription is the Core Data model, and the generated source files are Objective-C classes for each Core Data entity.
I would love to see a toy example showing how to express that for Xcode 4.
Thanks,
Jean-Denis
On 9 sept. 2011, at 16:58, Jonny Yu wrote:
> I would try adding a custom build rule.
> It's a way to let Xcode know how to process your meta file. This is how Xcode supports build lex and yacc file.
> Check Xcode build system guide for details.
>
> Sent from my iPhone
>
> On 2011-9-9, at 下午8:04, Pavel Shevaev <email@hidden> wrote:
>
>> Hi!
>>
>> I'm Xcode 4 newbie and I have a project where a large amount of C++
>> code is auto generated into multiple files from some meta
>> descriptions.
>>
>> How do I make Xcode 4 automatically add these files into the project
>> and thus compile them whenever happens the new build? I believe it has
>> something to do with custom build phases and shell scripting. However
>> all could find was resources related(copy this resource to the bundle,
>> etc).
>>
>> --
>> Best regards, Pavel
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Xcode-users mailing list (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden