1. Add errno.h
2. Ensure everything is exported to vendor/
Jira: None.
Test: Build passes on Android.
Signed-off-by: Mingwei Shi <mingwei.shi@intel.com>
LOCAL_SHARED_LIBRARIES += libdrm_intel
endif
LOCAL_SHARED_LIBRARIES += libdrm_intel
endif
+ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 27; echo $$?), 0)
LOCAL_SHARED_LIBRARIES += libnativewindow
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
LOCAL_MODULE := gralloc.$(TARGET_BOARD_PLATFORM)
LOCAL_MODULE_TAGS := optional
#include "cros_gralloc_buffer.h"
#include <assert.h>
#include "cros_gralloc_buffer.h"
#include <assert.h>
#include <sys/mman.h>
cros_gralloc_buffer::cros_gralloc_buffer(uint32_t id, struct bo *acquire_bo,
#include <sys/mman.h>
cros_gralloc_buffer::cros_gralloc_buffer(uint32_t id, struct bo *acquire_bo,
#include <cstdlib>
#include <cutils/log.h>
#include <sync/sync.h>
#include <cstdlib>
#include <cutils/log.h>
#include <sync/sync.h>
+#include <error.h>
+#include <unistd.h>
const char* drmFormat2Str(int drm_format)
{
const char* drmFormat2Str(int drm_format)
{
#include "cros_gralloc_types.h"
#include <system/graphics.h>
#include "cros_gralloc_types.h"
#include <system/graphics.h>
+#ifdef USE_VNDK
+#include <vndk/window.h>
+#else
#include <system/window.h>
#include <system/window.h>
constexpr uint32_t cros_gralloc_magic = 0xABCDDCBA;
constexpr uint32_t handle_data_size =
constexpr uint32_t cros_gralloc_magic = 0xABCDDCBA;
constexpr uint32_t handle_data_size =
#include <hardware/gralloc1.h>
#include <utils/Log.h>
#include <hardware/gralloc1.h>
#include <utils/Log.h>
struct cros_gralloc_module;
struct cros_gralloc_module;