Combine UI sources under one variable.
Also move couple of src files under ./android to the list of core src.
Change-Id: Id765a81f206b457d17366c83fc8c8f5870369a72
diff --git a/Makefile.android b/Makefile.android
index 10baf34..1e83e3b 100644
--- a/Makefile.android
+++ b/Makefile.android
@@ -602,7 +602,9 @@
# misc. sources
#
-CORE_MISC_SOURCES =
+CORE_MISC_SOURCES = android/boot-properties.c \
+ android/hw-kmsg.c \
+
ifeq ($(HOST_ARCH),x86)
CORE_MISC_SOURCES += i386-dis.c
endif
@@ -628,6 +630,17 @@
CORE_SOURCES += $(CORE_MIGRATION_SOURCES) $(CORE_MISC_SOURCES)
##############################################################################
+# lists of source files used to build the emulator UI
+#
+
+UI_SOURCES = android/user-config.c \
+ android/resource.c \
+ android/charmap.c \
+ android/qemulator.c \
+ android/keycode.c \
+ android/hw-lcd.c \
+
+##############################################################################
# now build the emulator itself
#
include $(CLEAR_VARS)
@@ -729,8 +742,6 @@
qlist.c \
qstring.c \
user-events-qemu.c \
- android/boot-properties.c \
- android/charmap.c \
android/cmdline-option.c \
android/config.c \
android/console.c \
@@ -738,15 +749,9 @@
android/help.c \
android/hw-control.c \
android/hw-events.c \
- android/hw-kmsg.c \
- android/hw-lcd.c \
android/hw-qemud.c \
android/hw-sensors.c \
- android/keycode.c \
android/main.c \
- android/qemulator.c \
- android/resource.c \
- android/user-config.c \
android/utils/bufprint.c \
android/utils/debug.c \
android/utils/dirscanner.c \
@@ -771,7 +776,7 @@
LOCAL_LDLIBS += -L/usr/local/lib -lpthread -lX11 -lutil
endif
-LOCAL_SRC_FILES += $(VL_SOURCES) $(CORE_SOURCES)
+LOCAL_SRC_FILES += $(VL_SOURCES) $(CORE_SOURCES) $(UI_SOURCES)
ifeq ($(HOST_OS),linux)
LOCAL_LDLIBS += -lutil -lrt