blob: 55557931f4f63402a4a2e6c00cfa8ab2747e142b [file] [log] [blame]
Daniel Nicoara4251e922017-04-13 15:19:15 -04001cc_library_shared {
2 name: "libvr_hwc-hal",
3
4 srcs: [
5 "impl/vr_hwc.cpp",
6 "impl/vr_composer_client.cpp",
7 ],
8
9 static_libs: [
Okan Arikan822b7102017-05-08 13:31:34 -070010 "libbroadcastring",
Daniel Nicoara4251e922017-04-13 15:19:15 -040011 "libhwcomposer-client",
12 "libdisplay",
Daniel Nicoara4251e922017-04-13 15:19:15 -040013 ],
14
15 shared_libs: [
16 "android.frameworks.vr.composer@1.0",
17 "android.hardware.graphics.composer@2.1",
Chia-I Wub444a552017-04-20 11:30:57 -070018 "android.hardware.graphics.mapper@2.0",
Daniel Nicoara4251e922017-04-13 15:19:15 -040019 "libbase",
Jiwen 'Steve' Cai037f35a2018-01-25 19:40:23 -080020 "libbufferhubqueue",
Jiwen 'Steve' Caia88e3ee2017-11-03 17:33:33 -070021 "libbinder",
Daniel Nicoara4251e922017-04-13 15:19:15 -040022 "libcutils",
23 "libfmq",
24 "libhardware",
25 "libhidlbase",
26 "libhidltransport",
27 "liblog",
28 "libsync",
29 "libui",
30 "libutils",
Jiwen 'Steve' Cai037f35a2018-01-25 19:40:23 -080031 "libpdx_default_transport",
Daniel Nicoara4251e922017-04-13 15:19:15 -040032 ],
33
Courtney Goeltzenleuchter87551222018-01-16 14:00:09 -080034 header_libs: [
35 "android.hardware.graphics.composer@2.1-command-buffer",
Chia-I Wud15d2d22018-01-29 13:59:18 -080036 "android.hardware.graphics.composer@2.1-hal",
37 ],
38
39 export_header_lib_headers: [
40 "android.hardware.graphics.composer@2.1-hal",
Courtney Goeltzenleuchter87551222018-01-16 14:00:09 -080041 ],
42
Daniel Nicoara4251e922017-04-13 15:19:15 -040043 export_static_lib_headers: [
44 "libhwcomposer-client",
45 ],
46
47 export_shared_lib_headers: [
48 "android.frameworks.vr.composer@1.0",
49 "android.hardware.graphics.composer@2.1",
50 ],
51
52 export_include_dirs: ["."],
53
54 cflags: [
55 "-DLOG_TAG=\"vr_hwc\"",
Chih-Hung Hsiehe27d5eb2017-10-31 15:39:40 -070056 "-Wall",
57 "-Werror",
58 // mVrClient unused in vr_composer_client.cpp
59 "-Wno-error=unused-private-field",
60 // Warnings in vr_hwc.cpp to be fixed after sync of goog/master.
61 "-Wno-sign-compare",
62 "-Wno-unused-parameter",
Daniel Nicoara4251e922017-04-13 15:19:15 -040063 ],
64
65}
66
Daniel Nicoaraaba4d012017-03-09 15:10:26 -050067cc_library_static {
68 name: "libvr_hwc-binder",
69 srcs: [
70 "aidl/android/dvr/IVrComposer.aidl",
71 "aidl/android/dvr/IVrComposerCallback.aidl",
72 "aidl/android/dvr/parcelable_composer_frame.cpp",
73 "aidl/android/dvr/parcelable_composer_layer.cpp",
74 "aidl/android/dvr/parcelable_unique_fd.cpp",
75 ],
76 aidl: {
77 include_dirs: ["frameworks/native/services/vr/hardware_composer/aidl"],
78 export_aidl_headers: true,
79 },
80 export_include_dirs: ["aidl"],
Daniel Nicoara4251e922017-04-13 15:19:15 -040081
Chih-Hung Hsiehe27d5eb2017-10-31 15:39:40 -070082 cflags: [
83 "-Wall",
84 "-Werror",
85 ],
86
Daniel Nicoaraaba4d012017-03-09 15:10:26 -050087 shared_libs: [
88 "libbinder",
89 "libui",
90 "libutils",
Daniel Nicoara4251e922017-04-13 15:19:15 -040091 "libvr_hwc-hal",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -050092 ],
93}
94
95cc_library_static {
96 name: "libvr_hwc-impl",
97 srcs: [
98 "vr_composer.cpp",
99 ],
100 static_libs: [
101 "libvr_hwc-binder",
102 ],
103 shared_libs: [
104 "libbase",
105 "libbinder",
106 "liblog",
107 "libui",
108 "libutils",
Daniel Nicoara4251e922017-04-13 15:19:15 -0400109 "libvr_hwc-hal",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500110 ],
111 export_shared_lib_headers: [
Daniel Nicoara4251e922017-04-13 15:19:15 -0400112 "libvr_hwc-hal",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500113 ],
114 cflags: [
115 "-DLOG_TAG=\"vr_hwc\"",
Chih-Hung Hsiehe27d5eb2017-10-31 15:39:40 -0700116 "-Wall",
117 "-Werror",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500118 ],
119}
120
121cc_binary {
122 name: "vr_hwc",
123 srcs: [
124 "vr_hardware_composer_service.cpp"
125 ],
126 static_libs: [
127 "libvr_hwc-impl",
128 // NOTE: This needs to be included after the *-impl lib otherwise the
129 // symbols in the *-binder library get optimized out.
130 "libvr_hwc-binder",
131 ],
132 shared_libs: [
Daniel Nicoara95a99a12017-03-21 15:30:45 -0400133 "android.frameworks.vr.composer@1.0",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500134 "android.hardware.graphics.composer@2.1",
135 "libbase",
136 "libbinder",
137 "liblog",
138 "libhardware",
139 "libhwbinder",
140 "libui",
141 "libutils",
Daniel Nicoara4251e922017-04-13 15:19:15 -0400142 "libvr_hwc-hal",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500143 ],
144 cflags: [
145 "-DLOG_TAG=\"vr_hwc\"",
Chih-Hung Hsiehe27d5eb2017-10-31 15:39:40 -0700146 "-Wall",
147 "-Werror",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500148 ],
149 init_rc: [
150 "vr_hwc.rc",
151 ],
152}
153
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500154cc_test {
155 name: "vr_hwc_test",
156 gtest: true,
157 srcs: ["tests/vr_composer_test.cpp"],
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500158 static_libs: [
159 "libgtest",
160 "libvr_hwc-impl",
161 // NOTE: This needs to be included after the *-impl lib otherwise the
162 // symbols in the *-binder library get optimized out.
163 "libvr_hwc-binder",
164 ],
Chih-Hung Hsiehe27d5eb2017-10-31 15:39:40 -0700165 cflags: [
166 "-Wall",
167 "-Werror",
168 // warnings in vr_composer_test.cpp to be fixed after merge of goog/master
169 "-Wno-sign-compare",
170 "-Wno-unused-parameter",
171 ],
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500172 shared_libs: [
173 "libbase",
174 "libbinder",
175 "liblog",
176 "libui",
177 "libutils",
178 ],
179}