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
|
@ -8,7 +8,18 @@
|
|||
#
|
||||
|
||||
# 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)
|
||||
endif
|
||||
OTHER_SRC += $(PLUGINS_SRC)
|
||||
ROCKS1 := $(PLUGINS_SRC:.c=.rock)
|
||||
ROCKS1 := $(subst $(ROOTDIR),$(BUILDDIR),$(ROCKS1))
|
||||
|
@ -36,7 +47,11 @@ endif
|
|||
OTHER_SRC += $(ROOTDIR)/apps/plugins/plugin_crt0.c
|
||||
PLUGIN_CRT0 := $(BUILDDIR)/apps/plugins/plugin_crt0.o
|
||||
# multifile plugins (subdirs):
|
||||
ifdef is_app_build
|
||||
PLUGINSUBDIRS := $(call preprocess, $(APPSDIR)/plugins/SUBDIRS.app_build)
|
||||
else
|
||||
PLUGINSUBDIRS := $(call preprocess, $(APPSDIR)/plugins/SUBDIRS)
|
||||
endif
|
||||
|
||||
# include <dir>.make from each subdir (yay!)
|
||||
$(foreach dir,$(PLUGINSUBDIRS),$(eval include $(dir)/$(notdir $(dir)).make))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue