1
0
Fork 0
forked from len0rd/rockbox

Remove a bunch of build conditions inside .c files

Fix logic in pacbox makefiles for asm optimizations

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27887 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rafaël Carré 2010-08-25 19:14:02 +00:00
parent 7014faee69
commit 5615881955
11 changed files with 3 additions and 39 deletions

View file

@ -23,8 +23,6 @@
#include "plugin.h" #include "plugin.h"
#ifdef HAVE_LCD_BITMAP
#if (MEMORYSIZE > 8) /* Lowmem doesn't have playback in chessbox */ #if (MEMORYSIZE > 8) /* Lowmem doesn't have playback in chessbox */
#define HAVE_PLAYBACK_CONTROL #define HAVE_PLAYBACK_CONTROL
#endif #endif
@ -941,5 +939,3 @@ enum plugin_status plugin_start(const void* parameter) {
return PLUGIN_OK; return PLUGIN_OK;
} }
#endif /* HAVE_LCD_BITMAP */

View file

@ -23,8 +23,6 @@
****************************************************************************/ ****************************************************************************/
#include "plugin.h" #include "plugin.h"
#ifdef HAVE_LCD_BITMAP
#include "fractal.h" #include "fractal.h"
#include "fractal_rect.h" #include "fractal_rect.h"
#include "fractal_sets.h" #include "fractal_sets.h"
@ -254,5 +252,3 @@ enum plugin_status plugin_start(const void* parameter)
} }
return PLUGIN_OK; return PLUGIN_OK;
} }
#endif

View file

@ -22,8 +22,6 @@
#include "plugin.h" #include "plugin.h"
#include "checkbox.h" #include "checkbox.h"
#ifdef HAVE_LCD_BITMAP
/* /*
* Print a checkbox * Print a checkbox
*/ */
@ -42,5 +40,3 @@ void checkbox(int x, int y, int width, int height, bool checked)
rb->lcd_drawline(x + 2, y + height - 2 - 1, x + width - 2 - 1, y + 2); rb->lcd_drawline(x + 2, y + height - 2 - 1, x + width - 2 - 1, y + 2);
} }
} }
#endif

View file

@ -21,7 +21,6 @@
* *
****************************************************************************/ ****************************************************************************/
#ifndef SIMULATOR
#include "plugin.h" #include "plugin.h"
#include "overlay.h" #include "overlay.h"
@ -109,4 +108,3 @@ enum plugin_status run_overlay(const void* parameter,
*(header.api) = rb; *(header.api) = rb;
return header.entry_point(parameter); return header.entry_point(parameter);
} }
#endif

View file

@ -23,7 +23,6 @@
#include "plugin.h" #include "plugin.h"
#ifdef HAVE_LCD_CHARCELLS /* Player only :) */
#include "playergfx.h" #include "playergfx.h"
/*** globals ***/ /*** globals ***/
@ -525,5 +524,3 @@ void pgfx_bitmap(const unsigned char *src, int x, int y, int width, int height)
{ {
pgfx_bitmap_part(src, 0, 0, width, x, y, width, height); pgfx_bitmap_part(src, 0, 0, width, x, y, width, height);
} }
#endif /* HAVE_LCD_CHARCELLS */

View file

@ -22,8 +22,6 @@
#include "plugin.h" #include "plugin.h"
#ifdef HAVE_TOUCHSCREEN
#include "pluginlib_touchscreen.h" #include "pluginlib_touchscreen.h"
/******************************************************************************* /*******************************************************************************
@ -245,5 +243,3 @@ struct ts_raster_button_result touchscreen_raster_map_button(struct ts_raster_bu
map->_prev_btn_state = button; map->_prev_btn_state = button;
return ret; return ret;
} }
#endif /* HAVE_TOUCHSCREEN */

View file

@ -24,7 +24,6 @@
#include "plugin.h" #include "plugin.h"
#ifdef HAVE_LCD_BITMAP
#include "xlcd.h" #include "xlcd.h"
#if (LCD_DEPTH == 2) && (LCD_PIXELFORMAT == VERTICAL_INTERLEAVED) #if (LCD_DEPTH == 2) && (LCD_PIXELFORMAT == VERTICAL_INTERLEAVED)
@ -754,5 +753,3 @@ void xlcd_scroll_down(int count)
#endif /* LCD_PIXELFORMAT, LCD_DEPTH */ #endif /* LCD_PIXELFORMAT, LCD_DEPTH */
#endif /* defined(LCD_STRIDEFORMAT) && LCD_STRIDEFORMAT == VERTICAL_STRIDE */ #endif /* defined(LCD_STRIDEFORMAT) && LCD_STRIDEFORMAT == VERTICAL_STRIDE */
#endif /* HAVE_LCD_BITMAP */

View file

@ -3,11 +3,11 @@ pacbox.c
hardware.c hardware.c
z80.c z80.c
wsg3.c wsg3.c
#if defined(CPU_PP502x) && (LCD_WIDTH >= 288) && (LCD_HEIGHT >= 224) #if defined(CPU_PP502x) && (LCD_WIDTH >= 288) && (LCD_HEIGHT >= 224)
pacbox_arm.S pacbox_arm.S
#elif defined(CPU_COLDFIRE)
pacbox_cf.S
#else #else
pacbox_lcd.c pacbox_lcd.c
#endif #endif
#if defined(CPU_COLDFIRE)
pacbox_cf.S
#endif

View file

@ -28,8 +28,6 @@
#include "arcade.h" #include "arcade.h"
#include "hardware.h" #include "hardware.h"
#if (CONFIG_PLATFORM & PLATFORM_HOSTED) || !defined(IRIVER_H300_SERIES)
void blit_display(fb_data* lcd_framebuffer, unsigned char* vbuf) void blit_display(fb_data* lcd_framebuffer, unsigned char* vbuf)
{ {
fb_data* dst; fb_data* dst;
@ -143,5 +141,3 @@ void blit_display(fb_data* lcd_framebuffer, unsigned char* vbuf)
#endif /* Size >= 144x112 */ #endif /* Size >= 144x112 */
#endif /* Not Colour */ #endif /* Not Colour */
} }
#endif

View file

@ -39,8 +39,6 @@ further options:
#include "plugin.h" #include "plugin.h"
#ifdef HAVE_LCD_BITMAP
#include "reversi-game.h" #include "reversi-game.h"
#include "reversi-strategy.h" #include "reversi-strategy.h"
#include "reversi-gui.h" #include "reversi-gui.h"
@ -802,5 +800,3 @@ enum plugin_status plugin_start(const void *parameter) {
return PLUGIN_OK; return PLUGIN_OK;
} }
#endif

View file

@ -61,8 +61,6 @@ Example ".ss" file, and one with a saved state:
#include "plugin.h" #include "plugin.h"
#include "lib/configfile.h" #include "lib/configfile.h"
#ifdef HAVE_LCD_BITMAP
#include <lib/playback_control.h> #include <lib/playback_control.h>
#include "sudoku.h" #include "sudoku.h"
#include "generator.h" #include "generator.h"
@ -1307,5 +1305,3 @@ enum plugin_status plugin_start(const void* parameter)
#endif #endif
return rc; return rc;
} }
#endif