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 := \
39 include $(MINIGBM_GRALLOC_MK)
41 LOCAL_CPPFLAGS += -std=c++14 -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64
42 LOCAL_CFLAGS += -Wall -Wsign-compare -Wpointer-arith \
43 -Wcast-qual -Wcast-align \
44 -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64
46 ifneq ($(filter $(intel_drivers), $(BOARD_GPU_DRIVERS)),)
47 LOCAL_CPPFLAGS += -DDRV_I915
48 LOCAL_CFLAGS += -DDRV_I915
49 LOCAL_SHARED_LIBRARIES += libdrm_intel
52 LOCAL_MODULE := gralloc.$(TARGET_BOARD_PLATFORM)
53 LOCAL_MODULE_TAGS := optional
54 # The preferred path for vendor HALs is /vendor/lib/hw
55 LOCAL_PROPRIETARY_MODULE := true
56 LOCAL_MODULE_RELATIVE_PATH := hw
57 LOCAL_MODULE_CLASS := SHARED_LIBRARIES
58 LOCAL_MODULE_SUFFIX := $(TARGET_SHLIB_SUFFIX)
59 include $(BUILD_SHARED_LIBRARY)