summaryrefslogtreecommitdiff
path: root/apps/plugins/plugins.make
diff options
context:
space:
mode:
authorThomas Jarosch <tomj@simonv.com>2011-02-24 23:35:16 +0000
committerThomas Jarosch <tomj@simonv.com>2011-02-24 23:35:16 +0000
commite3a3e2c9c2142503b699cfd31f0582eb0666ea08 (patch)
treec392c37bd133b2c538d7b143385f24e6ae1fc005 /apps/plugins/plugins.make
parent00e5a9c0880a512acbd6c9c421b3d6bad3bcdcc1 (diff)
downloadrockbox-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.make15
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:
11is_app_build =
12ifdef APP_TYPE
13ifneq ($(APP_TYPE),sdl-sim)
14 is_app_build = yes
15endif
16endif
17
18ifdef is_app_build
19PLUGINS_SRC = $(call preprocess, $(APPSDIR)/plugins/SOURCES.app_build)
20else
11PLUGINS_SRC = $(call preprocess, $(APPSDIR)/plugins/SOURCES) 21PLUGINS_SRC = $(call preprocess, $(APPSDIR)/plugins/SOURCES)
22endif
12OTHER_SRC += $(PLUGINS_SRC) 23OTHER_SRC += $(PLUGINS_SRC)
13ROCKS1 := $(PLUGINS_SRC:.c=.rock) 24ROCKS1 := $(PLUGINS_SRC:.c=.rock)
14ROCKS1 := $(subst $(ROOTDIR),$(BUILDDIR),$(ROCKS1)) 25ROCKS1 := $(subst $(ROOTDIR),$(BUILDDIR),$(ROCKS1))
@@ -36,7 +47,11 @@ endif
36OTHER_SRC += $(ROOTDIR)/apps/plugins/plugin_crt0.c 47OTHER_SRC += $(ROOTDIR)/apps/plugins/plugin_crt0.c
37PLUGIN_CRT0 := $(BUILDDIR)/apps/plugins/plugin_crt0.o 48PLUGIN_CRT0 := $(BUILDDIR)/apps/plugins/plugin_crt0.o
38# multifile plugins (subdirs): 49# multifile plugins (subdirs):
50ifdef is_app_build
51PLUGINSUBDIRS := $(call preprocess, $(APPSDIR)/plugins/SUBDIRS.app_build)
52else
39PLUGINSUBDIRS := $(call preprocess, $(APPSDIR)/plugins/SUBDIRS) 53PLUGINSUBDIRS := $(call preprocess, $(APPSDIR)/plugins/SUBDIRS)
54endif
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))