summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Giacomelli <giac2000@hotmail.com>2008-02-22 22:32:22 +0000
committerMichael Giacomelli <giac2000@hotmail.com>2008-02-22 22:32:22 +0000
commit66cfed16b0e98191dfbbac126ca3ee402dadaf68 (patch)
treef42a23e18720207223c3cba7542e81043f0fe734
parentf5c1262f757534c42c699251a8c3ae22575b14da (diff)
downloadrockbox-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/WPSLIST22
-rwxr-xr-xwps/wpsbuild.pl25
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
233line selector text color: 000000 233line selector text color: 000000
234filetype colours: - 234filetype colours: -
235 235
236#backdrop 236#backdrop - remember this is the source file name in your SVN folder, not dest name!
237backdrop.320x240x16: /.rockbox/backdrops/cabbiev2.320x240x16.bmp 237backdrop.320x240x16: backdrops/cabbiev2.320x240x16.bmp
238backdrop.128x128x16: /.rockbox/backdrops/cabbiev2.128x128x16.bmp 238backdrop.128x128x16: backdrops/cabbiev2.128x128x16.bmp
239backdrop.132x80x16: /.rockbox/backdrops/cabbiev2.132x80x16.bmp 239backdrop.132x80x16: backdrops/cabbiev2.132x80x16.bmp
240backdrop.138x110x2: /.rockbox/backdrops/cabbiev2.138x110x2.bmp 240backdrop.138x110x2: backdrops/cabbiev2.138x110x2.bmp
241backdrop.160x128x16: /.rockbox/backdrops/cabbiev2.160x128x16.bmp 241backdrop.160x128x16: backdrops/cabbiev2.160x128x16.bmp
242backdrop.160x128x2: /.rockbox/backdrops/cabbiev2.160x128x2.bmp 242backdrop.160x128x2: backdrops/cabbiev2.160x128x2.bmp
243backdrop.176x132x16: /.rockbox/backdrops/cabbiev2.176x132x16.bmp 243backdrop.176x132x16: backdrops/cabbiev2.176x132x16.bmp
244backdrop.176x220x16: /.rockbox/backdrops/cabbiev2.176x220x16.bmp 244backdrop.176x220x16: backdrops/cabbiev2.176x220x16.bmp
245backdrop.220x176x16: /.rockbox/backdrops/cabbiev2.220x176x16.bmp 245backdrop.220x176x16: backdrops/cabbiev2.220x176x16.bmp
246backdrop.240x320x16: /.rockbox/backdrops/cabbiev2.240x320x16.bmp 246backdrop.240x320x16: backdrops/cabbiev2.240x320x16.bmp
247 247
248#selection bar settings for color targets 248#selection bar settings for color targets
249selector type.320x240x16: bar (gradient) 249selector 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";
27my $wpslist=$ARGV[0]; 27my $wpslist=$ARGV[0];
28 28
29my $target = $ARGV[1]; 29my $target = $ARGV[1];
30my $cppdef = $target; 30my $cppdef = $target;
31my @depthlist = ( 16, 8, 4, 2, 1 ); 31my @depthlist = ( 16, 8, 4, 2, 1 );
32 32
33if(!$wpslist) { 33if(!$wpslist) {
@@ -108,9 +108,10 @@ sub mkdirs {
108 108
109sub copybackdrop { 109sub 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
116sub copythemefont { 117sub 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 ) {