blob: 90edf696977bf87a0da1982e215d3fa2d4a007c7 [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 "libdisplay",
Daniel Nicoara4251e922017-04-13 15:19:15 -040012 ],
13
14 shared_libs: [
15 "android.frameworks.vr.composer@1.0",
16 "android.hardware.graphics.composer@2.1",
Chia-I Wub444a552017-04-20 11:30:57 -070017 "android.hardware.graphics.mapper@2.0",
Daniel Nicoara4251e922017-04-13 15:19:15 -040018 "libbase",
Jiwen 'Steve' Cai037f35a2018-01-25 19:40:23 -080019 "libbufferhubqueue",
Jiwen 'Steve' Caia88e3ee2017-11-03 17:33:33 -070020 "libbinder",
Daniel Nicoara4251e922017-04-13 15:19:15 -040021 "libcutils",
22 "libfmq",
23 "libhardware",
24 "libhidlbase",
25 "libhidltransport",
26 "liblog",
27 "libsync",
28 "libui",
29 "libutils",
Jiwen 'Steve' Cai037f35a2018-01-25 19:40:23 -080030 "libpdx_default_transport",
Daniel Nicoara4251e922017-04-13 15:19:15 -040031 ],
32
Courtney Goeltzenleuchter87551222018-01-16 14:00:09 -080033 header_libs: [
34 "android.hardware.graphics.composer@2.1-command-buffer",
Chia-I Wud15d2d22018-01-29 13:59:18 -080035 "android.hardware.graphics.composer@2.1-hal",
36 ],
37
38 export_header_lib_headers: [
39 "android.hardware.graphics.composer@2.1-hal",
Courtney Goeltzenleuchter87551222018-01-16 14:00:09 -080040 ],
41
Daniel Nicoara4251e922017-04-13 15:19:15 -040042 export_shared_lib_headers: [
43 "android.frameworks.vr.composer@1.0",
44 "android.hardware.graphics.composer@2.1",
45 ],
46
47 export_include_dirs: ["."],
48
49 cflags: [
50 "-DLOG_TAG=\"vr_hwc\"",
Chih-Hung Hsiehe27d5eb2017-10-31 15:39:40 -070051 "-Wall",
52 "-Werror",
53 // mVrClient unused in vr_composer_client.cpp
54 "-Wno-error=unused-private-field",
55 // Warnings in vr_hwc.cpp to be fixed after sync of goog/master.
56 "-Wno-sign-compare",
57 "-Wno-unused-parameter",
Daniel Nicoara4251e922017-04-13 15:19:15 -040058 ],
59
60}
61
Daniel Nicoaraaba4d012017-03-09 15:10:26 -050062cc_library_static {
63 name: "libvr_hwc-binder",
64 srcs: [
65 "aidl/android/dvr/IVrComposer.aidl",
66 "aidl/android/dvr/IVrComposerCallback.aidl",
67 "aidl/android/dvr/parcelable_composer_frame.cpp",
68 "aidl/android/dvr/parcelable_composer_layer.cpp",
69 "aidl/android/dvr/parcelable_unique_fd.cpp",
70 ],
71 aidl: {
72 include_dirs: ["frameworks/native/services/vr/hardware_composer/aidl"],
73 export_aidl_headers: true,
74 },
75 export_include_dirs: ["aidl"],
Daniel Nicoara4251e922017-04-13 15:19:15 -040076
Chih-Hung Hsiehe27d5eb2017-10-31 15:39:40 -070077 cflags: [
78 "-Wall",
79 "-Werror",
80 ],
81
Daniel Nicoaraaba4d012017-03-09 15:10:26 -050082 shared_libs: [
83 "libbinder",
84 "libui",
85 "libutils",
Daniel Nicoara4251e922017-04-13 15:19:15 -040086 "libvr_hwc-hal",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -050087 ],
88}
89
90cc_library_static {
91 name: "libvr_hwc-impl",
92 srcs: [
93 "vr_composer.cpp",
94 ],
95 static_libs: [
96 "libvr_hwc-binder",
97 ],
98 shared_libs: [
99 "libbase",
100 "libbinder",
101 "liblog",
102 "libui",
103 "libutils",
Daniel Nicoara4251e922017-04-13 15:19:15 -0400104 "libvr_hwc-hal",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500105 ],
106 export_shared_lib_headers: [
Daniel Nicoara4251e922017-04-13 15:19:15 -0400107 "libvr_hwc-hal",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500108 ],
109 cflags: [
110 "-DLOG_TAG=\"vr_hwc\"",
Chih-Hung Hsiehe27d5eb2017-10-31 15:39:40 -0700111 "-Wall",
112 "-Werror",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500113 ],
114}
115
116cc_binary {
117 name: "vr_hwc",
118 srcs: [
119 "vr_hardware_composer_service.cpp"
120 ],
121 static_libs: [
122 "libvr_hwc-impl",
123 // NOTE: This needs to be included after the *-impl lib otherwise the
124 // symbols in the *-binder library get optimized out.
125 "libvr_hwc-binder",
126 ],
127 shared_libs: [
Daniel Nicoara95a99a12017-03-21 15:30:45 -0400128 "android.frameworks.vr.composer@1.0",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500129 "android.hardware.graphics.composer@2.1",
130 "libbase",
131 "libbinder",
132 "liblog",
133 "libhardware",
134 "libhwbinder",
135 "libui",
136 "libutils",
Daniel Nicoara4251e922017-04-13 15:19:15 -0400137 "libvr_hwc-hal",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500138 ],
139 cflags: [
140 "-DLOG_TAG=\"vr_hwc\"",
Chih-Hung Hsiehe27d5eb2017-10-31 15:39:40 -0700141 "-Wall",
142 "-Werror",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500143 ],
144 init_rc: [
145 "vr_hwc.rc",
146 ],
147}
148
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500149cc_test {
150 name: "vr_hwc_test",
151 gtest: true,
152 srcs: ["tests/vr_composer_test.cpp"],
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500153 static_libs: [
154 "libgtest",
155 "libvr_hwc-impl",
156 // NOTE: This needs to be included after the *-impl lib otherwise the
157 // symbols in the *-binder library get optimized out.
158 "libvr_hwc-binder",
159 ],
Chih-Hung Hsiehe27d5eb2017-10-31 15:39:40 -0700160 cflags: [
161 "-Wall",
162 "-Werror",
163 // warnings in vr_composer_test.cpp to be fixed after merge of goog/master
164 "-Wno-sign-compare",
165 "-Wno-unused-parameter",
166 ],
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500167 shared_libs: [
168 "libbase",
169 "libbinder",
170 "liblog",
171 "libui",
172 "libutils",
173 ],
174}