android: gallium/nouveau: fix include folders, link against libstlport
authorEmil Velikov <emil.l.velikov@gmail.com>
Sun, 20 Jul 2014 20:18:34 +0000 (21:18 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 12 Aug 2014 23:46:52 +0000 (00:46 +0100)
nouveau uses STL for a while now thus we need to include
external/stlport/libstlport.mk in order to get the build
at least partially working.

v2: Use the installed libdrm headers over the DRM_TOP ones.

Cc: "10.1 10.2" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
src/gallium/drivers/nouveau/Android.mk
src/gallium/winsys/nouveau/drm/Android.mk

index 5275aa601573633f45b22b985ff714231dc1e446..5870aa04b99f6c6134917bbbc052841f8d9983ab 100644 (file)
@@ -28,18 +28,19 @@ include $(LOCAL_PATH)/Makefile.sources
 
 include $(CLEAR_VARS)
 
-LOCAL_SRC_FILES := $(C_SOURCES) \
+LOCAL_SRC_FILES := \
+       $(C_SOURCES) \
        $(NV30_C_SOURCES) \
        $(NV50_CODEGEN_SOURCES) \
        $(NV50_C_SOURES) \
        $(NVC0_CODEGEN_SOURCES) \
        $(NVC0_C_SOURCES)
 
-LOCAL_C_INCLUDES := $(DRM_TOP) \
-       $(DRM_TOP)/include/drm \
-       $(DRM_TOP)/nouveau
+LOCAL_C_INCLUDES := \
+       $(TARGET_OUT_HEADERS)/libdrm
 
 LOCAL_MODULE := libmesa_pipe_nouveau
 
+include external/stlport/libstlport.mk
 include $(GALLIUM_COMMON_MK)
 include $(BUILD_STATIC_LIBRARY)
index 2e2a9d12d367387fee0fe99c26e2bdf9dcee82cb..142cc6bc3870ec603fdebe49b7939c3e9c1dfa4d 100644 (file)
@@ -30,10 +30,7 @@ include $(CLEAR_VARS)
 
 LOCAL_SRC_FILES := $(C_SOURCES)
 
-LOCAL_C_INCLUDES := \
-       $(DRM_TOP) \
-       $(DRM_TOP)/include/drm \
-       $(DRM_TOP)/nouveau
+LOCAL_C_INCLUDES := $(TARGET_OUT_HEADERS)/libdrm
 
 LOCAL_MODULE := libmesa_winsys_nouveau