Build lib*_swiftshader with BOARD_VNDK_VERSION When BOARD_VNDK_VERSION is set, a vendor lib cannot link against a platform lib and is not provided with global include path. So, some internal libraries such as swiftshader_top_[release|debug] were also marked as vendor module and dependency to some header libs (libhardware_headers, libnativebase_headers, etc.) were added explicitly. Bug: 64704866 Test: lunch sdk_gphone_x86-user, BOARD_VNDK_VERSION=current m -j libEGL_swiftshader libGLESv1_CM_swiftshader libGLESv2_swiftshader successful Change-Id: I37851c9876f7f7c247bbc5d6e18946cb5bf72fa2 Reviewed-on: https://swiftshader-review.googlesource.com/11868 Reviewed-by: Nicolas Capens <nicolascapens@google.com> Tested-by: Nicolas Capens <nicolascapens@google.com>
diff --git a/src/Common/GrallocAndroid.hpp b/src/Common/GrallocAndroid.hpp index 3273372..3ebb5d7 100644 --- a/src/Common/GrallocAndroid.hpp +++ b/src/Common/GrallocAndroid.hpp
@@ -23,6 +23,8 @@ #include <sync/sync.h> #endif +#include <unistd.h> // for close() + class GrallocModule { public: