nv50,nvc0: fix push hint logic in presence of a start offset
[mesa.git] / src / gallium / drivers / nouveau / Android.mk
index 1094497f36fac3d58182d492c280e6265737bb4d..2de22e73ec187fcde71e21fa094092f81c5c2ac5 100644 (file)
@@ -28,10 +28,22 @@ include $(LOCAL_PATH)/Makefile.sources
 
 include $(CLEAR_VARS)
 
-LOCAL_SRC_FILES := $(C_SOURCES)
-LOCAL_C_INCLUDES := $(DRM_TOP)
+LOCAL_SRC_FILES := \
+       $(C_SOURCES) \
+       $(NV30_C_SOURCES) \
+       $(NV50_CODEGEN_SOURCES) \
+       $(NV50_C_SOURCES) \
+       $(NVC0_CODEGEN_SOURCES) \
+       $(NVC0_C_SOURCES)
 
+LOCAL_SHARED_LIBRARIES := libdrm_nouveau
 LOCAL_MODULE := libmesa_pipe_nouveau
 
 include $(GALLIUM_COMMON_MK)
 include $(BUILD_STATIC_LIBRARY)
+
+ifneq ($(HAVE_GALLIUM_NOUVEAU),)
+GALLIUM_TARGET_DRIVERS += nouveau
+$(eval GALLIUM_LIBS += $(LOCAL_MODULE) libmesa_winsys_nouveau)
+$(eval GALLIUM_SHARED_LIBS += $(LOCAL_SHARED_LIBRARIES))
+endif