From: Mauro Rossi Date: Sun, 4 Feb 2018 21:57:11 +0000 (+0100) Subject: android: vulkan/util: add dependency on libnativewindow for O and later X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6451b0703ff3027b746d6268b98dd2b3e6698be5;p=mesa.git android: vulkan/util: add dependency on libnativewindow for O and later Similar to 90dd6e5 ("Android: egl: add dependency on libnativewindow") Fixes the following building error: In file included from out/target/product/x86_64/obj_x86/STATIC_LIBRARIES/libmesa_vulkan_util_intermediates/util/vk_enum_to_str.c:26: external/mesa/include/vulkan/vk_android_native_buffer.h:22:10: fatal error: 'system/window.h' file not found ^~~~~~~~~~~~~~~~~ 1 error generated. Cc: "18.0" Reviewed-by: Emil Velikov --- diff --git a/src/vulkan/Android.mk b/src/vulkan/Android.mk index 6d6df938ab8..70b23eae08f 100644 --- a/src/vulkan/Android.mk +++ b/src/vulkan/Android.mk @@ -59,5 +59,9 @@ $(LOCAL_GENERATED_SOURCES): $(MESA_TOP)/src/vulkan/util/gen_enum_to_str.py \ LOCAL_EXPORT_C_INCLUDE_DIRS := \ $(intermediates) +ifeq ($(filter $(MESA_ANDROID_MAJOR_VERSION), 4 5 6 7),) +LOCAL_SHARED_LIBRARIES += libnativewindow +endif + include $(MESA_COMMON_MK) include $(BUILD_STATIC_LIBRARY)