Enable building WPSs and themes for charcell targets, and add an example WPS using special charcell progress and text alignment.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13015 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
5a69689188
commit
abd103c315
4 changed files with 24 additions and 16 deletions
|
@ -178,6 +178,7 @@ sub buildzip {
|
|||
}
|
||||
|
||||
mkdir ".rockbox/wps", 0777;
|
||||
mkdir ".rockbox/themes", 0777;
|
||||
mkdir ".rockbox/codepages", 0777;
|
||||
|
||||
if($bitmap) {
|
||||
|
@ -191,7 +192,6 @@ sub buildzip {
|
|||
|
||||
if($bitmap) {
|
||||
mkdir ".rockbox/codecs", 0777;
|
||||
mkdir ".rockbox/themes", 0777;
|
||||
if($depth > 1) {
|
||||
mkdir ".rockbox/backdrops", 0777;
|
||||
}
|
||||
|
|
|
@ -191,3 +191,8 @@ Foreground Color: 000000
|
|||
Background Color: FFC000
|
||||
Statusbar: on
|
||||
</wps>
|
||||
|
||||
<wps>
|
||||
Name: progressive.wps
|
||||
Author: Jens Arnold
|
||||
</wps>
|
3
wps/progressive.11x2x1.wps
Normal file
3
wps/progressive.11x2x1.wps
Normal file
|
@ -0,0 +1,3 @@
|
|||
#wps for the archos player with text alignment
|
||||
%s%pp/%pe: %?it<%it|%fn> - %?ia<%ia|%d2> - %?id<%id|%d1>
|
||||
%al%pc%ac%pb%ar%pt
|
|
@ -56,11 +56,9 @@ STOP
|
|||
else {
|
||||
print GCC <<STOP
|
||||
\#include "config.h"
|
||||
#ifdef HAVE_LCD_BITMAP
|
||||
Height: LCD_HEIGHT
|
||||
Width: LCD_WIDTH
|
||||
Depth: LCD_DEPTH
|
||||
#endif
|
||||
STOP
|
||||
;
|
||||
}
|
||||
|
@ -93,7 +91,7 @@ STOP
|
|||
return ($height, $width, $depth);
|
||||
}
|
||||
|
||||
sub mkdirs {
|
||||
sub mkdirs {
|
||||
my $wpsdir = $wps;
|
||||
$wpsdir =~ s/\.(r|)wps//;
|
||||
mkdir ".rockbox/wps", 0777;
|
||||
|
@ -132,20 +130,22 @@ sub copywps {
|
|||
}
|
||||
close(WPSFILE);
|
||||
|
||||
if (-e "$dir/$wps_prefix/$req_g") {
|
||||
foreach $file (@filelist) {
|
||||
system("cp $dir/$wps_prefix/$req_g/$file .rockbox/wps/$wps_prefix/");
|
||||
if ($#filelist >= 0) {
|
||||
if (-e "$dir/$wps_prefix/$req_g") {
|
||||
foreach $file (@filelist) {
|
||||
system("cp $dir/$wps_prefix/$req_g/$file .rockbox/wps/$wps_prefix/");
|
||||
}
|
||||
}
|
||||
}
|
||||
elsif (-e "$dir/$wps_prefix") {
|
||||
foreach $file (@filelist) {
|
||||
system("cp $dir/$wps_prefix/$file .rockbox/wps/$wps_prefix/");
|
||||
elsif (-e "$dir/$wps_prefix") {
|
||||
foreach $file (@filelist) {
|
||||
system("cp $dir/$wps_prefix/$file .rockbox/wps/$wps_prefix/");
|
||||
}
|
||||
}
|
||||
else {
|
||||
print STDERR "beep, no dir to copy WPS from!\n";
|
||||
}
|
||||
}
|
||||
else {
|
||||
print STDERR "beep, no dir to copy WPS from!\n";
|
||||
}
|
||||
|
||||
|
||||
} else {
|
||||
print STDERR "Skipping $wps - no matching resolution.\n";
|
||||
}
|
||||
|
@ -255,7 +255,7 @@ while(<WPS>) {
|
|||
$req_g = $rwidth . "x" . $rheight . "x" . $d;
|
||||
|
||||
$req_g_wps = $wps_prefix . "." . $req_g . ".wps";
|
||||
last if (-e "$wpsdir/$req_g_wps");
|
||||
last if (-e "$wpsdir/$req_g_wps");
|
||||
|
||||
if ($isrwps) {
|
||||
$req_g = $req_g . "." . $main_width . "x" . $main_height . "x" . "$main_depth";
|
||||
|
|
Loading…
Reference in a new issue