blob: 063d83c591c6927251962ca466694b6215045b83 [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",
13 "libbufferhubqueue",
14 "libbufferhub",
15 "libpdx_default_transport",
16 ],
17
18 shared_libs: [
19 "android.frameworks.vr.composer@1.0",
20 "android.hardware.graphics.composer@2.1",
Chia-I Wub444a552017-04-20 11:30:57 -070021 "android.hardware.graphics.mapper@2.0",
Daniel Nicoara4251e922017-04-13 15:19:15 -040022 "libbase",
Jiwen 'Steve' Caia88e3ee2017-11-03 17:33:33 -070023 "libbinder",
Daniel Nicoara4251e922017-04-13 15:19:15 -040024 "libcutils",
25 "libfmq",
26 "libhardware",
27 "libhidlbase",
28 "libhidltransport",
29 "liblog",
30 "libsync",
31 "libui",
32 "libutils",
33 ],
34
Courtney Goeltzenleuchter87551222018-01-16 14:00:09 -080035 header_libs: [
36 "android.hardware.graphics.composer@2.1-command-buffer",
37 ],
38
Daniel Nicoara4251e922017-04-13 15:19:15 -040039 export_static_lib_headers: [
40 "libhwcomposer-client",
41 ],
42
43 export_shared_lib_headers: [
44 "android.frameworks.vr.composer@1.0",
45 "android.hardware.graphics.composer@2.1",
46 ],
47
48 export_include_dirs: ["."],
49
50 cflags: [
51 "-DLOG_TAG=\"vr_hwc\"",
Chih-Hung Hsiehe27d5eb2017-10-31 15:39:40 -070052 "-Wall",
53 "-Werror",
54 // mVrClient unused in vr_composer_client.cpp
55 "-Wno-error=unused-private-field",
56 // Warnings in vr_hwc.cpp to be fixed after sync of goog/master.
57 "-Wno-sign-compare",
58 "-Wno-unused-parameter",
Daniel Nicoara4251e922017-04-13 15:19:15 -040059 ],
60
61}
62
Daniel Nicoaraaba4d012017-03-09 15:10:26 -050063cc_library_static {
64 name: "libvr_hwc-binder",
65 srcs: [
66 "aidl/android/dvr/IVrComposer.aidl",
67 "aidl/android/dvr/IVrComposerCallback.aidl",
68 "aidl/android/dvr/parcelable_composer_frame.cpp",
69 "aidl/android/dvr/parcelable_composer_layer.cpp",
70 "aidl/android/dvr/parcelable_unique_fd.cpp",
71 ],
72 aidl: {
73 include_dirs: ["frameworks/native/services/vr/hardware_composer/aidl"],
74 export_aidl_headers: true,
75 },
76 export_include_dirs: ["aidl"],
Daniel Nicoara4251e922017-04-13 15:19:15 -040077
Chih-Hung Hsiehe27d5eb2017-10-31 15:39:40 -070078 cflags: [
79 "-Wall",
80 "-Werror",
81 ],
82
Daniel Nicoaraaba4d012017-03-09 15:10:26 -050083 shared_libs: [
84 "libbinder",
85 "libui",
86 "libutils",
Daniel Nicoara4251e922017-04-13 15:19:15 -040087 "libvr_hwc-hal",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -050088 ],
89}
90
91cc_library_static {
92 name: "libvr_hwc-impl",
93 srcs: [
94 "vr_composer.cpp",
95 ],
96 static_libs: [
97 "libvr_hwc-binder",
98 ],
99 shared_libs: [
100 "libbase",
101 "libbinder",
102 "liblog",
103 "libui",
104 "libutils",
Daniel Nicoara4251e922017-04-13 15:19:15 -0400105 "libvr_hwc-hal",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500106 ],
107 export_shared_lib_headers: [
Daniel Nicoara4251e922017-04-13 15:19:15 -0400108 "libvr_hwc-hal",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500109 ],
110 cflags: [
111 "-DLOG_TAG=\"vr_hwc\"",
Chih-Hung Hsiehe27d5eb2017-10-31 15:39:40 -0700112 "-Wall",
113 "-Werror",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500114 ],
115}
116
117cc_binary {
118 name: "vr_hwc",
119 srcs: [
120 "vr_hardware_composer_service.cpp"
121 ],
122 static_libs: [
123 "libvr_hwc-impl",
124 // NOTE: This needs to be included after the *-impl lib otherwise the
125 // symbols in the *-binder library get optimized out.
126 "libvr_hwc-binder",
127 ],
128 shared_libs: [
Daniel Nicoara95a99a12017-03-21 15:30:45 -0400129 "android.frameworks.vr.composer@1.0",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500130 "android.hardware.graphics.composer@2.1",
131 "libbase",
132 "libbinder",
133 "liblog",
134 "libhardware",
135 "libhwbinder",
136 "libui",
137 "libutils",
Daniel Nicoara4251e922017-04-13 15:19:15 -0400138 "libvr_hwc-hal",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500139 ],
140 cflags: [
141 "-DLOG_TAG=\"vr_hwc\"",
Chih-Hung Hsiehe27d5eb2017-10-31 15:39:40 -0700142 "-Wall",
143 "-Werror",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500144 ],
145 init_rc: [
146 "vr_hwc.rc",
147 ],
148}
149
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500150cc_test {
151 name: "vr_hwc_test",
152 gtest: true,
153 srcs: ["tests/vr_composer_test.cpp"],
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500154 static_libs: [
155 "libgtest",
156 "libvr_hwc-impl",
157 // NOTE: This needs to be included after the *-impl lib otherwise the
158 // symbols in the *-binder library get optimized out.
159 "libvr_hwc-binder",
160 ],
Chih-Hung Hsiehe27d5eb2017-10-31 15:39:40 -0700161 cflags: [
162 "-Wall",
163 "-Werror",
164 // warnings in vr_composer_test.cpp to be fixed after merge of goog/master
165 "-Wno-sign-compare",
166 "-Wno-unused-parameter",
167 ],
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500168 shared_libs: [
169 "libbase",
170 "libbinder",
171 "liblog",
172 "libui",
173 "libutils",
174 ],
175}