From: Steven Moreland Date: Mon, 17 Jul 2017 18:49:21 +0000 (-0700) Subject: Make vulkan build with the VNDK. X-Git-Tag: android-x86-9.0-r1~260^2 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=54409a317351b165b70c594896b12fcf4ef7e353;p=android-x86%2Fframeworks-native.git Make vulkan build with the VNDK. When the vndk is enabled (BOARD_VNDK_VERSION=current), vendor libraries must only link against vendor variants in the build system. This also means that they receive restricted sets of headers and that automatic global headers are restricted. Test: build vulkan with BOARD_VNDK_VERSION=current Bug: 37342627 Change-Id: I9690635e4654e053cf35a3941aff14f4f7b46491 --- diff --git a/vulkan/Android.bp b/vulkan/Android.bp index 91c270e02b..26d3c6a269 100644 --- a/vulkan/Android.bp +++ b/vulkan/Android.bp @@ -25,8 +25,16 @@ ndk_headers { cc_library_headers { name: "vulkan_headers", - export_include_dirs: ["include"], vendor_available: true, + header_libs: [ + "libcutils_headers", + "libhardware_headers", + ], + export_header_lib_headers: [ + "libcutils_headers", + "libhardware_headers", + ], + export_include_dirs: ["include"], } subdirs = [ diff --git a/vulkan/nulldrv/null_driver.cpp b/vulkan/nulldrv/null_driver.cpp index 67147791f3..a3da651142 100644 --- a/vulkan/nulldrv/null_driver.cpp +++ b/vulkan/nulldrv/null_driver.cpp @@ -19,12 +19,12 @@ #include #include #include +#include #include #include #include -#include #include "null_driver_gen.h"