OSDN Git Service

minigbm: amdgpu: Add RGB565 to supported render target formats
[android-x86/external-minigbm.git] / Android.mk
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.
4
5 ifeq ($(strip $(BOARD_USES_MINIGBM)), true)
6
7 MINIGBM_GRALLOC_MK := $(call my-dir)/Android.gralloc.mk
8 LOCAL_PATH := $(call my-dir)
9 intel_drivers := i915 i965
10 include $(CLEAR_VARS)
11
12 SUBDIRS := cros_gralloc
13
14 LOCAL_SHARED_LIBRARIES := \
15         libcutils \
16         libdrm
17
18 LOCAL_SRC_FILES := \
19         amdgpu.c \
20         cirrus.c \
21         drv.c \
22         evdi.c \
23         exynos.c \
24         gma500.c \
25         helpers.c \
26         i915.c \
27         marvell.c \
28         mediatek.c \
29         nouveau.c \
30         rockchip.c \
31         tegra.c \
32         udl.c \
33         vc4.c \
34         vgem.c \
35         virtio_gpu.c
36
37 include $(MINIGBM_GRALLOC_MK)
38
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
43
44 ifneq ($(filter $(intel_drivers), $(BOARD_GPU_DRIVERS)),)
45 LOCAL_CPPFLAGS += -DDRV_I915
46 LOCAL_CFLAGS += -DDRV_I915
47 LOCAL_SHARED_LIBRARIES += libdrm_intel
48 endif
49
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)
58
59 #endif