• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Per-Target Copy Files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Per-Target Copy Files


  • Subject: Re: Per-Target Copy Files
  • From: Steve Christensen <email@hidden>
  • Date: Tue, 11 Jul 2006 12:33:19 -0700

Actually, CodeWarrior does have multiple targets per project; it just doesn't support multiple configurations per target. I handled this with separate targets if I had to, say, create both debug and release builds.

I'm coming into this thread a little late, but if you're trying to copy different files on a per-TARGET basis, why isn't that simply part of a target's copy phase? If you're trying to copy files to a single target but for different configurations, then using a script would be a better idea.

steve


On Jul 11, 2006, at 9:08 AM, Finley Lee wrote:

Thanks for the suggestion. I played around with using a script, but in
the end I decided to create separate targets for my demo and retail
versions.


I'm used to Codewarrior, which doesn't have separate configurations and
targets. I actually think the XCode way is superior, now that I have my
brain wrapped around it :).


Best regards,

Finley Lee

-----Original Message-----
From: Aaron Montgomery [mailto:email@hidden]
Sent: Monday, July 10, 2006 2:04 PM
To: Finley Lee
Cc: email@hidden
Subject: Re: Per-Target Copy Files


On Jul 10, 2006, at 9:05 AM, Finley Lee wrote:

What's the recommended way to copy different files to a location in
the bundle based on the selected target?
If this is really a target setting, then adding a Run Shell Script
phase to that target might work.

I prefer to put the script in an external file and run the same shell
script in all targets and use environment variables to determine the
needed information, for example ${CONFIGURATION} and ${TARGET_NAME}
seem useful in your situation. You can determine what variables are
being set by looking at the Build Log (it is probably documented
somewhere, but I was too lazy to go seek it out).

The script might have lines looking something like:
if [ "${TARGET_NAME}" = 'Demo' ]; then
#	blah blah blah
fi

I am interested in what others do as well.

_______________________________________________ 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
References: 
 >RE: Per-Target Copy Files (From: "Finley Lee" <email@hidden>)

  • Prev by Date: Re: FileMerge ineffective comparisons
  • Next by Date: multiple definitions warnings when compiling universal
  • Previous by thread: RE: Per-Target Copy Files
  • Next by thread: bracket-matching
  • Index(es):
    • Date
    • Thread