Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: passing name of target to executable?



Jamie - as a workaround  - you might have already considered this - consider adding redundant "Custom Executables" to your project, each of which points at the built product but contains different arguments/env vars.

Daniel

On Feb 2, 2006, at 2:35 PM, Scott Tooker wrote:

Right now there is no easy way to do this. I'd file a bug request asking for an $ACTIVE_TARGET read-only build setting.


Scott



On Feb 2, 2006, at 2:18 AM, Jamie Zawinski wrote:


Is there some way to pass the name of the active target to the active executable?


I've got project that includes a set of plugins, and a plugin-runner.


I'd like to set my Active Target to "Plugin1" and my Active Executable to "PluginRunner" and have it that when I do "Build and Run", XCode builds "Plugin1" and then launches "PluginRunner" with the argument "Plugin1" on the command line.  And then if I switch the active target to "Plugin2", it should pass that on the command line instead.


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden

References: 
 >passing name of target to executable? (From: Jamie Zawinski <email@hidden>)
 >Re: passing name of target to executable? (From: Scott Tooker <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.