Re: How to set executable/product name by compiler switch?
Re: How to set executable/product name by compiler switch?
- Subject: Re: How to set executable/product name by compiler switch?
- From: Alexander Bokovikov <email@hidden>
- Date: Fri, 8 Jan 2010 21:00:13 +0500
On 08.01.2010, at 19:01, Roland King wrote:
Your original mail was quite short so may I just ask if I have this
right. You have a bunch of #ifdef _CUSTOM_VER in the code of your
application and you set this (or not) in your pch file and you want
the build product to be one thing if the macro is set, and one if it
is not set. Is that correct?
I believe, yes.
It would be the ideal result if I'll get two applications (MyApp1.app
and MyApp2.app) after each "cmd+B" pressing. AFAIU, you tell you know
how to do it. Though I'm not so advanced in XCode, I never dealt with
multi-target / multi-config projects. Generally speaking I'm creating
my first real project in XCode now.
Multi-target approach is less suitable in this case, as it requires to
switch target manually. I can agree that it's yet useful for Debug,
but as for Release, I'd prefer to get both applications at once,
because there is nothing to change manually to produce one or another
version. All differences are already defined in the code by #ifdef
clauses, and it's supposed that all bugs are fixed at the Debug stage.
If so, Ken is giving you I think good advice and will actually be
easier to implement. Currently if you want to build app1 you have to
go edit your code and undefine the line, and if you want to build
app2, you have to edit the code and put it back, and you still can't
at this point automate the building of two different products.
I agree that automatic building of two products one-by-one is a good
idea. But I still don't see where and what to write. In particular, I
have no idea on where should I add these extra options. Should I
create yet another product item in my project? How to do it? What to
click exactly? Could you please explain it in a step-by-step manner?
On 08.01.2010, at 19:43, Jeremy Pereira wrote:
-D
To define _CUSTOM_VER
Thanks for this particular info, but I'm still in a misunderstanding
about what does it mean "create two configurations",
as it was suggested. This is the main unclear aspect for me now.
Thank you for your help!
Best regards,
Alex
_______________________________________________
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