Hottest Free Downloads - DownloadPipe.com Over 197,000 downloads! Bookmark Now!
DownloadPipe.com - New Downloads Every Minute
 SEARCH:
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Per-target names for Xcode stlib project

 
   Mac (Home) -> General Discussion RSS
Next:  What happened to XCode "Find in API" fo..  
Author Message
Steven Fisher

External


Since: Oct 24, 2005
Posts: 165



(Msg. 1) Posted: Mon Apr 09, 2007 8:57 pm
Post subject: Per-target names for Xcode stlib project
Archived from groups: comp>sys>mac>programmer>misc (more info?)

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. Smile
Back to top
Login to vote
Sherm Pendley

External


Since: Dec 12, 2006
Posts: 27



(Msg. 2) Posted: Mon Apr 09, 2007 8:57 pm
Post subject: Re: Per-target names for Xcode stlib project [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Steven Fisher <sdfisher RemoveThis @spamcop.net> writes:

> 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.

That's called a "Build Variant". Get info on your target, and choose the
"build" pane. In the "Build Options" collection you'll find the "Build
Variants" entry. Whatever you enter there (aside from "normal") will be
appended to your library name. So entering "d" will give you a library
named libfoo_d.dylib.

sherm--

--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net
Back to top
Login to vote
SM Ryan

External


Since: Aug 18, 2005
Posts: 16



(Msg. 3) Posted: Mon Apr 09, 2007 10:03 pm
Post subject: Re: Per-target names for Xcode stlib project [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Steven Fisher <sdfisher DeleteThis @spamcop.net> 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. Smile

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.
Back to top
Login to vote
Steven Fisher

External


Since: Oct 24, 2005
Posts: 165



(Msg. 4) Posted: Tue Apr 10, 2007 12:32 am
Post subject: Re: Per-target names for Xcode stlib project [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <131le1tdg71ca3b RemoveThis @corp.supernews.com>,
SM Ryan <wyrmwif RemoveThis @tango-sierra-oscar-foxtrot-tango.fake.org> wrote:

> 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.

Yes! This is immensely helpful. Thank you. Smile
Back to top
Login to vote
Display posts from previous:   
Related Topics:
XCode and Dynamic Linking - I'm totally new to XCode and I can't for the life of me figure out how to get my binary to link against a dynamlic library. I have a very simple ncurses program: #include <ncurses.h> int main() { initscr(); addch('o'); refresh(); ....

Porting rfom CW8.3 to Xcode problem - Hi, There! I've ported some sources of project to XCode, but when I trying to launch in debbuger GetCursor returns NULL, I've learned that it deprecated now... I think this is a problem with resources - still using *.r files. Is that code have to be..

GetDiskFragment 2806 problem. XCode porting... - In old CW project I had shared library with resources, now I remade it and got dylib in XCode. In program I trying to load it with GetDiskFragment, to load one necessary function from dylib as from shared library: if ((err = FSMakeFSSpec(0, 0, (unsigne...

What happened to XCode "Find in API" for Java - I seem to remember being impressed with the ProjectBuilder's ability to find the latest Java documentation on Sun's web site. Maybe it was the first XCode. In any case, I haven't used XCode for a while, and after the Feb 6 RefLib update, the Java..

[BINDINGS] NSTableView vs. NSUserDefaultsController - I've already posted the following message to Apple's cocoa-dev mailing list, so if you subscribe to that list or are a regular reader of CocoaBuilder.com, you've already seen this. I'm posting here since I've appeared to have violated list..
       Mac (Home) -> General Discussion All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum
Categories:
 Windows Forums
 Game Forums
 Linux Forums
  Mac Forums
 PDA Forums
 Mobile Forums
  Top  |  Store  |  RSS Feeds RSS  |  Data Feeds  |  Advertise  |  Submit  |  Bookmark  |  Newsletter  |  Contact