1 // Use of this source code is governed by a BSD-style license that can be 2 // found in the LICENSE file. 3 4 cc_defaults { 5 name: "gralloc.minigbm_intel_defaults", 6 cflags: ["-DDRV_I915"], 7 } 8 9 cc_defaults { 10 name: "gralloc.minigbm_meson_defaults", 11 cflags: ["-DDRV_MESON"], 12 } 13 14 cc_defaults { 15 name: "gralloc.minigbm_defaults", 16 17 srcs: [ 18 "amdgpu.c", 19 "drv.c", 20 "evdi.c", 21 "exynos.c", 22 "helpers_array.c", 23 "helpers.c", 24 "i915.c", 25 "marvell.c", 26 "mediatek.c", 27 "meson.c", 28 "msm.c", 29 "nouveau.c", 30 "radeon.c", 31 "rockchip.c", 32 "tegra.c", 33 "udl.c", 34 "vc4.c", 35 "vgem.c", 36 "virtio_gpu.c", 37 38 "cros_gralloc/cros_gralloc_buffer.cc", 39 "cros_gralloc/cros_gralloc_driver.cc", 40 "cros_gralloc/cros_gralloc_helpers.cc", 41 "cros_gralloc/gralloc0/gralloc0.cc", 42 ], 43 44 cflags: [ 45 "-D_GNU_SOURCE=1", 46 "-D_FILE_OFFSET_BITS=64", 47 "-Wall", 48 "-Wsign-compare", 49 "-Wpointer-arith", 50 "-Wcast-qual", 51 "-Wcast-align", 52 "-Wno-unused-parameter", 53 ], 54 cppflags: ["-std=c++14"], 55 56 // The preferred path for vendor HALs is /vendor/lib/hw 57 vendor: true, 58 relative_install_path: "hw", 59 60 header_libs: [ 61 "libhardware_headers", 62 "libnativebase_headers", 63 "libsystem_headers", 64 ], 65 66 shared_libs: [ 67 "libcutils", 68 "libdrm", 69 70 "libnativewindow", 71 "libsync", 72 "liblog", 73 ], 74 75 static_libs: ["libarect"], 76 } 77 78 cc_library_shared { 79 name: "gralloc.minigbm", 80 defaults: ["gralloc.minigbm_defaults"], 81 } 82 83 cc_library_shared { 84 name: "gralloc.minigbm_intel", 85 defaults: [ 86 "gralloc.minigbm_defaults", 87 "gralloc.minigbm_intel_defaults", 88 ], 89 enabled: false, 90 arch: { 91 x86: { 92 enabled: true, 93 }, 94 x86_64: { 95 enabled: true, 96 }, 97 }, 98 } 99 100 cc_library_shared { 101 name: "gralloc.minigbm_meson", 102 defaults: [ 103 "gralloc.minigbm_defaults", 104 "gralloc.minigbm_meson_defaults", 105 ], 106 } 107 108 cc_library_shared { 109 name: "libminigbm", 110 defaults: ["gralloc.minigbm_defaults"], 111 shared_libs: ["liblog"], 112 static_libs: ["libdrm"], 113 114 srcs: [ 115 "gbm.c", 116 "gbm_helpers.c", 117 ], 118 119 export_include_dirs: ["."], 120 } 121