forked from ds-hwang/gbm_es2_demo
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAndroid.mk.minigbm
138 lines (116 loc) · 3.6 KB
/
Android.mk.minigbm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
# Copyright 2017 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
ifeq ($(strip $(BOARD_USES_MINIGBM)), true)
MINIGBM_GRALLOC_MK := $(call my-dir)/Android.gralloc.mk
LOCAL_PATH := $(call my-dir)
intel_drivers := i915 i965
include $(CLEAR_VARS)
SUBDIRS := cros_gralloc
LOCAL_SHARED_LIBRARIES := \
libcutils \
liblog \
libdrm_pri \
libsync
LOCAL_SRC_FILES := \
amdgpu.c \
cirrus.c \
drv.c \
evdi.c \
exynos.c \
gma500.c \
helpers.c \
i915.c \
i915_private.c \
marvell.c \
mediatek.c \
nouveau.c \
rockchip.c \
tegra.c \
udl.c \
vc4.c \
vgem.c \
virtio_gpu.c
include $(MINIGBM_GRALLOC_MK)
LOCAL_CPPFLAGS += -std=c++14 -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 \
-Wno-switch -Wno-format -Wno-unused-variable
LOCAL_CFLAGS += -Wall -Wsign-compare -Wpointer-arith \
-Wcast-qual -Wcast-align \
-D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 \
-Wno-unused-value -Wno-unused-parameter
LOCAL_C_INCLUDES += frameworks/native/libs/nativebase/include \
frameworks/native/libs/nativewindow/include \
frameworks/native/libs/arect/include
ifneq ($(filter $(intel_drivers), $(BOARD_GPU_DRIVERS)),)
LOCAL_CPPFLAGS += -DDRV_I915
LOCAL_CFLAGS += -DDRV_I915
LOCAL_SHARED_LIBRARIES += libdrm_intel_pri
endif
ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 27; echo $$?), 0)
LOCAL_SHARED_LIBRARIES += libnativewindow
LOCAL_STATIC_LIBRARIES += libarect
LOCAL_HEADER_LIBRARIES += libnativebase_headers libsystem_headers libhardware_headers libutils_headers
LOCAL_CFLAGS += -DUSE_VNDK
endif
LOCAL_CFLAGS += -Wno-error
LOCAL_MODULE := gralloc.$(TARGET_BOARD_PLATFORM)
LOCAL_MODULE_TAGS := optional
# The preferred path for vendor HALs is /vendor/lib/hw
LOCAL_PROPRIETARY_MODULE := true
LOCAL_MODULE_RELATIVE_PATH := hw
LOCAL_MODULE_CLASS := SHARED_LIBRARIES
LOCAL_MODULE_SUFFIX := $(TARGET_SHLIB_SUFFIX)
include $(BUILD_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_SHARED_LIBRARIES := libcutils \
liblog \
libdrm_pri \
libsync
LOCAL_SRC_FILES := amdgpu.c \
cirrus.c \
drv.c \
evdi.c \
exynos.c \
gbm.c \
gbm_helpers.c \
gma500.c \
helpers.c \
i915.c \
i915_private.c \
marvell.c \
mediatek.c \
nouveau.c \
radeon.c \
rockchip.c \
tegra.c \
udl.c \
vc4.c \
vgem.c \
virtio_gpu.c
LOCAL_CPPFLAGS += -std=c++14 -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 \
-Wno-switch -Wno-format -Wno-unused-variable
LOCAL_CFLAGS += -Wall -Wsign-compare -Wpointer-arith \
-Wcast-qual -Wcast-align \
-D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 \
-Wno-unused-value -Wno-unused-parameter
LOCAL_C_INCLUDES += frameworks/native/libs/nativebase/include \
frameworks/native/libs/nativewindow/include \
frameworks/native/libs/arect/include
ifneq ($(filter $(intel_drivers), $(BOARD_GPU_DRIVERS)),)
LOCAL_CPPFLAGS += -DDRV_I915
LOCAL_CFLAGS += -DDRV_I915
LOCAL_SHARED_LIBRARIES += libdrm_intel_pri
endif
ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 27; echo $$?), 0)
LOCAL_SHARED_LIBRARIES += libnativewindow
LOCAL_STATIC_LIBRARIES += libarect
LOCAL_HEADER_LIBRARIES += libnativebase_headers libsystem_headers libhardware_headers libutils_headers
LOCAL_CFLAGS += -DUSE_VNDK
endif
LOCAL_CFLAGS += -Wno-error
LOCAL_MODULE := libminigbm
LOCAL_PROPRIETARY_MODULE := true
LOCAL_MODULE_TAGS := optional
#include $(BUILD_SHARED_LIBRARY)
include $(BUILD_STATIC_LIBRARY)
endif