summaryrefslogtreecommitdiffstats
path: root/src/vulkan/Android.mk
diff options
context:
space:
mode:
authorTapani Pälli <[email protected]>2019-03-05 09:24:16 +0200
committerTapani Pälli <[email protected]>2019-03-18 11:53:59 +0200
commit791198a54b1182860e240d57f35cb02b1bcceca3 (patch)
tree3ba46f744ee2585e62c0c5828241c0f82770e4ed /src/vulkan/Android.mk
parent8ebc7dcb59a69763cc369af7c723e40a3fd29f7f (diff)
android: Build fixes for OMR1
Some of the header file locations are changed between Android versions (when VNDK is used), patch makes sure we get all the required headers. v2: cleanups, put SDK version checks in all places (Tapani) Signed-off-by: Tapani Pälli <[email protected]> Signed-off-by: Chen Lin Z <[email protected]> Tested-by: Clayton Craft <[email protected]> Acked-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/vulkan/Android.mk')
-rw-r--r--src/vulkan/Android.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/vulkan/Android.mk b/src/vulkan/Android.mk
index 6253f1c3be9..99dd3f56313 100644
--- a/src/vulkan/Android.mk
+++ b/src/vulkan/Android.mk
@@ -39,6 +39,14 @@ LOCAL_C_INCLUDES := \
$(MESA_TOP)/include/vulkan \
$(MESA_TOP)/src/vulkan/util
+ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 27; echo $$?), 0)
+LOCAL_C_INCLUDES += \
+ frameworks/native/libs/nativebase/include \
+ frameworks/native/libs/nativewindow/include \
+ frameworks/native/libs/arect/include
+LOCAL_HEADER_LIBRARIES += libcutils_headers libsystem_headers
+endif
+
LOCAL_GENERATED_SOURCES := $(addprefix $(intermediates)/, \
$(VULKAN_UTIL_GENERATED_FILES))