OSDN Git Service

cros_gralloc: Fix logging statement format specifier
[android-x86/external-minigbm.git] / Android.bp
1 /*
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.
5  */
6
7 cc_defaults {
8     name: "minigbm_defaults",
9
10     srcs: [
11         "amdgpu.c",
12         "drv.c",
13         "evdi.c",
14         "exynos.c",
15         "helpers_array.c",
16         "helpers.c",
17         "i915.c",
18         "marvell.c",
19         "mediatek.c",
20         "meson.c",
21         "msm.c",
22         "nouveau.c",
23         "radeon.c",
24         "rockchip.c",
25         "tegra.c",
26         "udl.c",
27         "vc4.c",
28         "vgem.c",
29         "virtio_gpu.c",
30     ],
31
32     cflags: [
33         "-D_GNU_SOURCE=1",
34         "-D_FILE_OFFSET_BITS=64",
35         "-Wall",
36         "-Wsign-compare",
37         "-Wpointer-arith",
38         "-Wcast-qual",
39         "-Wcast-align",
40         "-Wno-unused-parameter",
41     ],
42
43     cppflags: ["-std=c++14"],
44
45     vendor: true,
46
47     header_libs: [
48         "libhardware_headers",
49         "libnativebase_headers",
50         "libnativewindow_headers",
51         "libsystem_headers",
52     ],
53
54     export_header_lib_headers: [
55         "libhardware_headers",
56         "libnativebase_headers",
57         "libnativewindow_headers",
58         "libsystem_headers",
59     ],
60
61     shared_libs: [
62         "libcutils",
63         "libdrm",
64         "libnativewindow",
65         "libsync",
66         "liblog",
67     ],
68
69     static_libs: ["libarect"],
70
71     export_static_lib_headers: ["libarect"],
72
73     relative_install_path: "hw",
74 }
75
76 cc_defaults {
77     name: "minigbm_gralloc_defaults",
78
79     defaults: ["minigbm_defaults"],
80
81     srcs: [
82         "cros_gralloc/cros_gralloc_buffer.cc",
83         "cros_gralloc/cros_gralloc_helpers.cc",
84         "cros_gralloc/cros_gralloc_driver.cc",
85     ]
86 }
87
88 cc_library_static {
89     name: "libminigbm",
90     defaults: ["minigbm_defaults"],
91     shared_libs: ["liblog"],
92     static_libs: ["libdrm"],
93
94     srcs: [
95         "gbm.c",
96         "gbm_helpers.c",
97     ],
98
99     export_include_dirs: ["."],
100 }
101
102 cc_library_static {
103     name: "libminigbm_gralloc",
104     defaults: ["minigbm_gralloc_defaults"],
105     shared_libs: ["liblog"],
106     static_libs: ["libdrm"],
107
108     export_include_dirs: ["."],
109 }
110
111 cc_library_shared {
112     name: "gralloc.minigbm",
113     defaults: ["minigbm_gralloc_defaults"],
114     srcs: ["cros_gralloc/gralloc0/gralloc0.cc"],
115 }
116
117 cc_library_shared {
118     name: "gralloc.minigbm_intel",
119     defaults: ["minigbm_gralloc_defaults"],
120     enabled: false,
121     arch: {
122         x86: {
123             enabled: true,
124         },
125         x86_64: {
126             enabled: true,
127         },
128     },
129     cflags: ["-DDRV_I915"],
130     srcs: ["cros_gralloc/gralloc0/gralloc0.cc"],
131 }
132
133 cc_library_shared {
134     name: "gralloc.minigbm_meson",
135     defaults: ["minigbm_gralloc_defaults"],
136     cflags: ["-DDRV_MESON"],
137     srcs: ["cros_gralloc/gralloc0/gralloc0.cc"],
138 }