diff options
Diffstat (limited to 'wps')
-rw-r--r-- | wps/.#WPSLIST.1.2 | 32 | ||||
-rw-r--r-- | wps/.#WPSLIST.1.24 | 132 | ||||
-rw-r--r-- | wps/.#WPSLIST.1.5 | 66 | ||||
-rwxr-xr-x | wps/.#wpsbuild.pl.1.9 | 242 |
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 | ||
3 | Name: ipodVOL.wps | ||
4 | # Name of the creator of the WPS | ||
5 | Author: xameius | ||
6 | # prefered font: | ||
7 | Font: chicago12.fnt | ||
8 | # Weather the WPS is designed to have the statusbar present or not | ||
9 | Statusbar: off | ||
10 | # The minimum required pixel height for the WPS | ||
11 | Height: 128 | ||
12 | # The minimum required pixel width for the WPS | ||
13 | Width: 160 | ||
14 | </wps> | ||
15 | |||
16 | <wps> | ||
17 | Name: rockbox_default.wps | ||
18 | Author: Rockbox team | ||
19 | Font: rockbox_default.fnt | ||
20 | Statusbar: on | ||
21 | Height: 2 | ||
22 | Width: 8 | ||
23 | </wps> | ||
24 | |||
25 | <wps> | ||
26 | Name: boxes.wps | ||
27 | Author: Christi Scarborough (after the_engineer) | ||
28 | Font: rockbox_default.fnt | ||
29 | Statusbar: off | ||
30 | Height: 128 | ||
31 | Width: 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 | ||
25 | Name: ipodVOL.wps | ||
26 | # default RWPS for the theme (to be loaded with the same theme file) | ||
27 | RWPS: rockbox_default.rwps | ||
28 | # Name of the creator of the WPS | ||
29 | Author: xameius | ||
30 | # prefered font: | ||
31 | Font: nimbus-12.fnt | ||
32 | # Weather the WPS is designed to have the statusbar present or not | ||
33 | Statusbar: on | ||
34 | </wps> | ||
35 | |||
36 | <wps> | ||
37 | Name: rockbox_default.wps | ||
38 | RWPS: rockbox_default.rwps | ||
39 | Author: Rockbox team | ||
40 | Font: rockbox_default.fnt | ||
41 | Statusbar: on | ||
42 | </wps> | ||
43 | |||
44 | <wps> | ||
45 | Name: boxes.wps | ||
46 | rwps: boxes.rwps | ||
47 | Author: Christi Scarborough (after Magnus Westerlund) | ||
48 | Font: rockbox_default.fnt | ||
49 | Statusbar: on | ||
50 | </wps> | ||
51 | |||
52 | <wps> | ||
53 | Name: engineeer2.wps | ||
54 | RWPS: engineeer2.rwps | ||
55 | Author: Magnus Westerlund | ||
56 | Font: nedore-8.fnt | ||
57 | Statusbar: on | ||
58 | </wps> | ||
59 | |||
60 | <wps> | ||
61 | Name: iAmp.wps | ||
62 | RWPS: iAmp.rwps | ||
63 | Author: Raymond Hoh | ||
64 | Font: nimbus-12.fnt | ||
65 | Statusbar: on | ||
66 | </wps> | ||
67 | |||
68 | <wps> | ||
69 | Name: zezayer.wps | ||
70 | RWPS: rockbox_default.rwps | ||
71 | Author: Jake Owen | ||
72 | Font: nedore-8.fnt | ||
73 | Statusbar: on | ||
74 | </wps> | ||
75 | |||
76 | <rwps> | ||
77 | Name: rockbox_default.rwps | ||
78 | Author: Rockbox team | ||
79 | Font: rockbox_default.fnt | ||
80 | Statusbar: on | ||
81 | </rwps> | ||
82 | |||
83 | <rwps> | ||
84 | Name: iAmp.rwps | ||
85 | Author: Raymond Hoh | ||
86 | Font: nimbus-12.fnt | ||
87 | Statusbar: on | ||
88 | </rwps> | ||
89 | |||
90 | <rwps> | ||
91 | Name: boxes.rwps | ||
92 | Author: Christi Scarborough | ||
93 | Font: rockbox_default.fnt | ||
94 | Statusbar: on | ||
95 | </rwps> | ||
96 | |||
97 | <rwps> | ||
98 | Name: engineeer2.rwps | ||
99 | Author: Magnus Westerlund | ||
100 | Font: nedore-8.fnt | ||
101 | Statusbar: on | ||
102 | </rwps> | ||
103 | |||
104 | <wps> | ||
105 | Name: marquee.wps | ||
106 | RWPS: marquee.rwps | ||
107 | Author: Mike Sobel | ||
108 | Font: chicago12.fnt | ||
109 | Statusbar: on | ||
110 | </wps> | ||
111 | |||
112 | <rwps> | ||
113 | Name: marquee.rwps | ||
114 | Author: Mike Sobel | ||
115 | Font: chicago12.fnt | ||
116 | Statusbar: on | ||
117 | </rwps> | ||
118 | |||
119 | <wps> | ||
120 | Name: DancePuffDuo.wps | ||
121 | RWPS: DancePuffDuo.rwps | ||
122 | Author: Chris Oxtoby | ||
123 | Font: chicago12.fnt | ||
124 | Statusbar: on | ||
125 | </wps> | ||
126 | |||
127 | <rwps> | ||
128 | Name: DancePuffDuo.rwps | ||
129 | Author: Chris Oxtoby | ||
130 | Font: chicago12.fnt | ||
131 | Statusbar: 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 | ||
3 | Name: ipodVOL.wps | ||
4 | # Name of the creator of the WPS | ||
5 | Author: xameius | ||
6 | # prefered font: | ||
7 | Font: chicago12.fnt | ||
8 | # Weather the WPS is designed to have the statusbar present or not | ||
9 | Statusbar: off | ||
10 | # The minimum required pixel height for the WPS | ||
11 | Height: 128 | ||
12 | # The minimum required pixel width for the WPS | ||
13 | Width: 160 | ||
14 | </wps> | ||
15 | |||
16 | <wps> | ||
17 | Name: rockbox_default.wps | ||
18 | Author: Rockbox team | ||
19 | Font: rockbox_default.fnt | ||
20 | Statusbar: on | ||
21 | Height: 14 | ||
22 | Width: 55 | ||
23 | </wps> | ||
24 | |||
25 | <wps> | ||
26 | Name: boxes.wps | ||
27 | Author: Christi Scarborough (after Magnus Westerlund) | ||
28 | Font: rockbox_default.fnt | ||
29 | Statusbar: off | ||
30 | Height: 128 | ||
31 | Width: 160 | ||
32 | </wps> | ||
33 | |||
34 | <wps> | ||
35 | # Name of the WPS (_including_ .wps extension) | ||
36 | Name: engineeer2.wps | ||
37 | # Real name of the creator of the WPS | ||
38 | Author: Magnus Westerlund | ||
39 | # Preferred font (including .fnt extension - leave blank for player): | ||
40 | Font: Nedore-8.fnt | ||
41 | # Whether the WPS is designed to have the statusbar on or off | ||
42 | Statusbar: Off | ||
43 | # The minimum required pixel height for the WPS | ||
44 | # 176 for H3xx, 128 for H1xx, 64 for Recorder/Ondio, 14 for player | ||
45 | Height: 128 | ||
46 | # The minimum required pixel width for the WPS | ||
47 | # 220 for H3xx, 160 for H1xx, 112 for Recorder/Ondio, 55 for player | ||
48 | Width: 160 | ||
49 | </wps> | ||
50 | |||
51 | <wps> | ||
52 | # Name of the WPS (_including_ .wps extension) | ||
53 | Name: zezayer.wps | ||
54 | # Real name of the creator of the WPS | ||
55 | Author: Jake Owen | ||
56 | # Preferred font (including .fnt extension - leave blank for player): | ||
57 | Font: nedore-8.fnt | ||
58 | # Whether the WPS is designed to have the statusbar on or off | ||
59 | Statusbar: off | ||
60 | # The minimum required pixel height for the WPS | ||
61 | # 176 for H3xx, 128 for H1xx, 64 for Recorder/Ondio, 14 for player | ||
62 | Height: 128 | ||
63 | # The minimum required pixel width for the WPS | ||
64 | # 220 for H3xx, 160 for H1xx, 112 for Recorder/Ondio, 55 for player | ||
65 | Width: 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 | |||
13 | if($ARGV[0] eq "-r") { | ||
14 | $ROOT=$ARGV[1]; | ||
15 | shift @ARGV; | ||
16 | shift @ARGV; | ||
17 | } | ||
18 | |||
19 | my $verbose; | ||
20 | if($ARGV[0] eq "-v") { | ||
21 | $verbose =1; | ||
22 | shift @ARGV; | ||
23 | } | ||
24 | |||
25 | my $firmdir="$ROOT/firmware"; | ||
26 | |||
27 | my $wpslist=$ARGV[0]; | ||
28 | |||
29 | my $target = $ARGV[1]; | ||
30 | my $cppdef = $target; | ||
31 | |||
32 | |||
33 | if(!$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 | |||
40 | sub 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 | ||
49 | Height: LCD_REMOTE_HEIGHT | ||
50 | Width: LCD_REMOTE_WIDTH | ||
51 | #endif | ||
52 | STOP | ||
53 | ; | ||
54 | } | ||
55 | else { | ||
56 | print GCC <<STOP | ||
57 | \#include "config.h" | ||
58 | Height: LCD_HEIGHT | ||
59 | Width: LCD_WIDTH | ||
60 | STOP | ||
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 | |||
89 | sub 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 | |||
103 | sub 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 | |||
123 | sub 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 | \# | ||
134 | wps: /.rockbox/wps/$wps | ||
135 | MOO | ||
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 | ||
158 | my ($main_height, $main_width) = getlcdsizes(); | ||
159 | my ($remote_height, $remote_width) = getlcdsizes(1); | ||
160 | |||
161 | $has_remote = true if ($remote_height && $remote_width); | ||
162 | |||
163 | open(WPS, "<$wpslist"); | ||
164 | while(<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 | |||
242 | close(WPS) | ||