android: vulkan/util: add dependency on libnativewindow for O and later
authorMauro Rossi <issor.oruam@gmail.com>
Sun, 4 Feb 2018 21:57:11 +0000 (22:57 +0100)
committerTapani Pälli <tapani.palli@intel.com>
Mon, 26 Feb 2018 12:50:24 +0000 (14:50 +0200)
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" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
src/vulkan/Android.mk

index 6d6df938ab8afd885dcc1d8d3718b306506a67ce..70b23eae08fd6b1e8a0565d651bec4a3f917de8c 100644 (file)
@@ -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)