summaryrefslogtreecommitdiff
path: root/Android.mk
diff options
context:
space:
mode:
authorChia-I Wu <olv@lunarg.com>2011-08-25 21:36:19 +0800
committerChia-I Wu <olvaffe@gmail.com>2011-08-27 18:02:11 +0800
commit09b5f1fd61bfbb5afdaee81687a9c74c70a62b8a (patch)
treee38f04d23943d6a28b5ee0defb2eb50ca4f08fbf /Android.mk
parent534df791878ed90cf7c2e4f14482ff03b7c41e77 (diff)
android: make DRM optional
For BOARD_GPU_DRIVERS=swrast build, DRM is not needed.
Diffstat (limited to 'Android.mk')
-rw-r--r--Android.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/Android.mk b/Android.mk
index 9dbb3c9a3d..ed68aec65c 100644
--- a/Android.mk
+++ b/Android.mk
@@ -38,7 +38,7 @@ DRM_GRALLOC_TOP := hardware/drm_gralloc
classic_drivers :=
gallium_drivers := swrast i915g nouveau r300g r600g vmwgfx
-MESA_GPU_DRIVERS := $(BOARD_GPU_DRIVERS)
+MESA_GPU_DRIVERS := $(strip $(BOARD_GPU_DRIVERS))
# warn about invalid drivers
invalid_drivers := $(filter-out \
@@ -97,12 +97,16 @@ LOCAL_WHOLE_STATIC_LIBRARIES := libmesa_egl
LOCAL_SHARED_LIBRARIES := \
libglapi \
- libdrm \
libdl \
libhardware \
liblog \
libcutils
+# hardware drivers require DRM
+ifneq ($(MESA_GPU_DRIVERS),swrast)
+LOCAL_SHARED_LIBRARIES += libdrm
+endif
+
ifeq ($(strip $(MESA_BUILD_GALLIUM)),true)
gallium_DRIVERS :=