Iconcache additions

Rivo Laks rivolaks at hot.ee
Fri Jul 20 17:12:33 CEST 2007


Hi

The attached patch adds KDE4_ICONS_INSTALLED macro which updates mtime of the 
hicolor icontheme directory, to make the icon cache update itself. It also 
makes the KDE4_INSTALL_ICONS macro use it.

On k-c-d it was suggested that this could be a generic FD.org macro, but I'm 
not sure where to put it in that case. Should another file be created in 
kdelibs/cmake/modules/? Or should it even go into cmake itself (in that case 
I believe we also have to ship a kde version of it though)?

As touch doesn't exist on windows, I create a temporary file in the theme dir 
there and then delete it. It should work but I haven't tested it, so if 
anyone could make sure it really does what it should, I'd appreciate it.

And finally, I'm open to renaming the macro if you have better ideas 
(KDE4_UPDATE_ICONCACHE?) ;-)

Rivo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmake-iconcache.diff
Type: text/x-diff
Size: 1914 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20070720/c657a542/attachment.bin 


More information about the Kde-buildsystem mailing list