• 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
Included .rsrc dependencies ignored
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Included .rsrc dependencies ignored


  • Subject: Included .rsrc dependencies ignored
  • From: Allen Cronce <email@hidden>
  • Date: Mon, 27 Mar 2006 15:41:14 -0800

Hi all,

It looks like Rez dependencies don't extent to included .rsrc files. That is, if a .r file includes a .rsrc, and the .rsrc changes, the dependency is not seen, Rez does not run and the updated resources from the changed .rsrc file don't make it into the target. After searching this list it looks like other people have run into this, although it isn't clear how they worked around the problem.

Specifically in my case I've got a set of Xcode projects that generate a set of shared libraries, who's executables in turn get converted to resources for inclusion in another Xcode generated application. This mimics what we did with CodeWarrior prior to porting. It's a mechanism that predates packages, and changing it will be a pretty big pain.

The problem is that we have debug and release variants of the shared libraries and applications. I want the debug shlib resources to appear in the debug app, and the release resources in the release app.

At first I thought that maybe I could conditionally include one set of .rsrc files or another based on the build configuration. But I can't figure out how to do that. It looks like I'd have to make debug and release targets, which flies in the face of the build configuration approach.

So I tried including the "right" set of resources via a conditional in a .r file that includes either the debug or release .rsrc files. But that doesn't work reliably because changes made in a shared library and subsequent generated .rsrc file don't fire the rez dependancy, so they don't make it into the app.

And I don't want to always touch the .r file because that will mean an endless stream of meaningless check in's to our source code control system. I guess I could auto generate the .r file and add a .cvsignore to prevent it from going into CVS. But I'd have to stop vomiting first ;-)

Anyway, I'm hoping that I've missed something here and that there's an easy way to get Xcode to pull in any changed .rsrc files on a per build config basis.

Suggestions?

Best,
--
Allen Cronce


_______________________________________________ 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: Included .rsrc dependencies ignored
      • From: Chris Espinosa <email@hidden>
  • Prev by Date: Re: Variable Area Gone in Debugger WIndow
  • Next by Date: Test: Please Ignore
  • Previous by thread: Re: Variable Area Gone in Debugger WIndow
  • Next by thread: Re: Included .rsrc dependencies ignored
  • Index(es):
    • Date
    • Thread