loader: #define PATH_MAX when undefined (eg. Hurd)
[mesa.git] / src / mesa / program / Android.mk
index af16e779db0d7d506032dae0eccc9e20e8e3e79e..c6470e6289e2116326048c7bf54c6fd0fbec317e 100644 (file)
@@ -44,9 +44,10 @@ include $(CLEAR_VARS)
 
 LOCAL_MODULE := libmesa_program
 LOCAL_MODULE_CLASS := STATIC_LIBRARIES
-LOCAL_STATIC_LIBRARIES := libmesa_glsl
+LOCAL_STATIC_LIBRARIES := libmesa_nir \
+       libmesa_glsl
 
-intermediates := $(call local-intermediates-dir)
+intermediates := $(call local-generated-sources-dir)
 
 # TODO(chadv): In Makefile.sources, move these vars to a different list so we can
 # remove this kludge.
@@ -72,12 +73,16 @@ $(intermediates)/program/lex.yy.c: $(LOCAL_PATH)/program_lexer.l
        $(local-l-to-c)
 
 LOCAL_C_INCLUDES := \
-       $(intermediates) \
        $(MESA_TOP)/src/mapi \
        $(MESA_TOP)/src/mesa \
-       $(MESA_TOP)/src/glsl \
+       $(MESA_TOP)/src/compiler/nir \
        $(MESA_TOP)/src/gallium/auxiliary \
        $(MESA_TOP)/src/gallium/include
 
+LOCAL_EXPORT_C_INCLUDE_DIRS := $(intermediates)
+
+LOCAL_GENERATED_SOURCES += $(MESA_GEN_NIR_H) \
+       $(MESA_GEN_GLSL_H)
+
 include $(MESA_COMMON_MK)
 include $(BUILD_STATIC_LIBRARY)