diff options
author | Thomas Jarosch <tomj@simonv.com> | 2011-02-24 23:35:16 +0000 |
---|---|---|
committer | Thomas Jarosch <tomj@simonv.com> | 2011-02-24 23:35:16 +0000 |
commit | e3a3e2c9c2142503b699cfd31f0582eb0666ea08 (patch) | |
tree | c392c37bd133b2c538d7b143385f24e6ae1fc005 /apps/plugins/plugins.make | |
parent | 00e5a9c0880a512acbd6c9c421b3d6bad3bcdcc1 (diff) | |
download | rockbox-e3a3e2c9c2142503b699cfd31f0582eb0666ea08.tar.gz rockbox-e3a3e2c9c2142503b699cfd31f0582eb0666ea08.zip |
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
Diffstat (limited to 'apps/plugins/plugins.make')
-rw-r--r-- | apps/plugins/plugins.make | 15 |
1 files changed, 15 insertions, 0 deletions
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)) |