Re: Resend:Targets & styles question
Re: Resend:Targets & styles question
- Subject: Re: Resend:Targets & styles question
- From: Scott Tooker <email@hidden>
- Date: Mon, 26 Jan 2004 16:36:57 -0800
A small thing, but in the build style it is better to use
$(value)_whatever
for the "Product Name" value.
'$(value)' always maps to the "previous level's" value for the build
setting (in this case the target). Using $(value) means you don't have
to guess or figure out the acutal build setting name.
Scott
On Jan 23, 2004, at 12:58 AM, James Conway wrote:
> Wade,
>
>> I'm trying to replicate that in Xcode. In Xcode, it appears the
>> thing to do is use one target, and build styles. However, I'd really
>> like the application to be named differently if I'm building the
>> debug version - I don't want to take any chances on forgetting to
>> change a build style and sending out a debug version.
>
> I found it to work (by trying on a whim) as follows:
>
> Set the 'base' product name in the "Target Info", ie, select the
> target, get info, choose the "Build" tab, check that the "Product
> Name" is set as you want. For example, "MyProgram"
>
> Set the build-style product name in the "Project Info" build-style
> (select the project, usually at the top of the "Groups & Files" list,
> get info, choose the "Styles" tab) as:
> $(PRODUCT_NAME)_whatever
>
> So, for the development build style, to get MyProgram_debug use
> $(PRODUCT_NAME)_debug
>
> For a g5-optimized build style, to get MyProgram_g5, use
> $(PRODUCT_NAME)_g5
>
> as you want.
>
> Note that the updated product name *may* show up in the "Groups &
> Files" list, "Products" group according to your setting. Its a useful
> reminder which build-style is active. This happens on one Mac I use,
> but not right now on the other - I have no idea why. You will also see
> the "Product Name" crossed out in the "Target Info" because it has
> been superseded in the build style.
>
> I hope this is helpful. If there is a better way, I would be
> interested to know.
>
> James Conway
> ----------------------------------------------------------------------
> James Conway, PhD.,
> Laboratoire de Microscopie Electronique Structurale,
> Institut de Biologie Structurale,
> 41 rue Jules Horowitz,
> 38027 Grenoble, Cedex 1,
> France.
> Telephone: +33-(0)438-782058
> Fax: +33-(0)438-785494
> Email: email@hidden
> ----------------------------------------------------------------------
> _______________________________________________
> xcode-users mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/xcode-users
> Do not post admin requests to the list. They will be ignored.
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.