• 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: Header files get copied to app bundle?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Header files get copied to app bundle?


  • Subject: Re: Header files get copied to app bundle?
  • From: James Bucanek <email@hidden>
  • Date: Thu, 9 Mar 2006 08:42:24 -0700

Keith Ray wrote on Thursday, March 9, 2006:

>does this affect dependency-tracking? (That is, if header X.h changes,
>then all .mm files depending on X.h will be recompiled?)

No, the fact that X.h is, or is not, a member of a target doesn't change the dependency relationship between X.h on X.mm. Dependency is calculated for X.mm by the compile sources build phase based on what files a compiled source file includes. If X.mm is a member of the build phase, Xcode determines what files it depends on (X.h, Y.h, Z.h, ...) and adds those its dependency list. In the future, if X.mm, X.h, Y.h or Z.h get touched then Xcode knows it needs to recompile X.mm.

If X.h were a member of copy files phase, then that copy files phase would be dependent on X.h. Any change to X.h would cause the copy files phase to run again on the next build. But this is completely independent (no pun intended) to the relationship of X.h to X.mm in the compile sources build phase.


James Bucanek
____________________________________________________________________
Author of Beginning Xcode                           ISBN: 047175479X
<http://www.beginningxcode.com/>           Available April 3rd, 2006
 _______________________________________________
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: Header files get copied to app bundle? (From: "Keith Ray" <email@hidden>)

  • Prev by Date: Re: upgrading open source software
  • Next by Date: Re: Sneaking build window collapsing
  • Previous by thread: Re: Header files get copied to app bundle?
  • Next by thread: Something strange
  • Index(es):
    • Date
    • Thread