iDevGames Forums
Handy build rule tip for iPhone devs - Printable Version

+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: Tools & Technology (/forum-10.html)
+--- Thread: Handy build rule tip for iPhone devs (/thread-975.html)



Handy build rule tip for iPhone devs - Skorche - Jul 22, 2009 08:22 AM

Double click your app target and add a new custom rule under the rules tab like so:

[Image: screenshot_072209_102356.png]

Dunno how many of you work with PVRTC images, but this should save you a bit of time. Instead of generating the textures on the command line every time, just add the source image files (yes it even works with PSDs) to your project and it will generate them at build time if they are needed or need to be regenerated.


Handy build rule tip for iPhone devs - AnotherJake - Jul 22, 2009 04:16 PM

Hey, that's pretty slick Skorche, thanks!


Handy build rule tip for iPhone devs - Bachus - Jul 22, 2009 06:30 PM

That's pretty awesome. Is there a way to restrict it to certain files (without changing the filenames I suppose), like square textures without alpha channels?


Handy build rule tip for iPhone devs - Skorche - Jul 23, 2009 09:44 AM

Not directly no, but you could encode it as part of the name and match on that. The name filter is just a glob near as I could tell, so you could have "*-pvr.psd" as the filter. Then just tag the files you want compressed.