summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-05-17 18:16:45 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-05-17 18:16:45 +0000
commitec6476c14adc83869862eef82fa3d4a25b971865 (patch)
tree9d2635f8076c7b7fe1d9393646fa7a0da3df9e8f
parentc4c7069a8a0b4ffc5de8758c2aa154118449aa62 (diff)
downloadrockbox-ec6476c14adc83869862eef82fa3d4a25b971865.tar.gz
rockbox-ec6476c14adc83869862eef82fa3d4a25b971865.zip
plugins: reorder SOURCES conditions to be more readable
change a lot of conditions to be more understandable add some spacing remove ifp conditions as disabling plugins can be done in configure SUBDIRS: concatenate some conditions and add comments No changes expected (no plugins added / removed) for working targets git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26114 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/plugins/SOURCES184
-rw-r--r--apps/plugins/SUBDIRS30
2 files changed, 123 insertions, 91 deletions
diff --git a/apps/plugins/SOURCES b/apps/plugins/SOURCES
index 9ea3db051a..8f06522bc3 100644
--- a/apps/plugins/SOURCES
+++ b/apps/plugins/SOURCES
@@ -23,43 +23,118 @@ stopwatch.c
23theme_remove.c 23theme_remove.c
24vbrfix.c 24vbrfix.c
25viewer.c 25viewer.c
26md5sum.c
27dice.c
28disktidy.c
29flipit.c
30
31
32
33#ifdef USB_ENABLE_HID
34remote_control.c
35#endif
36
37
38
26#ifdef HAVE_BACKLIGHT 39#ifdef HAVE_BACKLIGHT
27lamp.c 40lamp.c
28#endif /* HAVE_BACKLIGHT */ 41#endif /* HAVE_BACKLIGHT */
29#ifndef SIMULATOR 42
30battery_bench.c 43
31firmware_flash.c 44
32#endif /* SIMULATOR */ 45#if CONFIG_CODEC == SWCODEC
46#if defined(HAVE_RECORDING) && (defined(HAVE_LINE_IN) || defined(HAVE_MIC_IN))
47pitch_detector.c
48#endif
49
50mp3_encoder.c
51wav2wv.c
52#endif /* CONFIG_CODEC */
53
54
55#if CONFIG_RTC
56alarmclock.c
57#endif /* CONFIG_RTC */
58
59
60
61/* Platform-specific */
62#if defined(IRIVER_H100_SERIES) || defined(IRIVER_H300_SERIES)
63iriverify.c
64#endif
65
66
67
68#ifndef SIMULATOR /* those plugins only run on hardware */
69
70/* Overlay loaders */
71
72#if (MEMORYSIZE <= 8)
73chessbox.c
74#if CONFIG_KEYPAD == RECORDER_PAD
75rockboy.c
76#endif
77zxbox.c
78#endif
79
80/* overlay loader for Goban */
81#if (PLUGIN_BUFFER_SIZE < 0x10000)
82lua.c
83goban.c
84pictureflow.c
85#endif
86
87
88#if CONFIG_CODEC != SWCODEC
89
90#if defined(HAVE_LCD_BITMAP)
91splitedit.c
92#endif
93
94#if CONFIG_LCD == LCD_SSD1815
95video.c
96#endif
97
98#endif /* HWCODEC */
99
100
101#if defined(ARCHOS_PLAYER) || defined(ARCHOS_RECORDER) || \
102 defined(ARCHOS_FMRECORDER) || defined(ARCHOS_RECORDERV2)
103alpine_cdc.c
104#endif
105
106#if defined(IRIVER_H100_SERIES)
107iriver_flash.c
108#endif
109
33#if (CONFIG_CPU == SH7034) 110#if (CONFIG_CPU == SH7034)
34rockbox_flash.c 111rockbox_flash.c
35#endif /* CONFIG_CPU */ 112#endif /* CONFIG_CPU */
36 113
37#if defined(IPOD_NANO2G) && !defined(SIMULATOR) 114battery_bench.c
38crypt_firmware.c 115firmware_flash.c
39#endif
40 116
41#if (CONFIG_CODEC == SWCODEC) && defined(HAVE_RECORDING) && \ 117#if defined(IPOD_NANO2G)
42 (defined(HAVE_LINE_IN) || defined(HAVE_MIC_IN)) 118crypt_firmware.c
43pitch_detector.c
44#endif 119#endif
45 120
46#if (CONFIG_CODEC == SWCODEC) || !defined(SIMULATOR) 121#if (CONFIG_CODEC == SWCODEC)
47metronome.c 122metronome.c
48#endif 123#endif
49 124
50#if ((CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)) && !defined(SIMULATOR) 125#if ((CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F))
51wavplay.c 126wavplay.c
52#endif 127#endif
53#if (CONFIG_CODEC == MAS3587F) && !defined(SIMULATOR) 128#if (CONFIG_CODEC == MAS3587F)
54wavrecord.c 129wavrecord.c
55#endif 130#endif
56 131
57#ifndef IRIVER_IFP7XX_SERIES /* Temporarily disable plugins for iFP7xx */ 132#endif /* SIMULATOR */
58dice.c 133
59disktidy.c 134
60flipit.c 135
136#ifdef HAVE_LCD_BITMAP /* Not for the Archos Player */
61 137
62#ifdef HAVE_LCD_BITMAP /* Not for the Player */
63boomshine.lua 138boomshine.lua
64rockblox1d.c 139rockblox1d.c
65brickmania.c 140brickmania.c
@@ -69,12 +144,8 @@ mazezam.c
69text_editor.c 144text_editor.c
70wavview.c 145wavview.c
71robotfindskitten.c 146robotfindskitten.c
72 147xobox.c
73#ifdef HAVE_LCD_COLOR 148spacerocks.c
74clix.c
75ppmviewer.c
76codebuster.c
77#endif
78 149
79/* Plugins needing the grayscale lib on low-depth LCDs */ 150/* Plugins needing the grayscale lib on low-depth LCDs */
80fire.c 151fire.c
@@ -99,87 +170,46 @@ solitaire.c
99sokoban.c 170sokoban.c
100star.c 171star.c
101starfield.c 172starfield.c
102#if (CONFIG_LCD == LCD_SSD1815) && (CONFIG_CODEC != SWCODEC) && \
103 !defined(SIMULATOR)
104video.c
105#endif
106vu_meter.c 173vu_meter.c
107wormlet.c 174wormlet.c
108 175
109#if CONFIG_RTC 176#ifdef HAVE_LCD_COLOR
110alarmclock.c 177clix.c
111#endif /* CONFIG_RTC */ 178ppmviewer.c
112 179codebuster.c
113#if (MEMORYSIZE <= 8) && !defined(SIMULATOR) /* loaders, only needed for Archos */
114chessbox.c
115#if CONFIG_KEYPAD == RECORDER_PAD
116rockboy.c
117#endif
118zxbox.c
119#endif
120
121/* overlay loader for Goban */
122#if (PLUGIN_BUFFER_SIZE < 0x10000) && !defined(SIMULATOR)
123lua.c
124goban.c
125pictureflow.c
126#endif 180#endif
127 181
128/* not support recorder models for now */
129#if (LCD_WIDTH > 112) && (LCD_HEIGHT > 64) 182#if (LCD_WIDTH > 112) && (LCD_HEIGHT > 64)
130fireworks.c 183fireworks.c
131#endif 184#endif
132xobox.c 185
133spacerocks.c
134#if LCD_DEPTH >= 16 186#if LCD_DEPTH >= 16
135rockpaint.c 187rockpaint.c
136#endif 188#endif
137 189
138rocklife.c 190rocklife.c
191
139#endif /* HAVE_LCD_BITMAP */ 192#endif /* HAVE_LCD_BITMAP */
140 193
141#ifdef HAVE_LCD_CHARCELLS /* Player model only */ 194#ifdef HAVE_LCD_CHARCELLS /* Archos Player model only */
142euroconverter.c 195euroconverter.c
143nim.c 196nim.c
144#endif /* HAVE_LCD_CHARCELLS */ 197#endif /* HAVE_LCD_CHARCELLS */
145 198
146#if CONFIG_CODEC == SWCODEC /* software codec platforms */ 199
147mp3_encoder.c
148wav2wv.c
149#else /* hardware codec platforms */
150#if !defined(ARCHOS_ONDIOSP) && !defined(ARCHOS_ONDIOFM)
151 /* not for Ondio, has no remote control pin */
152alpine_cdc.c
153#endif
154#if defined(HAVE_LCD_BITMAP) && !defined(SIMULATOR)
155splitedit.c
156#endif
157#endif /* CONFIG_CODEC */
158 200
159#if LCD_DEPTH > 1 /* non-mono bitmap targets */ 201#if LCD_DEPTH > 1 /* non-mono bitmap targets */
160matrix.c
161#endif
162 202
163/* Platform-specific plugins */ 203matrix.c
164#if defined(IRIVER_H100_SERIES) || defined(IRIVER_H300_SERIES)
165iriverify.c
166#endif
167#if defined(IRIVER_H100_SERIES) && !defined(SIMULATOR)
168iriver_flash.c
169#endif
170 204
171#endif /* iFP7xx */ 205#if (LCD_WIDTH > 138)
172#if (LCD_WIDTH > 138) && (LCD_DEPTH > 1)
173/* Built for bitmap targets except H10 5/6gb, Archoses, iPod mini, mrobe100 and ifp*/
174invadrox.c 206invadrox.c
175superdom.c 207superdom.c
176#endif 208#endif
177 209
178md5sum.c 210#endif /* LCD_DEPTH > 1 */
211
179 212
180#ifdef USB_ENABLE_HID
181remote_control.c
182#endif
183 213
184#ifdef HAVE_TEST_PLUGINS /* enable in advanced build options */ 214#ifdef HAVE_TEST_PLUGINS /* enable in advanced build options */
185#ifdef HAVE_ADJUSTABLE_CPU_FREQ 215#ifdef HAVE_ADJUSTABLE_CPU_FREQ
diff --git a/apps/plugins/SUBDIRS b/apps/plugins/SUBDIRS
index 1c7f969c02..2a88e7d1b1 100644
--- a/apps/plugins/SUBDIRS
+++ b/apps/plugins/SUBDIRS
@@ -1,5 +1,3 @@
1#if !defined(IRIVER_IFP7XX_SERIES)
2
3/* For all targets */ 1/* For all targets */
4shortcuts 2shortcuts
5 3
@@ -10,32 +8,38 @@ clock
10#endif 8#endif
11 9
12#if (CONFIG_KEYPAD == RECORDER_PAD) || defined(HAVE_LCD_COLOR) \ 10#if (CONFIG_KEYPAD == RECORDER_PAD) || defined(HAVE_LCD_COLOR) \
13 || defined(IRIVER_H100_SERIES) || defined(IAUDIO_M5) 11 || defined(IRIVER_H100_SERIES) || defined(IAUDIO_M5) /* FIXME */
14rockboy 12rockboy
15#endif 13#endif
16 14
17/* For all targets with a bitmap display */ 15/* For all targets with a bitmap display */
18#ifdef HAVE_LCD_BITMAP 16#ifdef HAVE_LCD_BITMAP
17
19#ifdef HAVE_TAGCACHE 18#ifdef HAVE_TAGCACHE
20pictureflow 19pictureflow
21#endif 20#endif
21
22#if (CONFIG_CODEC == SWCODEC) 22#if (CONFIG_CODEC == SWCODEC)
23fft 23fft
24#endif 24#endif
25
25chessbox 26chessbox
26fractals 27fractals
27imageviewer 28imageviewer
28sudoku 29sudoku
29reversi 30reversi
30goban 31goban
32
31/* setjmp/longjmp are not implemented on sh */ 33/* setjmp/longjmp are not implemented on sh */
32#if (CONFIG_CPU != SH7034) 34#if (CONFIG_CPU != SH7034)
33frotz 35frotz
34#endif 36#endif
37
35#ifndef OLYMPUS_MROBE_500 38#ifndef OLYMPUS_MROBE_500
36zxbox 39zxbox
37#endif 40#endif
38#endif 41
42#endif /* HAVE_LCD_BITMAP */
39 43
40/* For all big enough colour screens, iriver H1x0 and iAudio M5 */ 44/* For all big enough colour screens, iriver H1x0 and iAudio M5 */
41#if defined(HAVE_LCD_COLOR) && LCD_HEIGHT > 96\ 45#if defined(HAVE_LCD_COLOR) && LCD_HEIGHT > 96\
@@ -43,32 +47,30 @@ zxbox
43pacbox 47pacbox
44#endif 48#endif
45 49
46/* For all the color targets */
47#if (defined(HAVE_LCD_COLOR) || defined(MROBE_100) || \ 50#if (defined(HAVE_LCD_COLOR) || defined(MROBE_100) || \
48 (LCD_DEPTH == 2) && !defined(ARCHOS_AV300)) && (MEMORYSIZE > 2) 51 (LCD_DEPTH == 2) && !defined(ARCHOS_AV300)) && (MEMORYSIZE > 2) && \
49#ifndef RB_PROFILE 52 !defined(RB_PROFILE)
50doom 53doom
51#endif 54#endif
52#endif
53 55
54/* For all the swcodec targets */ 56/* For all the swcodec targets */
55#if CONFIG_CODEC == SWCODEC 57#if CONFIG_CODEC == SWCODEC
58
56midi 59midi
60
57/* beatbox */ 61/* beatbox */
58#if defined(IRIVER_H300_SERIES) || defined(IRIVER_H100_SERIES) 62#if defined(IRIVER_H300_SERIES) || defined(IRIVER_H100_SERIES)
59/* PDBox is confirmed to run on these player models. */ 63/* PDBox is confirmed to run on these player models. */
60pdbox 64pdbox
61#endif 65#endif
62#ifndef RB_PROFILE 66
63#if MEMORYSIZE > 2 /* mpegplayer allocates at least 2MB of RAM */ 67#if !defined(RB_PROFILE) && MEMORYSIZE > 2 /* mpegplayer allocates at least 2MB of RAM */
64mpegplayer 68mpegplayer
65#endif 69#endif
66#endif 70
67#endif 71#endif /* CONFIG_CODEC == SWCODEC */
68 72
69/* Lua needs at least 160 KB to work in */ 73/* Lua needs at least 160 KB to work in */
70#if (PLUGIN_BUFFER_SIZE >= 0x80000) 74#if (PLUGIN_BUFFER_SIZE >= 0x80000)
71lua 75lua
72#endif 76#endif
73
74#endif /* IRIVER_IFP7XX_SERIES */