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.
|
|
|
|
|
2008-09-04 14:16:55 +04:00
|
|
|
SubDir TOP data icon-themes ;
|
2007-12-06 18:54:24 +03:00
|
|
|
|
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
|
2009-04-22 15:00:57 +04:00
|
|
|
InstallData [ FDirName $(EDE_ICON_DIR) $(1) ] : [ FFileName $(1) index.theme ] ;
|
2007-12-07 20:01:22 +03:00
|
|
|
}
|
|
|
|
|
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
|
|
|
}
|
2009-10-09 19:17:08 +04:00
|
|
|
|
|
|
|
# install kbflags icons
|
|
|
|
KBFLAGS_ICONS_DIR = [ FDirName "kbflags" "21x14" ] ;
|
|
|
|
KBFLAGS_ICONS = [ Wildcard $(KBFLAGS_ICONS_DIR) : *.png : $(KBFLAGS_ICONS_DIR) ] ;
|
|
|
|
|
|
|
|
InstallEdeIcons $(KBFLAGS_ICONS_DIR) : $(KBFLAGS_ICONS) ;
|