OSDN Git Service
(root)
/
android-x86
/
external-minigbm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gralloc0_register_buffer: initialize gralloc0 when needed
[android-x86/external-minigbm.git]
/
Android.bp
diff --git
a/Android.bp
b/Android.bp
index
63a50f7
..
30d3a76
100644
(file)
--- a/
Android.bp
+++ b/
Android.bp
@@
-2,6
+2,15
@@
// found in the LICENSE file.
cc_defaults {
// found in the LICENSE file.
cc_defaults {
+ name: "gralloc.minigbm_amdgpu_defaults",
+ cflags: ["-DDRV_AMDGPU"],
+ include_dirs: [
+ "external/libdrm/amdgpu",
+ "external/mesa/include",
+ ],
+}
+
+cc_defaults {
name: "gralloc.minigbm_intel_defaults",
cflags: ["-DDRV_I915"],
}
name: "gralloc.minigbm_intel_defaults",
cflags: ["-DDRV_I915"],
}
@@
-16,6
+25,7
@@
cc_defaults {
srcs: [
"amdgpu.c",
srcs: [
"amdgpu.c",
+ "dri.c",
"drv.c",
"evdi.c",
"exynos.c",
"drv.c",
"evdi.c",
"exynos.c",
@@
-39,6
+49,7
@@
cc_defaults {
"cros_gralloc/cros_gralloc_driver.cc",
"cros_gralloc/cros_gralloc_helpers.cc",
"cros_gralloc/gralloc0/gralloc0.cc",
"cros_gralloc/cros_gralloc_driver.cc",
"cros_gralloc/cros_gralloc_helpers.cc",
"cros_gralloc/gralloc0/gralloc0.cc",
+ "cros_gralloc/gralloc0/drm_framebuffer.c",
],
cflags: [
],
cflags: [
@@
-47,8
+58,8
@@
cc_defaults {
"-Wall",
"-Wsign-compare",
"-Wpointer-arith",
"-Wall",
"-Wsign-compare",
"-Wpointer-arith",
- "-Wcast-qual",
"-Wcast-align",
"-Wcast-align",
+ "-Wno-typedef-redefinition",
"-Wno-unused-parameter",
],
cppflags: ["-std=c++14"],
"-Wno-unused-parameter",
],
cppflags: ["-std=c++14"],
@@
-77,7
+88,11
@@
cc_defaults {
cc_library_shared {
name: "gralloc.minigbm",
cc_library_shared {
name: "gralloc.minigbm",
- defaults: ["gralloc.minigbm_defaults"],
+ defaults: [
+ "gralloc.minigbm_defaults",
+ "gralloc.minigbm_amdgpu_defaults",
+ "gralloc.minigbm_intel_defaults",
+ ],
}
cc_library_shared {
}
cc_library_shared {