summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wps/.#WPSLIST.1.232
-rw-r--r--wps/.#WPSLIST.1.24132
-rw-r--r--wps/.#WPSLIST.1.566
-rwxr-xr-xwps/.#wpsbuild.pl.1.9242
4 files changed, 0 insertions, 472 deletions
diff --git a/wps/.#WPSLIST.1.2 b/wps/.#WPSLIST.1.2
deleted file mode 100644
index 91d38c1ae3..0000000000
--- a/wps/.#WPSLIST.1.2
+++ /dev/null
@@ -1,32 +0,0 @@
1<wps>
2# Name of the WPS _including_ extension
3Name: ipodVOL.wps
4# Name of the creator of the WPS
5Author: xameius
6# prefered font:
7Font: chicago12.fnt
8# Weather the WPS is designed to have the statusbar present or not
9Statusbar: off
10# The minimum required pixel height for the WPS
11Height: 128
12# The minimum required pixel width for the WPS
13Width: 160
14</wps>
15
16<wps>
17Name: rockbox_default.wps
18Author: Rockbox team
19Font: rockbox_default.fnt
20Statusbar: on
21Height: 2
22Width: 8
23</wps>
24
25<wps>
26Name: boxes.wps
27Author: Christi Scarborough (after the_engineer)
28Font: rockbox_default.fnt
29Statusbar: off
30Height: 128
31Width: 160
32</wps>
diff --git a/wps/.#WPSLIST.1.24 b/wps/.#WPSLIST.1.24
deleted file mode 100644
index 5422205863..0000000000
--- a/wps/.#WPSLIST.1.24
+++ /dev/null
@@ -1,132 +0,0 @@
1# __________ __ ___.
2# Open \______ \ ____ ____ | | _\_ |__ _______ ___
3# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
6# \/ \/ \/ \/ \/
7# $Id$
8#
9# WPSLIST
10#
11# This should list all WPS and RWPS files we have and what their requirements
12# and preferences are.
13#
14# Each <wps> section will also cause a "theme" .cfg to be made, which the
15# <rwps> sections will not cause.
16#
17# A <wps> section can thus mention a "preferred" rwps file to load when that
18# theme is loaded.
19#
20# All sections should list what their smallest LCD size requirements are and
21# what font and status bar setting they "like".
22
23<wps>
24# Name of the WPS _including_ extension
25Name: ipodVOL.wps
26# default RWPS for the theme (to be loaded with the same theme file)
27RWPS: rockbox_default.rwps
28# Name of the creator of the WPS
29Author: xameius
30# prefered font:
31Font: nimbus-12.fnt
32# Weather the WPS is designed to have the statusbar present or not
33Statusbar: on
34</wps>
35
36<wps>
37Name: rockbox_default.wps
38RWPS: rockbox_default.rwps
39Author: Rockbox team
40Font: rockbox_default.fnt
41Statusbar: on
42</wps>
43
44<wps>
45Name: boxes.wps
46rwps: boxes.rwps
47Author: Christi Scarborough (after Magnus Westerlund)
48Font: rockbox_default.fnt
49Statusbar: on
50</wps>
51
52<wps>
53Name: engineeer2.wps
54RWPS: engineeer2.rwps
55Author: Magnus Westerlund
56Font: nedore-8.fnt
57Statusbar: on
58</wps>
59
60<wps>
61Name: iAmp.wps
62RWPS: iAmp.rwps
63Author: Raymond Hoh
64Font: nimbus-12.fnt
65Statusbar: on
66</wps>
67
68<wps>
69Name: zezayer.wps
70RWPS: rockbox_default.rwps
71Author: Jake Owen
72Font: nedore-8.fnt
73Statusbar: on
74</wps>
75
76<rwps>
77Name: rockbox_default.rwps
78Author: Rockbox team
79Font: rockbox_default.fnt
80Statusbar: on
81</rwps>
82
83<rwps>
84Name: iAmp.rwps
85Author: Raymond Hoh
86Font: nimbus-12.fnt
87Statusbar: on
88</rwps>
89
90<rwps>
91Name: boxes.rwps
92Author: Christi Scarborough
93Font: rockbox_default.fnt
94Statusbar: on
95</rwps>
96
97<rwps>
98Name: engineeer2.rwps
99Author: Magnus Westerlund
100Font: nedore-8.fnt
101Statusbar: on
102</rwps>
103
104<wps>
105Name: marquee.wps
106RWPS: marquee.rwps
107Author: Mike Sobel
108Font: chicago12.fnt
109Statusbar: on
110</wps>
111
112<rwps>
113Name: marquee.rwps
114Author: Mike Sobel
115Font: chicago12.fnt
116Statusbar: on
117</rwps>
118
119<wps>
120Name: DancePuffDuo.wps
121RWPS: DancePuffDuo.rwps
122Author: Chris Oxtoby
123Font: chicago12.fnt
124Statusbar: on
125</wps>
126
127<rwps>
128Name: DancePuffDuo.rwps
129Author: Chris Oxtoby
130Font: chicago12.fnt
131Statusbar: on
132</rwps>
diff --git a/wps/.#WPSLIST.1.5 b/wps/.#WPSLIST.1.5
deleted file mode 100644
index fd5af01652..0000000000
--- a/wps/.#WPSLIST.1.5
+++ /dev/null
@@ -1,66 +0,0 @@
1<wps>
2# Name of the WPS _including_ extension
3Name: ipodVOL.wps
4# Name of the creator of the WPS
5Author: xameius
6# prefered font:
7Font: chicago12.fnt
8# Weather the WPS is designed to have the statusbar present or not
9Statusbar: off
10# The minimum required pixel height for the WPS
11Height: 128
12# The minimum required pixel width for the WPS
13Width: 160
14</wps>
15
16<wps>
17Name: rockbox_default.wps
18Author: Rockbox team
19Font: rockbox_default.fnt
20Statusbar: on
21Height: 14
22Width: 55
23</wps>
24
25<wps>
26Name: boxes.wps
27Author: Christi Scarborough (after Magnus Westerlund)
28Font: rockbox_default.fnt
29Statusbar: off
30Height: 128
31Width: 160
32</wps>
33
34<wps>
35# Name of the WPS (_including_ .wps extension)
36Name: engineeer2.wps
37# Real name of the creator of the WPS
38Author: Magnus Westerlund
39# Preferred font (including .fnt extension - leave blank for player):
40Font: Nedore-8.fnt
41# Whether the WPS is designed to have the statusbar on or off
42Statusbar: Off
43# The minimum required pixel height for the WPS
44# 176 for H3xx, 128 for H1xx, 64 for Recorder/Ondio, 14 for player
45Height: 128
46# The minimum required pixel width for the WPS
47# 220 for H3xx, 160 for H1xx, 112 for Recorder/Ondio, 55 for player
48Width: 160
49</wps>
50
51<wps>
52# Name of the WPS (_including_ .wps extension)
53Name: zezayer.wps
54# Real name of the creator of the WPS
55Author: Jake Owen
56# Preferred font (including .fnt extension - leave blank for player):
57Font: nedore-8.fnt
58# Whether the WPS is designed to have the statusbar on or off
59Statusbar: off
60# The minimum required pixel height for the WPS
61# 176 for H3xx, 128 for H1xx, 64 for Recorder/Ondio, 14 for player
62Height: 128
63# The minimum required pixel width for the WPS
64# 220 for H3xx, 160 for H1xx, 112 for Recorder/Ondio, 55 for player
65Width: 160
66</wps>
diff --git a/wps/.#wpsbuild.pl.1.9 b/wps/.#wpsbuild.pl.1.9
deleted file mode 100755
index 3ea3ff6c93..0000000000
--- a/wps/.#wpsbuild.pl.1.9
+++ /dev/null
@@ -1,242 +0,0 @@
1#!/usr/bin/perl
2# __________ __ ___.
3# Open \______ \ ____ ____ | | _\_ |__ _______ ___
4# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7# \/ \/ \/ \/ \/
8# $Id$
9#
10
11$ROOT="..";
12
13if($ARGV[0] eq "-r") {
14 $ROOT=$ARGV[1];
15 shift @ARGV;
16 shift @ARGV;
17}
18
19my $verbose;
20if($ARGV[0] eq "-v") {
21 $verbose =1;
22 shift @ARGV;
23}
24
25my $firmdir="$ROOT/firmware";
26
27my $wpslist=$ARGV[0];
28
29my $target = $ARGV[1];
30my $cppdef = $target;
31
32
33if(!$wpslist) {
34 print "Usage: wpsbuilds.pl <WPSLIST> <target>\n",
35 "Run this script in the root of the target build, and it will put all the\n",
36 "stuff in .rockbox/wps/\n";
37 exit;
38}
39
40sub getlcdsizes {
41 my ($remote) = @_;
42
43 open(GCC, ">gcctemp");
44 if($remote) {
45 # Get the remote LCD screen size
46 print GCC <<STOP
47\#include "config.h"
48#ifdef HAVE_REMOTE_LCD
49Height: LCD_REMOTE_HEIGHT
50Width: LCD_REMOTE_WIDTH
51#endif
52STOP
53;
54 }
55 else {
56 print GCC <<STOP
57\#include "config.h"
58Height: LCD_HEIGHT
59Width: LCD_WIDTH
60STOP
61;
62}
63 close(gcc);
64
65 my $c="cat gcctemp | gcc $cppdef -I. -I$firmdir/export -E -P -";
66
67 #print "CMD $c\n";
68
69 open(GETSIZE, "$c|");
70
71 my ($height, $width);
72 while(<GETSIZE>) {
73 if($_ =~ /^Height: (\d*)/) {
74 $height = $1;
75 }
76 elsif($_ =~ /^Width: (\d*)/) {
77 $width = $1;
78 }
79 if($height && $width) {
80 last;
81 }
82 }
83 close(GETSIZE);
84 unlink("gcctemp");
85
86 return ($height, $width);
87}
88
89sub mkdirs {
90 my $wpsdir = $wps;
91 $wpsdir =~ s/\.(r|)wps//;
92 mkdir ".rockbox/wps", 0777;
93 mkdir ".rockbox/themes", 0777;
94
95 if( -d ".rockbox/wps/$wpsdir") {
96 #print STDERR "wpsbuild warning: directory wps/$wpsdir already exists!\n";
97 }
98 else {
99 mkdir ".rockbox/wps/$wpsdir", 0777;
100 }
101}
102
103sub copywps {
104 # we assume that we copy the WPS files from the same dir the WPSLIST
105 # file is located in
106 my $dir;
107
108 if($wpslist =~ /(.*)WPSLIST/) {
109 $dir = $1;
110 my $wpsdir = $wps;
111 $wpsdir =~ s/\.(r|)wps//;
112 system("cp $dir/$wps .rockbox/wps/");
113
114 if (-e "$dir/$wpsdir") {
115 system("cp $dir/$wpsdir/*.bmp .rockbox/wps/$wpsdir/");
116 }
117 }
118 else {
119 print STDERR "beep, no dir to copy WPS from!\n";
120 }
121}
122
123sub buildcfg {
124 my $cfg = $wps;
125 my @out;
126
127 $cfg =~ s/\.(r|)wps/.cfg/;
128
129 push @out, <<MOO
130\#
131\# $cfg generated by wpsbuild.pl
132\# $wps is made by $author
133\#
134wps: /.rockbox/wps/$wps
135MOO
136;
137 if($font) {
138 push @out, "font: /.rockbox/fonts/$font\n";
139 }
140 if($statusbar) {
141 push @out, "statusbar: $statusbar\n";
142 }
143 if($rwps && $has_remote ) {
144 push @out, "rwps: /.rockbox/wps/$rwps\n";
145 }
146
147 if(-f ".rockbox/wps/$cfg") {
148 print STDERR "wpsbuild warning: wps/$cfg already exists!\n";
149 }
150 else {
151 open(CFG, ">.rockbox/themes/$cfg");
152 print CFG @out;
153 close(CFG);
154 }
155}
156
157# Get the LCD sizes first
158my ($main_height, $main_width) = getlcdsizes();
159my ($remote_height, $remote_width) = getlcdsizes(1);
160
161$has_remote = true if ($remote_height && $remote_width);
162
163open(WPS, "<$wpslist");
164while(<WPS>) {
165 my $l = $_;
166 if($l =~ /^ *\#/) {
167 # skip comment
168 next;
169 }
170 if($l =~ /^ *<(r|)wps>/i) {
171 $isrwps = $1;
172 $within = 1;
173 next;
174 }
175 if($within) {
176 if($l =~ /^ *<\/${isrwps}wps>/i) {
177 # Get the required width and height
178 my ($rheight, $rwidth);
179 if($isrwps) {
180 ($rheight, $rwidth) = ($remote_height, $remote_width);
181 }
182 else {
183 ($rheight, $rwidth) = ($main_height, $main_width);
184 }
185
186 if(!$rheight || !$rwidth) {
187 printf STDERR "wpsbuild notice: No %sLCD size, skipping $wps\n",
188 $isrwps?"remote ":"";
189 next;
190 }
191
192 #print "LCD: $wps wants $height x $width\n";
193 #print "LCD: is $rheight x $rwidth\n";
194
195 if(($height <= $rheight) && ($width <= $rwidth)) {
196 #
197 # The target model has an LCD that is suitable for this
198 # WPS
199 #
200 #print "Size requirement is fine!\n";
201
202 mkdirs();
203 if(!$isrwps) {
204 # We only make .cfg files for <wps> sections:
205 buildcfg();
206 }
207 copywps();
208 }
209 else {
210 #print "Skip $wps due to size restraints\n";
211 }
212 $within = 0;
213
214 undef $wps, $rwps, $width, $height, $font, $statusbar, $author;
215 }
216 elsif($l =~ /^Name: (.*)/i) {
217 # Note that in the case this is within <rwps>, $wps will contain the
218 # name of the rwps. Use $isrwps to figure out what type it is.
219 $wps = $1;
220 }
221 elsif($l =~ /^RWPS: (.*)/i) {
222 $rwps = $1;
223 }
224 elsif($l =~ /^Author: (.*)/i) {
225 $author = $1;
226 }
227 elsif($l =~ /^Width: (.*)/i) {
228 $width = $1;
229 }
230 elsif($l =~ /^Height: (.*)/i) {
231 $height = $1;
232 }
233 elsif($l =~ /^Font: (.*)/i) {
234 $font = $1;
235 }
236 elsif($l =~ /^Statusbar: (.*)/i) {
237 $statusbar = $1;
238 }
239 }
240}
241
242close(WPS)