• 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: Multiple targets in a project
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiple targets in a project


  • Subject: Re: Multiple targets in a project
  • From: Shaun Wexler <email@hidden>
  • Date: Sat, 28 Feb 2004 14:54:12 -0800

On Feb 28, 2004, at 2:37 PM, Rick Jansen wrote:

I'd like to have different applications built from within one
project. Much of the source code is the same, but there are
slight differences here and there. I can create a new target
in a project.

Now what is the common way to actually direct the compiler to use
the different code? Do you put some compiler directive somewhere
that you query with #IFDEF's to #import different .h files and such?
Or are there better ways to do this in Xcode?

FFR, this question is better suited for email@hidden.

In each app target's build settings, declare a different precomp file, and add your flag to Preprocessor Macros, so you can use #ifdef; the flag will be visible to in all files in the app.
--
Shaun Wexler
MacFOH
http://www.macfoh.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Multiple targets in a project (From: Rick Jansen <email@hidden>)

  • Prev by Date: Multiple targets in a project
  • Next by Date: Saving NSViews
  • Previous by thread: Multiple targets in a project
  • Next by thread: Saving NSViews
  • Index(es):
    • Date
    • Thread