LOCAL_SHARED_LIBRARIES += libdrm_intel
endif
+ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 27; echo $$?), 0)
LOCAL_SHARED_LIBRARIES += libnativewindow
+LOCAL_STATIC_LIBRARIES += libarect
+LOCAL_HEADER_LIBRARIES += libnativebase_headers
+LOCAL_CFLAGS += -DUSE_VNDK
+endif
LOCAL_MODULE := gralloc.$(TARGET_BOARD_PLATFORM)
LOCAL_MODULE_TAGS := optional
#include "cros_gralloc_types.h"
#include <system/graphics.h>
+#ifdef USE_VNDK
+#include <vndk/window.h>
+#else
#include <system/window.h>
+#endif
constexpr uint32_t cros_gralloc_magic = 0xABCDDCBA;
constexpr uint32_t handle_data_size =