2 * Copyright 2020 The Chromium OS Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file.
8 name: "minigbm_defaults",
34 "-D_FILE_OFFSET_BITS=64",
40 "-Wno-unused-parameter",
43 cppflags: ["-std=c++14"],
47 name: "minigbm_gralloc_defaults",
49 defaults: ["minigbm_defaults"],
52 "libhardware_headers",
53 "libnativebase_headers",
54 "libnativewindow_headers",
58 export_header_lib_headers: [
59 "libhardware_headers",
60 "libnativebase_headers",
61 "libnativewindow_headers",
66 "cros_gralloc/cros_gralloc_buffer.cc",
67 "cros_gralloc/cros_gralloc_helpers.cc",
68 "cros_gralloc/cros_gralloc_driver.cc",
71 static_libs: ["libarect"],
73 export_static_lib_headers: ["libarect"],
85 relative_install_path: "hw",
88 cc_library_host_shared {
90 defaults: ["minigbm_defaults"],
97 export_include_dirs: ["."],
99 // Avoid linking to another host copy of libdrm; this library will cause
100 // binary GPU drivers to be loaded from the host, which might be linked
101 // to a system copy of libdrm, which conflicts with the AOSP one
102 allow_undefined_symbols: true,
103 header_libs: ["libdrm"],
107 name: "libminigbm_gralloc",
108 defaults: ["minigbm_gralloc_defaults"],
109 shared_libs: ["liblog"],
110 static_libs: ["libdrm"],
112 export_include_dirs: ["."],
116 name: "gralloc.minigbm",
117 defaults: ["minigbm_gralloc_defaults"],
118 srcs: ["cros_gralloc/gralloc0/gralloc0.cc"],
122 name: "gralloc.minigbm_intel",
123 defaults: ["minigbm_gralloc_defaults"],
133 cflags: ["-DDRV_I915"],
134 srcs: ["cros_gralloc/gralloc0/gralloc0.cc"],
138 name: "gralloc.minigbm_meson",
139 defaults: ["minigbm_gralloc_defaults"],
140 cflags: ["-DDRV_MESON"],
141 srcs: ["cros_gralloc/gralloc0/gralloc0.cc"],