1 # Copyright 2017 The Chromium OS Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 ifeq ($(strip $(BOARD_USES_MINIGBM)), true)
7 MINIGBM_GRALLOC_MK := $(call my-dir)/Android.gralloc.mk
8 LOCAL_PATH := $(call my-dir)
9 intel_drivers := i915 i965
12 SUBDIRS := cros_gralloc
14 LOCAL_SHARED_LIBRARIES := \
37 include $(MINIGBM_GRALLOC_MK)
39 LOCAL_CPPFLAGS += -std=c++14 -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64
40 LOCAL_CFLAGS += -Wall -Wsign-compare -Wpointer-arith \
41 -Wcast-qual -Wcast-align \
42 -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64
44 ifneq ($(filter $(intel_drivers), $(BOARD_GPU_DRIVERS)),)
45 LOCAL_CPPFLAGS += -DDRV_I915
46 LOCAL_CFLAGS += -DDRV_I915
47 LOCAL_SHARED_LIBRARIES += libdrm_intel
50 LOCAL_MODULE := gralloc.$(TARGET_BOARD_PLATFORM)
51 LOCAL_MODULE_TAGS := optional
52 # The preferred path for vendor HALs is /vendor/lib/hw
53 LOCAL_PROPRIETARY_MODULE := true
54 LOCAL_MODULE_RELATIVE_PATH := hw
55 LOCAL_MODULE_CLASS := SHARED_LIBRARIES
56 LOCAL_MODULE_SUFFIX := $(TARGET_SHLIB_SUFFIX)
57 include $(BUILD_SHARED_LIBRARY)