forked from len0rd/rockbox
RaaA: Enable plugins for application builds
Use own plugins/SOURCES and plugins/SUBDIRS file to avoid ifdef hell for disabled plugins without a keymap. This finally brings the credits screen to RaaA. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29392 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
00e5a9c088
commit
e3a3e2c9c2
5 changed files with 81 additions and 3 deletions
41
apps/plugins/SOURCES.app_build
Normal file
41
apps/plugins/SOURCES.app_build
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
/* plugins common to all models */
|
||||||
|
credits.c
|
||||||
|
properties.c
|
||||||
|
random_folder_advance_config.c
|
||||||
|
search.c
|
||||||
|
sort.c
|
||||||
|
theme_remove.c
|
||||||
|
vbrfix.c
|
||||||
|
|
||||||
|
#ifdef HAVE_TEST_PLUGINS /* enable in advanced build options */
|
||||||
|
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
|
||||||
|
test_boost.c
|
||||||
|
#endif
|
||||||
|
#if CONFIG_CODEC == SWCODEC
|
||||||
|
test_codec.c
|
||||||
|
#endif
|
||||||
|
#ifdef HAVE_JPEG
|
||||||
|
test_core_jpeg.c
|
||||||
|
#endif
|
||||||
|
test_disk.c
|
||||||
|
#ifdef HAVE_LCD_BITMAP
|
||||||
|
#if LCD_DEPTH < 4 && !defined(SIMULATOR)
|
||||||
|
test_scanrate.c
|
||||||
|
#endif
|
||||||
|
#ifndef HAVE_LCD_COLOR
|
||||||
|
test_grey.c
|
||||||
|
test_greylib_bitmap_scale.c
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
test_mem.c
|
||||||
|
#ifdef HAVE_LCD_BITMAP
|
||||||
|
test_mem_jpeg.c
|
||||||
|
#endif
|
||||||
|
#ifdef HAVE_LCD_COLOR
|
||||||
|
test_resize.c
|
||||||
|
#endif
|
||||||
|
#if CONFIG_CODEC == SWCODEC
|
||||||
|
test_sampr.c
|
||||||
|
#endif
|
||||||
|
test_viewports.c
|
||||||
|
#endif /* HAVE_TEST_PLUGINS */
|
17
apps/plugins/SUBDIRS.app_build
Normal file
17
apps/plugins/SUBDIRS.app_build
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
/* For all targets with a bitmap display */
|
||||||
|
#ifdef HAVE_LCD_BITMAP
|
||||||
|
|
||||||
|
#ifdef HAVE_TAGCACHE
|
||||||
|
pictureflow
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* HAVE_LCD_BITMAP */
|
||||||
|
|
||||||
|
/* For all the swcodec targets */
|
||||||
|
#if CONFIG_CODEC == SWCODEC
|
||||||
|
|
||||||
|
#if MEMORYSIZE > 2 /* we need a lot of RAM for instruments */
|
||||||
|
mikmod
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* CONFIG_CODEC == SWCODEC */
|
|
@ -8,7 +8,18 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
# single-file plugins:
|
# single-file plugins:
|
||||||
|
is_app_build =
|
||||||
|
ifdef APP_TYPE
|
||||||
|
ifneq ($(APP_TYPE),sdl-sim)
|
||||||
|
is_app_build = yes
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifdef is_app_build
|
||||||
|
PLUGINS_SRC = $(call preprocess, $(APPSDIR)/plugins/SOURCES.app_build)
|
||||||
|
else
|
||||||
PLUGINS_SRC = $(call preprocess, $(APPSDIR)/plugins/SOURCES)
|
PLUGINS_SRC = $(call preprocess, $(APPSDIR)/plugins/SOURCES)
|
||||||
|
endif
|
||||||
OTHER_SRC += $(PLUGINS_SRC)
|
OTHER_SRC += $(PLUGINS_SRC)
|
||||||
ROCKS1 := $(PLUGINS_SRC:.c=.rock)
|
ROCKS1 := $(PLUGINS_SRC:.c=.rock)
|
||||||
ROCKS1 := $(subst $(ROOTDIR),$(BUILDDIR),$(ROCKS1))
|
ROCKS1 := $(subst $(ROOTDIR),$(BUILDDIR),$(ROCKS1))
|
||||||
|
@ -36,7 +47,11 @@ endif
|
||||||
OTHER_SRC += $(ROOTDIR)/apps/plugins/plugin_crt0.c
|
OTHER_SRC += $(ROOTDIR)/apps/plugins/plugin_crt0.c
|
||||||
PLUGIN_CRT0 := $(BUILDDIR)/apps/plugins/plugin_crt0.o
|
PLUGIN_CRT0 := $(BUILDDIR)/apps/plugins/plugin_crt0.o
|
||||||
# multifile plugins (subdirs):
|
# multifile plugins (subdirs):
|
||||||
|
ifdef is_app_build
|
||||||
|
PLUGINSUBDIRS := $(call preprocess, $(APPSDIR)/plugins/SUBDIRS.app_build)
|
||||||
|
else
|
||||||
PLUGINSUBDIRS := $(call preprocess, $(APPSDIR)/plugins/SUBDIRS)
|
PLUGINSUBDIRS := $(call preprocess, $(APPSDIR)/plugins/SUBDIRS)
|
||||||
|
endif
|
||||||
|
|
||||||
# include <dir>.make from each subdir (yay!)
|
# include <dir>.make from each subdir (yay!)
|
||||||
$(foreach dir,$(PLUGINSUBDIRS),$(eval include $(dir)/$(notdir $(dir)).make))
|
$(foreach dir,$(PLUGINSUBDIRS),$(eval include $(dir)/$(notdir $(dir)).make))
|
||||||
|
|
|
@ -79,6 +79,11 @@
|
||||||
/* Define this if you do software codec */
|
/* Define this if you do software codec */
|
||||||
#define CONFIG_CODEC SWCODEC
|
#define CONFIG_CODEC SWCODEC
|
||||||
|
|
||||||
|
/* Work around debug macro expansion of strncmp in scratchbox */
|
||||||
|
#if (CONFIG_PLATFORM & PLATFORM_MAEMO)
|
||||||
|
#define _HAVE_STRING_ARCH_strncmp
|
||||||
|
#endif
|
||||||
|
|
||||||
#if (CONFIG_PLATFORM & (PLATFORM_ANDROID|PLATFORM_MAEMO))
|
#if (CONFIG_PLATFORM & (PLATFORM_ANDROID|PLATFORM_MAEMO))
|
||||||
#define HAVE_MULTIMEDIA_KEYS
|
#define HAVE_MULTIMEDIA_KEYS
|
||||||
#endif
|
#endif
|
||||||
|
|
6
tools/configure
vendored
6
tools/configure
vendored
|
@ -2918,7 +2918,7 @@ fi
|
||||||
output="rockbox"
|
output="rockbox"
|
||||||
bootoutput="rockbox"
|
bootoutput="rockbox"
|
||||||
appextra="recorder:gui:radio"
|
appextra="recorder:gui:radio"
|
||||||
plugins=""
|
plugins="yes"
|
||||||
swcodec="yes"
|
swcodec="yes"
|
||||||
# architecture, manufacturer and model for the target-tree build
|
# architecture, manufacturer and model for the target-tree build
|
||||||
t_cpu="hosted"
|
t_cpu="hosted"
|
||||||
|
@ -2974,7 +2974,7 @@ fi
|
||||||
output="rockbox"
|
output="rockbox"
|
||||||
bootoutput="rockbox"
|
bootoutput="rockbox"
|
||||||
appextra="recorder:gui:radio"
|
appextra="recorder:gui:radio"
|
||||||
plugins=""
|
plugins="yes"
|
||||||
swcodec="yes"
|
swcodec="yes"
|
||||||
# architecture, manufacturer and model for the target-tree build
|
# architecture, manufacturer and model for the target-tree build
|
||||||
t_cpu="hosted"
|
t_cpu="hosted"
|
||||||
|
@ -3002,7 +3002,7 @@ fi
|
||||||
output="rockbox"
|
output="rockbox"
|
||||||
bootoutput="rockbox"
|
bootoutput="rockbox"
|
||||||
appextra="recorder:gui:radio"
|
appextra="recorder:gui:radio"
|
||||||
plugins=""
|
plugins="yes"
|
||||||
swcodec="yes"
|
swcodec="yes"
|
||||||
# architecture, manufacturer and model for the target-tree build
|
# architecture, manufacturer and model for the target-tree build
|
||||||
t_cpu="hosted"
|
t_cpu="hosted"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue