• 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
passing name of target to executable?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

passing name of target to executable?


  • Subject: passing name of target to executable?
  • From: Jamie Zawinski <email@hidden>
  • Date: Thu, 2 Feb 2006 02:18:10 -0800

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.

It turns out that XCode sets both $TARGET_NAME and $PRODUCT_NAME to "PluginRunner", even though that's only the Executable, not the Target, so that's not the answer...

This is XCode 2.2.

--
Jamie Zawinski       email@hidden                  http://www.jwz.org/
                    email@hidden      http://www.dnalounge.com/
                                         http://jwz.livejournal.com/



_______________________________________________
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


  • Follow-Ups:
    • Re: passing name of target to executable?
      • From: Scott Tooker <email@hidden>
  • Prev by Date: Re: Linking Problem with 10.3.9 sdk
  • Next by Date: converting / reading input arguments as utf8
  • Previous by thread: GCC 4 warnings / XCode 2.2.1
  • Next by thread: Re: passing name of target to executable?
  • Index(es):
    • Date
    • Thread