Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Mac > Mac Programmer > Re: Per-target ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 4 Topic 934 of 1040
Post > Topic >>

Re: Per-target names for Xcode stlib project

by SM Ryan <wyrmwif@[EMAIL PROTECTED] > Apr 9, 2007 at 10:03 PM

Steven Fisher <sdfisher@[EMAIL PROTECTED]
> wrote:
# How can I control the name of the output file of a static library 
# project on a per-configuration basis? I'm using Xcode 2.4.1.
# 
# I know the usual way is to use the same name in per-configuration 
# folders, but I am supposed to put everything in a single folder and use 
# a _d suffix on debug executables. If it can't be done, fine, but I'd 
# like to make sure it can't be done before I say that. :)

I'm not sure, but perhaps in the Project Info >> Build, add
a new variable, say librarysuffix, and give it different values
like "_d" or "" in different configurations. Then in the target
Info >> Build >> Product Name, use the variable in the value,
such as stlib$(librarysuffix). I haven't done this specifically,
so I'm not sure if it will work.

You can also add a script phase and refer to $librarysuffix, such as
	cp libsomething.a libsomething$librarysuffix.a

--
SM Ryan http://www.rawbw.com/~wyrmwif/
Don't say anything. Especially you.
 




 4 Posts in Topic:
Per-target names for Xcode stlib project
Steven Fisher <sdfishe  2007-04-09 20:57:54 
Re: Per-target names for Xcode stlib project
SM Ryan <wyrmwif@[EMAI  2007-04-09 22:03:41 
Re: Per-target names for Xcode stlib project
Steven Fisher <sdfishe  2007-04-10 00:32:51 
Re: Per-target names for Xcode stlib project
Sherm Pendley <spamtra  2007-04-09 18:47:41 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Dec 5 7:40:41 CST 2008.