From 240923a801382c86545d10be167a15892a556fb6 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Mon, 2 Aug 2010 20:34:47 +0000 Subject: Rockbox as an application: Commit current Android port progress. General state is: Rockbox is usable (plays music, saves configuration, touchscreen works too). Problems: - Playing music in the background (i.e. when switching to another app) doesn't work reliably, but I'm working on that now. - no cabbiev2 (only some preliminary files for it), no other default theme. - screen flickers sometimes if the updates are too frequent - no multi screen apk/package - strange behavior when a phone call comes in The java files (and the eclipse project) resides in android/, which is also supposed to be the build folder. I've put a small README in there for instructions. There are some steps needed after the make part, which are described there, and which eclipse mostly handles. But there ought to be some script/makefile rules which do that instead in the future. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27668 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/config/application.h | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) (limited to 'firmware/export/config/application.h') diff --git a/firmware/export/config/application.h b/firmware/export/config/application.h index a5583ded75..988f0d51ac 100644 --- a/firmware/export/config/application.h +++ b/firmware/export/config/application.h @@ -4,11 +4,13 @@ #define TARGET_TREE /* this target is using the target tree system */ /* We don't run on hardware directly */ -#define CONFIG_PLATFORM PLATFORM_HOSTED +#ifdef ANDROID +#define CONFIG_PLATFORM (PLATFORM_HOSTED|PLATFORM_ANDROID) +#else +#define CONFIG_PLATFORM (PLATFORM_HOSTED|PLATFORM_SDL) +#endif /* For Rolo and boot loader */ -/* -#define MODEL_NUMBER 24 -*/ +#define MODEL_NUMBER 100 #define MODEL_NAME "Rockbox" @@ -37,9 +39,17 @@ /* define this if you would like tagcache to build on this target */ #define HAVE_TAGCACHE -/* LCD dimensions */ +/* LCD dimensions + * + * overriden by configure for application builds */ +#ifndef LCD_WIDTH #define LCD_WIDTH 320 -#define LCD_HEIGHT 240 +#endif + +#ifndef LCD_HEIGHT +#define LCD_HEIGHT 480 +#endif + #define LCD_DEPTH 16 #define LCD_PIXELFORMAT 565 @@ -62,10 +72,10 @@ #define CONFIG_CODEC SWCODEC #define CONFIG_KEYPAD COWON_D2_PAD + +#if (CONFIG_PLATFORM & PLATFORM_SDL) /* Use SDL audio/pcm in a SDL app build */ #define HAVE_SDL - -#ifdef HAVE_SDL #define HAVE_SDL_AUDIO #endif @@ -92,3 +102,5 @@ /* Define this if a programmable hotkey is mapped */ //#define HAVE_HOTKEY + +#define BOOTDIR "/.rockbox" -- cgit v1.2.3