blob: 4a7cfe08e826f5a1f2ce9d0b634ba3bbc8e1b3c8 [file] [log] [blame]
Chia-I Wu109571a2016-09-05 11:46:36 +08001cc_library_shared {
2 name: "android.hardware.graphics.allocator@2.0-impl",
Steven Moreland48c52242017-03-08 16:11:32 -08003 defaults: ["hidl_defaults"],
Steven Morelanda0da1a12017-02-13 09:59:06 -08004 proprietary: true,
Chia-I Wu109571a2016-09-05 11:46:36 +08005 relative_install_path: "hw",
Chia-I Wu79d13ff2017-03-31 12:48:11 -07006 srcs: ["Gralloc.cpp", "Gralloc0Allocator.cpp", "Gralloc1Allocator.cpp"],
Chia-I Wu109571a2016-09-05 11:46:36 +08007 cppflags: ["-Wall", "-Wextra"],
8 shared_libs: [
9 "android.hardware.graphics.allocator@2.0",
10 "libbase",
11 "libcutils",
12 "libhardware",
Yifan Hong6b920e42016-11-16 14:17:58 -080013 "libhidlbase",
14 "libhidltransport",
Chia-I Wu109571a2016-09-05 11:46:36 +080015 "liblog",
16 "libutils",
17 ],
Steven Morelandfed12442017-04-12 09:39:54 -070018 header_libs: [
19 "libgrallocmapperincludes",
20 ],
Chia-I Wu109571a2016-09-05 11:46:36 +080021}
22
Chia-I Wu4c0d3972016-10-12 06:11:51 -070023cc_binary {
24 name: "android.hardware.graphics.allocator@2.0-service",
Steven Moreland48c52242017-03-08 16:11:32 -080025 defaults: ["hidl_defaults"],
Steven Morelanda0da1a12017-02-13 09:59:06 -080026 proprietary: true,
Chia-I Wu4c0d3972016-10-12 06:11:51 -070027 relative_install_path: "hw",
28 srcs: ["service.cpp"],
29 init_rc: ["android.hardware.graphics.allocator@2.0-service.rc"],
30
31 shared_libs: [
32 "android.hardware.graphics.allocator@2.0",
Yifan Hong6b920e42016-11-16 14:17:58 -080033 "libhidlbase",
34 "libhidltransport",
Chia-I Wu4c0d3972016-10-12 06:11:51 -070035 "liblog",
36 "libutils",
37 ],
38}
39
Chia-I Wu109571a2016-09-05 11:46:36 +080040cc_library_static {
41 name: "libgralloc1-adapter",
Steven Moreland48c52242017-03-08 16:11:32 -080042 defaults: ["hidl_defaults"],
Chia-I Wu939e4012016-12-12 21:51:33 +080043 srcs: ["gralloc1-adapter.cpp", "Gralloc1On0Adapter.cpp"],
Chia-I Wu109571a2016-09-05 11:46:36 +080044 include_dirs: ["system/core/libsync/include"],
45 cflags: ["-Wall", "-Wextra", "-Wno-unused-parameter"],
46 export_include_dirs: ["."],
Jesse Hall66ee1772017-03-23 16:40:59 -070047 whole_static_libs: ["libgrallocusage"],
Chia-I Wu109571a2016-09-05 11:46:36 +080048}