diff options
author | Michael Giacomelli <giac2000@hotmail.com> | 2008-02-22 22:32:22 +0000 |
---|---|---|
committer | Michael Giacomelli <giac2000@hotmail.com> | 2008-02-22 22:32:22 +0000 |
commit | 66cfed16b0e98191dfbbac126ca3ee402dadaf68 (patch) | |
tree | f42a23e18720207223c3cba7542e81043f0fe734 | |
parent | f5c1262f757534c42c699251a8c3ae22575b14da (diff) | |
download | rockbox-66cfed16b0e98191dfbbac126ca3ee402dadaf68.tar.gz rockbox-66cfed16b0e98191dfbbac126ca3ee402dadaf68.zip |
Make the build script ignore color-only options on grayscale targets. Also, change how backdrop files are entered in preperation for setting a default theme.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16373 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | wps/WPSLIST | 22 | ||||
-rwxr-xr-x | wps/wpsbuild.pl | 25 |
2 files changed, 25 insertions, 22 deletions
diff --git a/wps/WPSLIST b/wps/WPSLIST index 08171aad16..f39212b30c 100644 --- a/wps/WPSLIST +++ b/wps/WPSLIST | |||
@@ -233,17 +233,17 @@ line selector end color: b58c00 | |||
233 | line selector text color: 000000 | 233 | line selector text color: 000000 |
234 | filetype colours: - | 234 | filetype colours: - |
235 | 235 | ||
236 | #backdrop | 236 | #backdrop - remember this is the source file name in your SVN folder, not dest name! |
237 | backdrop.320x240x16: /.rockbox/backdrops/cabbiev2.320x240x16.bmp | 237 | backdrop.320x240x16: backdrops/cabbiev2.320x240x16.bmp |
238 | backdrop.128x128x16: /.rockbox/backdrops/cabbiev2.128x128x16.bmp | 238 | backdrop.128x128x16: backdrops/cabbiev2.128x128x16.bmp |
239 | backdrop.132x80x16: /.rockbox/backdrops/cabbiev2.132x80x16.bmp | 239 | backdrop.132x80x16: backdrops/cabbiev2.132x80x16.bmp |
240 | backdrop.138x110x2: /.rockbox/backdrops/cabbiev2.138x110x2.bmp | 240 | backdrop.138x110x2: backdrops/cabbiev2.138x110x2.bmp |
241 | backdrop.160x128x16: /.rockbox/backdrops/cabbiev2.160x128x16.bmp | 241 | backdrop.160x128x16: backdrops/cabbiev2.160x128x16.bmp |
242 | backdrop.160x128x2: /.rockbox/backdrops/cabbiev2.160x128x2.bmp | 242 | backdrop.160x128x2: backdrops/cabbiev2.160x128x2.bmp |
243 | backdrop.176x132x16: /.rockbox/backdrops/cabbiev2.176x132x16.bmp | 243 | backdrop.176x132x16: backdrops/cabbiev2.176x132x16.bmp |
244 | backdrop.176x220x16: /.rockbox/backdrops/cabbiev2.176x220x16.bmp | 244 | backdrop.176x220x16: backdrops/cabbiev2.176x220x16.bmp |
245 | backdrop.220x176x16: /.rockbox/backdrops/cabbiev2.220x176x16.bmp | 245 | backdrop.220x176x16: backdrops/cabbiev2.220x176x16.bmp |
246 | backdrop.240x320x16: /.rockbox/backdrops/cabbiev2.240x320x16.bmp | 246 | backdrop.240x320x16: backdrops/cabbiev2.240x320x16.bmp |
247 | 247 | ||
248 | #selection bar settings for color targets | 248 | #selection bar settings for color targets |
249 | selector type.320x240x16: bar (gradient) | 249 | selector type.320x240x16: bar (gradient) |
diff --git a/wps/wpsbuild.pl b/wps/wpsbuild.pl index 2cab5374f8..7218250322 100755 --- a/wps/wpsbuild.pl +++ b/wps/wpsbuild.pl | |||
@@ -27,7 +27,7 @@ my $firmdir="$ROOT/firmware"; | |||
27 | my $wpslist=$ARGV[0]; | 27 | my $wpslist=$ARGV[0]; |
28 | 28 | ||
29 | my $target = $ARGV[1]; | 29 | my $target = $ARGV[1]; |
30 | my $cppdef = $target; | 30 | my $cppdef = $target; |
31 | my @depthlist = ( 16, 8, 4, 2, 1 ); | 31 | my @depthlist = ( 16, 8, 4, 2, 1 ); |
32 | 32 | ||
33 | if(!$wpslist) { | 33 | if(!$wpslist) { |
@@ -108,9 +108,10 @@ sub mkdirs { | |||
108 | 108 | ||
109 | sub copybackdrop { | 109 | sub copybackdrop { |
110 | #copy the backdrop file into the build dir | 110 | #copy the backdrop file into the build dir |
111 | 111 | $dst = $backdrop; | |
112 | $backdrop =~ /\/(.*backdrops\/(.*))/i; | 112 | $dst =~ s/(\.[0-9]*x[0-9]*x[0-9]*)//; |
113 | `cp $ROOT/backdrops/$2 $1`; | 113 | $cmd = "cp $ROOT/$backdrop .rockbox/$dst"; |
114 | `$cmd`; | ||
114 | } | 115 | } |
115 | 116 | ||
116 | sub copythemefont { | 117 | sub copythemefont { |
@@ -203,22 +204,24 @@ MOO | |||
203 | if($font) { | 204 | if($font) { |
204 | push @out, "font: /.rockbox/fonts/$font\n"; | 205 | push @out, "font: /.rockbox/fonts/$font\n"; |
205 | } | 206 | } |
206 | if($fgcolor) { | 207 | if($fgcolor && $main_depth > 2) { |
207 | push @out, "foreground color: $fgcolor\n"; | 208 | push @out, "foreground color: $fgcolor\n"; |
208 | } | 209 | } |
209 | if($bgcolor) { | 210 | if($bgcolor && $main_depth > 2) { |
210 | push @out, "background color: $bgcolor\n"; | 211 | push @out, "background color: $bgcolor\n"; |
211 | } | 212 | } |
212 | if($statusbar) { | 213 | if($statusbar) { |
213 | push @out, "statusbar: $statusbar\n"; | 214 | push @out, "statusbar: $statusbar\n"; |
214 | } | 215 | } |
215 | if($backdrop) { | 216 | if($backdrop) { |
216 | push @out, "backdrop: $backdrop\n"; | 217 | #clip resolution from filename |
218 | $backdrop =~ s/(\.[0-9]*x[0-9]*x[0-9]*)//; | ||
219 | push @out, "backdrop: /.rockbox/$backdrop\n"; | ||
217 | } | 220 | } |
218 | if($lineselectstart) { | 221 | if($lineselectstart && $main_depth > 2) { |
219 | push @out, "line selector start color: $lineselectstart\n"; | 222 | push @out, "line selector start color: $lineselectstart\n"; |
220 | } | 223 | } |
221 | if($lineselectend) { | 224 | if($lineselectend && $main_depth > 2) { |
222 | push @out, "line selector end color: $lineselectend\n"; | 225 | push @out, "line selector end color: $lineselectend\n"; |
223 | } | 226 | } |
224 | if($selecttype) { | 227 | if($selecttype) { |
@@ -230,10 +233,10 @@ MOO | |||
230 | if($viewericon) { | 233 | if($viewericon) { |
231 | push @out, "viewers iconset: $viewericon\n"; | 234 | push @out, "viewers iconset: $viewericon\n"; |
232 | } | 235 | } |
233 | if($lineselecttextcolor) { | 236 | if($lineselecttextcolor && $main_depth > 2 ) { |
234 | push @out, "line selector text color: $lineselecttextcolor\n"; | 237 | push @out, "line selector text color: $lineselecttextcolor\n"; |
235 | } | 238 | } |
236 | if($filetylecolor) { | 239 | if($filetylecolor && $main_depth > 2) { |
237 | push @out, "filetype colours: $filetylecolor\n"; | 240 | push @out, "filetype colours: $filetylecolor\n"; |
238 | } | 241 | } |
239 | if($rwps && $has_remote ) { | 242 | if($rwps && $has_remote ) { |