From e5b1a7d4237a9006b6c49c9c1c13b292ca4ecf7c Mon Sep 17 00:00:00 2001 From: Teruaki Kawashima Date: Sun, 21 Nov 2010 13:47:56 +0000 Subject: FS#6321: Universal Image Viewer This unifies jpeg viewer, png viewer, and bmp viewer to one plugin, image viewer, so that you can navigate through different image formats. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28626 a1c6a512-1295-4272-9138-f99709370657 --- tools/buildzip.pl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'tools/buildzip.pl') diff --git a/tools/buildzip.pl b/tools/buildzip.pl index 62413acd30..a3c0172773 100755 --- a/tools/buildzip.pl +++ b/tools/buildzip.pl @@ -470,8 +470,11 @@ STOP find(find_copyfile(qr/\.(rock|ovl|lua)/, abs_path("$temp_dir/rocks/")), 'apps/plugins'); - open VIEWERS, "$ROOT/apps/plugins/viewers.config" or - die "can't open viewers.config"; + # exclude entries for the image file types not supported by the imageviewer for the target. + my $viewers = "$ROOT/apps/plugins/viewers.config"; + my $c="cat $viewers | gcc $cppdef -I. -I$firmdir/export -E -P -include config.h -"; + + open VIEWERS, "$c|" or die "can't open viewers.config"; my @viewers = ; close VIEWERS; -- cgit v1.2.3