[haiku-development] Add Icons To Image

Ingo,

Thanks for that. It worked, but only without the 'BSG=artwork-icon' line. What is that line supposed to do?

Regards
Simon

Ingo Weinhold wrote:
On 2008-03-12 at 09:11:32 [+0100], Simon Kennedy <sffjunkie@xxxxxxxxxxx> wrote:
How can I add the icon files to the generated image.

I thought I may have been able to add artwork/icons to a
'AddDirectoryToHaikuImage' line in a UserBuildConfig but this only
creates the directory, it does not appear to copy the files within that
directory.

A way to add the contents of a directory to the image is to those files individually via the AddFilesToHaikuImage rule. You'll either need to list the files explicitly, or you can use the Glob jam rule to collect them. E.g. for data/artwork/icons it would work like this:

iconDir = [ FDirName $(HAIKU_TOP) data artwork icons ] ;
iconFiles = [ Glob $(iconDir) : [a-zA-Z]* ] ;
iconFiles = $(iconFiles:BSG=artwork-icon) ;
SEARCH on $(iconFiles) = $(iconDir) ;

AddFilesToHaikuImage home Desktop icons : $(iconFiles) ;




                
___________________________________________________________ Try the all-new Yahoo! Mail. "The New Version is radically easier to use" ? The Wall Street Journal http://uk.docs.yahoo.com/nowyoucan.html


Other related posts: