Re: Header files get copied to app bundle?
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