aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.android
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@android.com>2010-11-17 17:58:29 +0100
committerDavid 'Digit' Turner <digit@android.com>2010-11-18 09:32:28 +0100
commit7a17b608de24e3aaf7d5ca030bb80a74dcc3baf9 (patch)
treeebfcf03154525d19357b25c8dea82c2b42fd0bad /Makefile.android
parentf6cbbf529c7f4d3164243fc2cb9241978b954633 (diff)
downloadexternal_qemu-7a17b608de24e3aaf7d5ca030bb80a74dcc3baf9.zip
external_qemu-7a17b608de24e3aaf7d5ca030bb80a74dcc3baf9.tar.gz
external_qemu-7a17b608de24e3aaf7d5ca030bb80a74dcc3baf9.tar.bz2
Implementation of event loop abstraction.
This patch adds "android/looper.h" which provides an abstraction for event loops: - android/looper-qemu.c implements it on top of the QEMU main event loop. - android/looper-generic.c implements it on top of an IoLooper object. The main idea is to move the UI-related code to use the abstraction to handle timers and asynchronous (network) i/o. NOTE: Code compiles but has not been heavily tested. Change-Id: Ib6820c1b9a9950dc22449a332bc1b066a07af203
Diffstat (limited to 'Makefile.android')
-rw-r--r--Makefile.android10
1 files changed, 7 insertions, 3 deletions
diff --git a/Makefile.android b/Makefile.android
index 870d01e..942b03d 100644
--- a/Makefile.android
+++ b/Makefile.android
@@ -757,12 +757,12 @@ UI_AND_CORE_SOURCES = \
android/utils/assert.c \
android/utils/bufprint.c \
android/utils/debug.c \
+ android/utils/path.c \
android/utils/dirscanner.c \
android/utils/filelock.c \
android/utils/mapfile.c \
android/utils/misc.c \
android/utils/panic.c \
- android/utils/path.c \
android/utils/reflist.c \
android/utils/refset.c \
android/utils/stralloc.c \
@@ -863,6 +863,7 @@ endif
VL_SOURCES := framebuffer.c \
user-events-qemu.c \
android/cmdline-option.c \
+ android/looper-qemu.c \
android/main.c \
# Add common system libraries
@@ -1038,6 +1039,8 @@ LOCAL_LDLIBS += $(AUDIO_LDLIBS)
#
VL_SOURCES := framebuffer.c \
user-events-qemu.c \
+ android/looper-qemu.c \
+ android/looper-generic.c \
# Add common system libraries
#
@@ -1186,12 +1189,13 @@ VL_SOURCES := framebuffer.c \
android/cmdline-option.c \
android/config.c \
android/display.c \
+ android/looper-generic.c \
android/snapshot.c \
android/main.c \
qemu-timer-ui.c \
vl-android-ui.c \
- console-ui.c \
- iolooper-select.c \
+ console-ui.c \
+ iolooper-select.c \
# Add common system libraries
#