OSDN Git Service

Only build when BOARD_USE_MESA is true
authorDaniel Leung <daniel.leung@intel.com>
Mon, 7 Jan 2013 07:52:20 +0000 (09:52 +0200)
committerChad Versace <chad.versace@linux.intel.com>
Wed, 10 Apr 2013 19:08:29 +0000 (12:08 -0700)
This causes emulator builds to fail. So only build this
when board config specifies the need for this module.

Change-Id: Iad623b13a8ea568830c6729efdfb41890c9ede13
Depends-Change-Id: I574e53bbefad16e7b866c550df46f4f52c831ddd
Signed-off-by: Daniel Leung <daniel.leung@intel.com>
Android.mk

index 80c0e13..dbbda6f 100644 (file)
@@ -29,6 +29,8 @@
 # The main target is libGLES_mesa.  For each classic driver enabled, a DRI
 # module will also be built.  DRI modules will be loaded by libGLES_mesa.
 
+ifeq ($(BOARD_USE_MESA),true)
+
 MESA_TOP := $(call my-dir)
 
 MESA_ANDROID_MAJOR_VERSION := $(word 1, $(subst ., , $(PLATFORM_VERSION)))
@@ -97,3 +99,5 @@ mkfiles := $(patsubst %,$(MESA_TOP)/%/Android.mk,$(SUBDIRS))
 include $(mkfiles)
 
 endif
+
+endif