android: export the path of the generated headers
authorChih-Wei Huang <cwhuang@android-x86.org>
Fri, 3 Apr 2015 21:01:23 +0000 (05:01 +0800)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 22 Apr 2015 14:53:36 +0000 (15:53 +0100)
The modules need the headers can get the path automatically.

Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
src/mesa/Android.libmesa_dricore.mk
src/mesa/Android.libmesa_st_mesa.mk
src/mesa/drivers/dri/Android.mk
src/mesa/drivers/dri/common/Android.mk
src/mesa/program/Android.mk

index bd088ab0cc21c96904b78f0990e594e80ab951b3..2e308b837332c4a3e453ee39638e7642372e97b0 100644 (file)
@@ -57,7 +57,6 @@ LOCAL_CFLAGS := \
 endif
 
 LOCAL_C_INCLUDES := \
-       $(call intermediates-dir-for STATIC_LIBRARIES,libmesa_program,,) \
        $(MESA_TOP)/src/mapi \
        $(MESA_TOP)/src/mesa/main \
        $(MESA_TOP)/src/glsl \
index e02030b7820c3446551ee9bb0bfecf260ca0c15d..b4b7fd977227843841edda86b4544a9d4f931325 100644 (file)
@@ -52,7 +52,6 @@ LOCAL_CFLAGS := \
 endif
 
 LOCAL_C_INCLUDES := \
-       $(call intermediates-dir-for STATIC_LIBRARIES,libmesa_program,,) \
        $(MESA_TOP)/src/mapi \
        $(MESA_TOP)/src/mesa/main \
        $(MESA_TOP)/src/glsl \
index 64e237b1744b55c9afceac91daadd1476809231e..2c80f502bec6c31631b4a1b3ab39c099bd082c2d 100644 (file)
@@ -35,7 +35,6 @@ MESA_DRI_CFLAGS := \
        -DHAVE_ANDROID_PLATFORM
 
 MESA_DRI_C_INCLUDES := \
-       $(call intermediates-dir-for,STATIC_LIBRARIES,libmesa_dri_common) \
        $(addprefix $(MESA_TOP)/, $(mesa_dri_common_INCLUDES)) \
        $(MESA_TOP)/src/gallium/include \
        $(MESA_TOP)/src/gallium/auxiliary \
index 458e4e931fe356fb481878fa40c7dbb59bb3a4c3..511d4afad12a8078030404b44f12412ad585ffe2 100644 (file)
@@ -39,6 +39,8 @@ intermediates := $(call local-generated-sources-dir)
 LOCAL_C_INCLUDES := \
     $(MESA_DRI_C_INCLUDES)
 
+LOCAL_EXPORT_C_INCLUDE_DIRS := $(intermediates)
+
 # swrast only
 ifeq ($(MESA_GPU_DRIVERS),swrast)
 LOCAL_CFLAGS := -D__NOT_HAVE_DRM_H
index 9a6f9629463b816f1601458a6992806c4dc3ff4d..ccb0fa5f32b2a01afe7fd4db2a522d4669f515b6 100644 (file)
@@ -78,5 +78,7 @@ LOCAL_C_INCLUDES := \
        $(MESA_TOP)/src/gallium/auxiliary \
        $(MESA_TOP)/src/gallium/include
 
+LOCAL_EXPORT_C_INCLUDE_DIRS := $(intermediates)
+
 include $(MESA_COMMON_MK)
 include $(BUILD_STATIC_LIBRARY)