Fix checkbuild on Mac builders.

The libmesa_dri_common target depends on xgettext unconditionally, but
this is not a documented dependency of AOSP and is not installed on the
Mac builders, so we must not build any part of mesa3d on these
platforms.

Bug: 79909534
Bug: 79165890
Change-Id: Ice7129f046ca823e80132e34911c9bb8f1226b4c
Signed-off-by: Alistair Strachan <astrachan@google.com>
diff --git a/Android.mk b/Android.mk
index 5ccd008..128db4d 100644
--- a/Android.mk
+++ b/Android.mk
@@ -30,6 +30,7 @@
 # module will also be built.  DRI modules will be loaded by libGLES_mesa.
 
 ifneq ($(BOARD_USE_CUSTOMIZED_MESA), true)
+ifneq ($(BOARD_GPU_DRIVERS),)
 
 MESA_TOP := $(call my-dir)
 
@@ -128,4 +129,5 @@
 INC_DIRS += $(call all-named-subdir-makefiles,src/gallium)
 include $(INC_DIRS)
 
-endif
+endif # BOARD_GPU_DRIVERS != ""
+endif # BOARD_USE_CUSTOMIZED_MESA != true