summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChad Versace <[email protected]>2017-07-10 11:15:35 -0700
committerChad Versace <[email protected]>2017-10-17 11:08:26 -0700
commit3791fe23afd1daa5018f325de5349e19d61a2e0f (patch)
tree6c722880be34931c034cff8549d69040720e9f5d /src
parent320018be77006ca515cc079d8024adbb493ac741 (diff)
anv/android: Link to Android libraries in the autotools build
A first step to supporting Vulkan on ARC++. Mesa on ARC++ uses Autotools, not Android.mk. Doing this now, even before VK_ANDROID_native_buffer is implemented, allows us to incrementally add Android support to the Autotools build. Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/intel/Makefile.vulkan.am5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/intel/Makefile.vulkan.am b/src/intel/Makefile.vulkan.am
index 271b0a5079b..0f488fc9f63 100644
--- a/src/intel/Makefile.vulkan.am
+++ b/src/intel/Makefile.vulkan.am
@@ -146,6 +146,11 @@ VULKAN_LIB_DEPS = \
$(DLOPEN_LIBS) \
-lm
+if HAVE_PLATFORM_ANDROID
+VULKAN_CFLAGS += $(ANDROID_CFLAGS)
+VULKAN_LIB_DEPS += $(ANDROID_LIBS)
+endif
+
if HAVE_PLATFORM_X11
VULKAN_CPPFLAGS += \
$(XCB_DRI3_CFLAGS) \