blob: 6adfa71f7bf692ed84f12cfd13f349c1d6b1884b [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 ],
Chia-I Wu79d13ff2017-03-31 12:48:11 -070018 static_libs: ["libgrallocmapperincludes"],
Chia-I Wu109571a2016-09-05 11:46:36 +080019}
20
Chia-I Wu4c0d3972016-10-12 06:11:51 -070021cc_binary {
22 name: "android.hardware.graphics.allocator@2.0-service",
Steven Moreland48c52242017-03-08 16:11:32 -080023 defaults: ["hidl_defaults"],
Steven Morelanda0da1a12017-02-13 09:59:06 -080024 proprietary: true,
Chia-I Wu4c0d3972016-10-12 06:11:51 -070025 relative_install_path: "hw",
26 srcs: ["service.cpp"],
27 init_rc: ["android.hardware.graphics.allocator@2.0-service.rc"],
28
29 shared_libs: [
30 "android.hardware.graphics.allocator@2.0",
Yifan Hong6b920e42016-11-16 14:17:58 -080031 "libhidlbase",
32 "libhidltransport",
Chia-I Wu4c0d3972016-10-12 06:11:51 -070033 "liblog",
34 "libutils",
35 ],
36}
37
Chia-I Wu109571a2016-09-05 11:46:36 +080038cc_library_static {
39 name: "libgralloc1-adapter",
Steven Moreland48c52242017-03-08 16:11:32 -080040 defaults: ["hidl_defaults"],
Chia-I Wu939e4012016-12-12 21:51:33 +080041 srcs: ["gralloc1-adapter.cpp", "Gralloc1On0Adapter.cpp"],
Chia-I Wu109571a2016-09-05 11:46:36 +080042 include_dirs: ["system/core/libsync/include"],
43 cflags: ["-Wall", "-Wextra", "-Wno-unused-parameter"],
44 export_include_dirs: ["."],
Jesse Hall66ee1772017-03-23 16:40:59 -070045 whole_static_libs: ["libgrallocusage"],
Chia-I Wu109571a2016-09-05 11:46:36 +080046}