1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
diff --git a/apps/plugins/plugins.make b/apps/plugins/plugins.make
index a7630ea..f60bac1 100644
--- a/apps/plugins/plugins.make
+++ b/apps/plugins/plugins.make
@@ -8,7 +8,18 @@
 #

 # single-file plugins:
-ifdef APP_TYPE
+is_app_build =
+ifdef ANDROID
+  is_app_build = yes
+endif
+ifdef MAEMO4
+  is_app_build = yes
+endif
+ifdef MAEMO5
+  is_app_build = yes
+endif
+
+ifdef is_app_build
 PLUGINS_SRC = $(call preprocess, $(APPSDIR)/plugins/SOURCES.app_build)
 else
 PLUGINS_SRC = $(call preprocess, $(APPSDIR)/plugins/SOURCES)
@@ -40,7 +51,7 @@ endif
 OTHER_SRC += $(ROOTDIR)/apps/plugins/plugin_crt0.c
 PLUGIN_CRT0 := $(BUILDDIR)/apps/plugins/plugin_crt0.o
 # multifile plugins (subdirs):
-ifdef APP_TYPE
+ifdef is_app_build
 PLUGINSUBDIRS := $(call preprocess, $(APPSDIR)/plugins/SUBDIRS.app_build)
 else
 PLUGINSUBDIRS := $(call preprocess, $(APPSDIR)/plugins/SUBDIRS)