2007-12-06 18:54:24 +03:00
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
#
|
|
|
|
# Part of Equinox Desktop Environment (EDE).
|
|
|
|
# Copyright (c) 2000-2007 EDE Authors.
|
|
|
|
#
|
|
|
|
# This program is licensed under terms of the
|
|
|
|
# GNU General Public License version 2 or newer.
|
|
|
|
# See COPYING for details.
|
|
|
|
|
|
|
|
SubDir TOP datas icon-themes ;
|
|
|
|
|
2007-12-07 20:01:22 +03:00
|
|
|
# ConvertIconTheme [icon-theme-name] : [icon-sizes] : [icon-categories] ;
|
|
|
|
# Mass conversion of scalable (.svg) icon theme to .png one. Make sure directory
|
|
|
|
# that will be converted contains 'scalable' directory with .svg icons
|
|
|
|
rule ConvertIconTheme
|
|
|
|
{
|
|
|
|
local size category ;
|
|
|
|
for size in $(2) {
|
2008-06-02 15:51:41 +04:00
|
|
|
local sname = "$(size)x$(size)" ;
|
2007-12-07 20:01:22 +03:00
|
|
|
for category in $(3) {
|
2008-06-02 15:51:41 +04:00
|
|
|
SvgToPngDirectory [ FDirName $(1) $(sname) $(category) ] : [ FDirName $(1) scalable $(category) ] : $(size) ;
|
2007-12-07 20:01:22 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
# let 'jam clean' removes created directories since SvgToPngDirectory will remove
|
|
|
|
# only deepest, e.g. '16/actions' will be removed only 'actions'; here '16' will be removed too
|
2008-06-02 15:51:41 +04:00
|
|
|
CleandirSafe clean : [ FDirName $(1) $(sname) ] ;
|
2007-12-07 20:01:22 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# InstallIconTheme [icon-theme-name] : [icon-sizes] : [icon-categories] ;
|
|
|
|
# Installs icon theme
|
|
|
|
rule InstallIconTheme
|
|
|
|
{
|
|
|
|
local size category icon_list directory ;
|
|
|
|
|
|
|
|
for size in $(2) {
|
2008-06-02 15:51:41 +04:00
|
|
|
local sname = "$(size)x$(size)" ;
|
2007-12-07 20:01:22 +03:00
|
|
|
for category in $(3) {
|
2008-06-02 15:51:41 +04:00
|
|
|
directory = [ FDirName $(1) $(sname) $(category) ] ;
|
2007-12-07 20:01:22 +03:00
|
|
|
icon_list = [ Wildcard $(directory) : *.png : $(directory) ] ;
|
|
|
|
InstallEdeIcons $(directory) : $(icon_list) ;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# install index.theme
|
|
|
|
InstallData [ FDirName $(EDEICONDIR) $(1) ] : [ FFileName $(1) index.theme ] ;
|
|
|
|
}
|
|
|
|
|
2007-12-06 18:54:24 +03:00
|
|
|
ICON_SIZES = 16 22 32 48 64 128 ;
|
2007-12-07 20:01:22 +03:00
|
|
|
ICON_CATEGORIES = actions apps categories devices emblems mimetypes places status ;
|
2007-12-06 18:54:24 +03:00
|
|
|
|
2007-12-07 20:01:22 +03:00
|
|
|
# only convert them when jam -sBUILD_ICON_THEMES=1 is given
|
|
|
|
# this will reduce jam's startup time
|
|
|
|
if $(BUILD_ICON_THEMES) = 1 {
|
|
|
|
ConvertIconTheme "edeneu" : $(ICON_SIZES) : $(ICON_CATEGORIES) ;
|
2008-06-02 15:51:41 +04:00
|
|
|
InstallIconTheme "edeneu" : $(ICON_SIZES) : $(ICON_CATEGORIES) ;
|
2007-12-06 18:54:24 +03:00
|
|
|
}
|