blob: 4df7b7c6bdd75c6a29c02cea633dec0b1ed1e9a1 [file] [log] [blame]
Daniel Nicoara4251e922017-04-13 15:19:15 -04001cc_library_shared {
Dan Willemsena5d65222018-09-14 21:27:01 -07002 name: "libvr_hwc-hal",
Daniel Nicoara4251e922017-04-13 15:19:15 -04003
Dan Willemsena5d65222018-09-14 21:27:01 -07004 srcs: [
5 "impl/vr_hwc.cpp",
6 "impl/vr_composer_client.cpp",
7 ],
Daniel Nicoara4251e922017-04-13 15:19:15 -04008
Dan Willemsena5d65222018-09-14 21:27:01 -07009 static_libs: [
10 "libbroadcastring",
11 "libdisplay",
12 ],
Daniel Nicoara4251e922017-04-13 15:19:15 -040013
Dan Willemsena5d65222018-09-14 21:27:01 -070014 shared_libs: [
mamik94e91f62019-08-19 09:11:33 -070015 "android.frameworks.vr.composer@2.0",
Dan Willemsena5d65222018-09-14 21:27:01 -070016 "android.hardware.graphics.composer@2.1",
mamik94e91f62019-08-19 09:11:33 -070017 "android.hardware.graphics.composer@2.2",
18 "android.hardware.graphics.composer@2.3",
Marissa Wall72a90b62019-08-01 14:30:50 -070019 "android.hardware.graphics.composer@2.1-resources",
Dan Willemsena5d65222018-09-14 21:27:01 -070020 "android.hardware.graphics.mapper@2.0",
21 "android.hardware.graphics.mapper@3.0",
Marissa Wall87c8ba72019-06-20 14:20:52 -070022 "android.hardware.graphics.mapper@4.0",
Dan Willemsena5d65222018-09-14 21:27:01 -070023 "libbase",
24 "libbufferhubqueue",
25 "libbinder",
26 "libcutils",
27 "libfmq",
28 "libhardware",
29 "libhidlbase",
Dan Willemsena5d65222018-09-14 21:27:01 -070030 "liblog",
31 "libsync",
32 "libui",
33 "libutils",
34 "libpdx_default_transport",
35 ],
Daniel Nicoara4251e922017-04-13 15:19:15 -040036
Dan Willemsena5d65222018-09-14 21:27:01 -070037 header_libs: [
38 "android.hardware.graphics.composer@2.1-command-buffer",
mamik94e91f62019-08-19 09:11:33 -070039 "android.hardware.graphics.composer@2.3-hal",
Dan Willemsena5d65222018-09-14 21:27:01 -070040 ],
Chia-I Wud15d2d22018-01-29 13:59:18 -080041
Dan Willemsena5d65222018-09-14 21:27:01 -070042 export_header_lib_headers: [
mamik94e91f62019-08-19 09:11:33 -070043 "android.hardware.graphics.composer@2.3-hal",
Dan Willemsena5d65222018-09-14 21:27:01 -070044 ],
Courtney Goeltzenleuchter87551222018-01-16 14:00:09 -080045
Dan Willemsena5d65222018-09-14 21:27:01 -070046 export_static_lib_headers: [
47 "libdisplay",
48 ],
Steven Thomasdfde8fa2018-04-19 16:00:58 -070049
Dan Willemsena5d65222018-09-14 21:27:01 -070050 export_shared_lib_headers: [
mamik94e91f62019-08-19 09:11:33 -070051 "android.frameworks.vr.composer@2.0",
Dan Willemsena5d65222018-09-14 21:27:01 -070052 "android.hardware.graphics.composer@2.1",
mamik94e91f62019-08-19 09:11:33 -070053 "android.hardware.graphics.composer@2.2",
54 "android.hardware.graphics.composer@2.3",
Dan Willemsena5d65222018-09-14 21:27:01 -070055 ],
Daniel Nicoara4251e922017-04-13 15:19:15 -040056
Dan Willemsena5d65222018-09-14 21:27:01 -070057 export_include_dirs: ["."],
Daniel Nicoara4251e922017-04-13 15:19:15 -040058
Dan Willemsena5d65222018-09-14 21:27:01 -070059 cflags: [
60 "-DLOG_TAG=\"vr_hwc\"",
61 "-DATRACE_TAG=ATRACE_TAG_GRAPHICS",
62 "-Wall",
63 "-Werror",
64 "-Wno-error=unused-private-field",
65 // Warnings in vr_hwc.cpp to be fixed after sync of goog/master.
66 "-Wno-sign-compare",
67 "-Wno-unused-parameter",
68 ],
Daniel Nicoara4251e922017-04-13 15:19:15 -040069
70}
71
Daniel Nicoaraaba4d012017-03-09 15:10:26 -050072cc_library_static {
Dan Willemsena5d65222018-09-14 21:27:01 -070073 name: "libvr_hwc-impl",
74 srcs: [
75 "vr_composer.cpp",
76 ],
77 static_libs: [
78 "libvr_hwc-binder",
79 ],
80 shared_libs: [
81 "libbase",
82 "libbinder",
83 "liblog",
84 "libui",
85 "libutils",
86 "libvr_hwc-hal",
87 ],
88 export_shared_lib_headers: [
89 "libvr_hwc-hal",
90 ],
91 cflags: [
92 "-DLOG_TAG=\"vr_hwc\"",
93 "-Wall",
94 "-Werror",
95 ],
Daniel Nicoaraaba4d012017-03-09 15:10:26 -050096}
97
98cc_binary {
Dan Willemsena5d65222018-09-14 21:27:01 -070099 name: "vr_hwc",
100 vintf_fragments: ["manifest_vr_hwc.xml"],
101 srcs: [
102 "vr_hardware_composer_service.cpp",
103 ],
104 static_libs: [
105 "libvr_hwc-impl",
106 // NOTE: This needs to be included after the *-impl lib otherwise the
107 // symbols in the *-binder library get optimized out.
108 "libvr_hwc-binder",
109 ],
110 shared_libs: [
mamik94e91f62019-08-19 09:11:33 -0700111 "android.frameworks.vr.composer@2.0",
112 "android.hardware.graphics.composer@2.3",
Dan Willemsena5d65222018-09-14 21:27:01 -0700113 "libbase",
114 "libbinder",
115 "liblog",
116 "libhardware",
Steven Moreland2da1e072019-06-18 17:23:21 -0700117 "libhidlbase",
Dan Willemsena5d65222018-09-14 21:27:01 -0700118 "libui",
119 "libutils",
120 "libvr_hwc-hal",
121 ],
122 cflags: [
123 "-DLOG_TAG=\"vr_hwc\"",
124 "-Wall",
125 "-Werror",
126 ],
127 init_rc: [
128 "vr_hwc.rc",
129 ],
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500130}
131
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500132cc_test {
Dan Willemsena5d65222018-09-14 21:27:01 -0700133 name: "vr_hwc_test",
134 gtest: true,
135 srcs: ["tests/vr_composer_test.cpp"],
136 static_libs: [
137 "libgtest",
138 "libvr_hwc-impl",
139 // NOTE: This needs to be included after the *-impl lib otherwise the
140 // symbols in the *-binder library get optimized out.
141 "libvr_hwc-binder",
142 ],
143 cflags: [
144 "-Wall",
145 "-Werror",
146 // warnings in vr_composer_test.cpp to be fixed after merge of goog/master
147 "-Wno-sign-compare",
148 "-Wno-unused-parameter",
149 ],
150 shared_libs: [
151 "libbase",
152 "libbinder",
153 "liblog",
154 "libui",
155 "libutils",
156 ],
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500157}