diff options
author | Jens Arnold <amiconn@rockbox.org> | 2007-04-04 06:26:53 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2007-04-04 06:26:53 +0000 |
commit | abd103c315540cbbb9897ae96985e756786c6ffd (patch) | |
tree | 889df7c4ee702d74fb02a9e5acd27c009e422749 /wps/wpsbuild.pl | |
parent | 5a6968918800d64062fa03deae530886aaa42db7 (diff) | |
download | rockbox-abd103c315540cbbb9897ae96985e756786c6ffd.tar.gz rockbox-abd103c315540cbbb9897ae96985e756786c6ffd.zip |
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
Diffstat (limited to 'wps/wpsbuild.pl')
-rwxr-xr-x | wps/wpsbuild.pl | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/wps/wpsbuild.pl b/wps/wpsbuild.pl index b33e70bf4a..46aa46eeb8 100755 --- a/wps/wpsbuild.pl +++ b/wps/wpsbuild.pl | |||
@@ -56,11 +56,9 @@ STOP | |||
56 | else { | 56 | else { |
57 | print GCC <<STOP | 57 | print GCC <<STOP |
58 | \#include "config.h" | 58 | \#include "config.h" |
59 | #ifdef HAVE_LCD_BITMAP | ||
60 | Height: LCD_HEIGHT | 59 | Height: LCD_HEIGHT |
61 | Width: LCD_WIDTH | 60 | Width: LCD_WIDTH |
62 | Depth: LCD_DEPTH | 61 | Depth: LCD_DEPTH |
63 | #endif | ||
64 | STOP | 62 | STOP |
65 | ; | 63 | ; |
66 | } | 64 | } |
@@ -93,7 +91,7 @@ STOP | |||
93 | return ($height, $width, $depth); | 91 | return ($height, $width, $depth); |
94 | } | 92 | } |
95 | 93 | ||
96 | sub mkdirs { | 94 | sub mkdirs { |
97 | my $wpsdir = $wps; | 95 | my $wpsdir = $wps; |
98 | $wpsdir =~ s/\.(r|)wps//; | 96 | $wpsdir =~ s/\.(r|)wps//; |
99 | mkdir ".rockbox/wps", 0777; | 97 | mkdir ".rockbox/wps", 0777; |
@@ -132,20 +130,22 @@ sub copywps { | |||
132 | } | 130 | } |
133 | close(WPSFILE); | 131 | close(WPSFILE); |
134 | 132 | ||
135 | if (-e "$dir/$wps_prefix/$req_g") { | 133 | if ($#filelist >= 0) { |
136 | foreach $file (@filelist) { | 134 | if (-e "$dir/$wps_prefix/$req_g") { |
137 | system("cp $dir/$wps_prefix/$req_g/$file .rockbox/wps/$wps_prefix/"); | 135 | foreach $file (@filelist) { |
136 | system("cp $dir/$wps_prefix/$req_g/$file .rockbox/wps/$wps_prefix/"); | ||
137 | } | ||
138 | } | ||
139 | elsif (-e "$dir/$wps_prefix") { | ||
140 | foreach $file (@filelist) { | ||
141 | system("cp $dir/$wps_prefix/$file .rockbox/wps/$wps_prefix/"); | ||
142 | } | ||
138 | } | 143 | } |
139 | } | 144 | else { |
140 | elsif (-e "$dir/$wps_prefix") { | 145 | print STDERR "beep, no dir to copy WPS from!\n"; |
141 | foreach $file (@filelist) { | ||
142 | system("cp $dir/$wps_prefix/$file .rockbox/wps/$wps_prefix/"); | ||
143 | } | 146 | } |
144 | } | ||
145 | else { | ||
146 | print STDERR "beep, no dir to copy WPS from!\n"; | ||
147 | } | 147 | } |
148 | 148 | ||
149 | } else { | 149 | } else { |
150 | print STDERR "Skipping $wps - no matching resolution.\n"; | 150 | print STDERR "Skipping $wps - no matching resolution.\n"; |
151 | } | 151 | } |
@@ -255,7 +255,7 @@ while(<WPS>) { | |||
255 | $req_g = $rwidth . "x" . $rheight . "x" . $d; | 255 | $req_g = $rwidth . "x" . $rheight . "x" . $d; |
256 | 256 | ||
257 | $req_g_wps = $wps_prefix . "." . $req_g . ".wps"; | 257 | $req_g_wps = $wps_prefix . "." . $req_g . ".wps"; |
258 | last if (-e "$wpsdir/$req_g_wps"); | 258 | last if (-e "$wpsdir/$req_g_wps"); |
259 | 259 | ||
260 | if ($isrwps) { | 260 | if ($isrwps) { |
261 | $req_g = $req_g . "." . $main_width . "x" . $main_height . "x" . "$main_depth"; | 261 | $req_g = $req_g . "." . $main_width . "x" . $main_height . "x" . "$main_depth"; |