diff options
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/SOURCES.app_build | 41 | ||||
-rw-r--r-- | apps/plugins/SUBDIRS.app_build | 17 | ||||
-rw-r--r-- | apps/plugins/plugins.make | 15 |
3 files changed, 73 insertions, 0 deletions
diff --git a/apps/plugins/SOURCES.app_build b/apps/plugins/SOURCES.app_build new file mode 100644 index 0000000000..ddac2b9ba8 --- /dev/null +++ b/apps/plugins/SOURCES.app_build | |||
@@ -0,0 +1,41 @@ | |||
1 | /* plugins common to all models */ | ||
2 | credits.c | ||
3 | properties.c | ||
4 | random_folder_advance_config.c | ||
5 | search.c | ||
6 | sort.c | ||
7 | theme_remove.c | ||
8 | vbrfix.c | ||
9 | |||
10 | #ifdef HAVE_TEST_PLUGINS /* enable in advanced build options */ | ||
11 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ | ||
12 | test_boost.c | ||
13 | #endif | ||
14 | #if CONFIG_CODEC == SWCODEC | ||
15 | test_codec.c | ||
16 | #endif | ||
17 | #ifdef HAVE_JPEG | ||
18 | test_core_jpeg.c | ||
19 | #endif | ||
20 | test_disk.c | ||
21 | #ifdef HAVE_LCD_BITMAP | ||
22 | #if LCD_DEPTH < 4 && !defined(SIMULATOR) | ||
23 | test_scanrate.c | ||
24 | #endif | ||
25 | #ifndef HAVE_LCD_COLOR | ||
26 | test_grey.c | ||
27 | test_greylib_bitmap_scale.c | ||
28 | #endif | ||
29 | #endif | ||
30 | test_mem.c | ||
31 | #ifdef HAVE_LCD_BITMAP | ||
32 | test_mem_jpeg.c | ||
33 | #endif | ||
34 | #ifdef HAVE_LCD_COLOR | ||
35 | test_resize.c | ||
36 | #endif | ||
37 | #if CONFIG_CODEC == SWCODEC | ||
38 | test_sampr.c | ||
39 | #endif | ||
40 | test_viewports.c | ||
41 | #endif /* HAVE_TEST_PLUGINS */ | ||
diff --git a/apps/plugins/SUBDIRS.app_build b/apps/plugins/SUBDIRS.app_build new file mode 100644 index 0000000000..dbf4382b62 --- /dev/null +++ b/apps/plugins/SUBDIRS.app_build | |||
@@ -0,0 +1,17 @@ | |||
1 | /* For all targets with a bitmap display */ | ||
2 | #ifdef HAVE_LCD_BITMAP | ||
3 | |||
4 | #ifdef HAVE_TAGCACHE | ||
5 | pictureflow | ||
6 | #endif | ||
7 | |||
8 | #endif /* HAVE_LCD_BITMAP */ | ||
9 | |||
10 | /* For all the swcodec targets */ | ||
11 | #if CONFIG_CODEC == SWCODEC | ||
12 | |||
13 | #if MEMORYSIZE > 2 /* we need a lot of RAM for instruments */ | ||
14 | mikmod | ||
15 | #endif | ||
16 | |||
17 | #endif /* CONFIG_CODEC == SWCODEC */ | ||
diff --git a/apps/plugins/plugins.make b/apps/plugins/plugins.make index 30cf26f621..3271c57303 100644 --- a/apps/plugins/plugins.make +++ b/apps/plugins/plugins.make | |||
@@ -8,7 +8,18 @@ | |||
8 | # | 8 | # |
9 | 9 | ||
10 | # single-file plugins: | 10 | # single-file plugins: |
11 | is_app_build = | ||
12 | ifdef APP_TYPE | ||
13 | ifneq ($(APP_TYPE),sdl-sim) | ||
14 | is_app_build = yes | ||
15 | endif | ||
16 | endif | ||
17 | |||
18 | ifdef is_app_build | ||
19 | PLUGINS_SRC = $(call preprocess, $(APPSDIR)/plugins/SOURCES.app_build) | ||
20 | else | ||
11 | PLUGINS_SRC = $(call preprocess, $(APPSDIR)/plugins/SOURCES) | 21 | PLUGINS_SRC = $(call preprocess, $(APPSDIR)/plugins/SOURCES) |
22 | endif | ||
12 | OTHER_SRC += $(PLUGINS_SRC) | 23 | OTHER_SRC += $(PLUGINS_SRC) |
13 | ROCKS1 := $(PLUGINS_SRC:.c=.rock) | 24 | ROCKS1 := $(PLUGINS_SRC:.c=.rock) |
14 | ROCKS1 := $(subst $(ROOTDIR),$(BUILDDIR),$(ROCKS1)) | 25 | ROCKS1 := $(subst $(ROOTDIR),$(BUILDDIR),$(ROCKS1)) |
@@ -36,7 +47,11 @@ endif | |||
36 | OTHER_SRC += $(ROOTDIR)/apps/plugins/plugin_crt0.c | 47 | OTHER_SRC += $(ROOTDIR)/apps/plugins/plugin_crt0.c |
37 | PLUGIN_CRT0 := $(BUILDDIR)/apps/plugins/plugin_crt0.o | 48 | PLUGIN_CRT0 := $(BUILDDIR)/apps/plugins/plugin_crt0.o |
38 | # multifile plugins (subdirs): | 49 | # multifile plugins (subdirs): |
50 | ifdef is_app_build | ||
51 | PLUGINSUBDIRS := $(call preprocess, $(APPSDIR)/plugins/SUBDIRS.app_build) | ||
52 | else | ||
39 | PLUGINSUBDIRS := $(call preprocess, $(APPSDIR)/plugins/SUBDIRS) | 53 | PLUGINSUBDIRS := $(call preprocess, $(APPSDIR)/plugins/SUBDIRS) |
54 | endif | ||
40 | 55 | ||
41 | # include <dir>.make from each subdir (yay!) | 56 | # include <dir>.make from each subdir (yay!) |
42 | $(foreach dir,$(PLUGINSUBDIRS),$(eval include $(dir)/$(notdir $(dir)).make)) | 57 | $(foreach dir,$(PLUGINSUBDIRS),$(eval include $(dir)/$(notdir $(dir)).make)) |