summaryrefslogtreecommitdiff
path: root/Android.mk
diff options
context:
space:
mode:
authorSean Paul <seanpaul@chromium.org>2015-01-22 18:01:18 -0500
committerSean Paul <seanpaul@google.com>2015-02-04 14:46:27 -0800
commitcd36a9e3864aaba47ba22af36fad97fe6c782637 (patch)
tree77dcf322fd9ca9e7d872a450464bbea9991d5b12 /Android.mk
parent9aa5ad3e2e25610c86ffc0714302b5905fbb8451 (diff)
drm_hwcomposer: Split gralloc out into an importer
Add the concept of an importer so we can plug in different sources of bo. Signed-off-by: Sean Paul <seanpaul@chromium.org> Change-Id: I4f741ef4fa7c44e9cb31db61a146aed273854a69
Diffstat (limited to 'Android.mk')
-rw-r--r--Android.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index 2eb3212..efc78ce 100644
--- a/Android.mk
+++ b/Android.mk
@@ -16,6 +16,9 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
+# TODO: We should specify this in device.mk
+BUFFER_IMPORTER := gralloc
+
LOCAL_SHARED_LIBRARIES := \
libdrm \
libhardware \
@@ -32,6 +35,12 @@ LOCAL_C_INCLUDES := \
LOCAL_CFLAGS :=
LOCAL_SRC_FILES := hwcomposer.cpp
+
+ifeq ($(strip $(BUFFER_IMPORTER)),gralloc)
+LOCAL_C_INCLUDES += external/drm_gralloc
+LOCAL_SRC_FILES += hwcomposer_import_drm_gralloc.cpp
+endif
+
LOCAL_MODULE := hwcomposer.drm
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_RELATIVE_PATH := hw