Mesa (master): Android: amd/common: fix dependency on libmesa_nir
Emil Velikov
evelikov at kemper.freedesktop.org
Thu May 11 12:58:26 UTC 2017
Module: Mesa
Branch: master
Commit: 1ef913aacfaca03bd951f23c4a60d1fccd5c3b6c
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1ef913aacfaca03bd951f23c4a60d1fccd5c3b6c
Author: Rob Herring <robh at kernel.org>
Date: Wed May 3 14:35:17 2017 -0500
Android: amd/common: fix dependency on libmesa_nir
Building libmesa_amd_common fails with:
external/mesa/src/amd/common/ac_shader_info.c:23:10: fatal error: 'nir/nir.h' file not found
^
external/mesa/src/compiler/nir/nir.h:48:10: fatal error: 'nir_opcodes.h' file not found
^
libmesa_amd_common now depends on libmesa_nir, so add it as a dependency
and export the necessary directories.
Fixes: 224cf29 "radv/ac: add initial pre-pass for shader info gathering"
Signed-off-by: Rob Herring <robh at kernel.org>
Reviewed-by: Chih-Wei Huang <cwhuang at linux.org.tw>
Reviewed-by: Emil Velikov <emil.velikov at collabora.com>
---
src/amd/Android.common.mk | 4 +++-
src/compiler/Android.nir.gen.mk | 1 +
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/amd/Android.common.mk b/src/amd/Android.common.mk
index a770aca650..a6c0deb2d7 100644
--- a/src/amd/Android.common.mk
+++ b/src/amd/Android.common.mk
@@ -61,7 +61,9 @@ LOCAL_C_INCLUDES := \
LOCAL_EXPORT_C_INCLUDE_DIRS := \
$(LOCAL_PATH)/common
-LOCAL_STATIC_LIBRARIES := libLLVMCore
+LOCAL_STATIC_LIBRARIES := \
+ libLLVMCore \
+ libmesa_nir
include $(MESA_COMMON_MK)
include $(BUILD_STATIC_LIBRARY)
diff --git a/src/compiler/Android.nir.gen.mk b/src/compiler/Android.nir.gen.mk
index 96fc750ec6..908875d7eb 100644
--- a/src/compiler/Android.nir.gen.mk
+++ b/src/compiler/Android.nir.gen.mk
@@ -37,6 +37,7 @@ LOCAL_C_INCLUDES += \
LOCAL_EXPORT_C_INCLUDE_DIRS += \
$(intermediates)/nir \
+ $(MESA_TOP)/src/compiler \
$(MESA_TOP)/src/compiler/nir
LOCAL_GENERATED_SOURCES += $(addprefix $(intermediates)/, \
More information about the mesa-commit
mailing list