blob: e92b8d8019dc4a1e39f06a2a05a2cf7395c0ca68 [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",
23 "libcutils",
24 "libfmq",
25 "libhardware",
26 "libhidlbase",
27 "libhidltransport",
28 "liblog",
29 "libsync",
30 "libui",
31 "libutils",
32 ],
33
34 export_static_lib_headers: [
35 "libhwcomposer-client",
36 ],
37
38 export_shared_lib_headers: [
39 "android.frameworks.vr.composer@1.0",
40 "android.hardware.graphics.composer@2.1",
41 ],
42
43 export_include_dirs: ["."],
44
45 cflags: [
46 "-DLOG_TAG=\"vr_hwc\"",
Chih-Hung Hsiehe27d5eb2017-10-31 15:39:40 -070047 "-Wall",
48 "-Werror",
49 // mVrClient unused in vr_composer_client.cpp
50 "-Wno-error=unused-private-field",
51 // Warnings in vr_hwc.cpp to be fixed after sync of goog/master.
52 "-Wno-sign-compare",
53 "-Wno-unused-parameter",
Daniel Nicoara4251e922017-04-13 15:19:15 -040054 ],
55
56}
57
Daniel Nicoaraaba4d012017-03-09 15:10:26 -050058cc_library_static {
59 name: "libvr_hwc-binder",
60 srcs: [
61 "aidl/android/dvr/IVrComposer.aidl",
62 "aidl/android/dvr/IVrComposerCallback.aidl",
63 "aidl/android/dvr/parcelable_composer_frame.cpp",
64 "aidl/android/dvr/parcelable_composer_layer.cpp",
65 "aidl/android/dvr/parcelable_unique_fd.cpp",
66 ],
67 aidl: {
68 include_dirs: ["frameworks/native/services/vr/hardware_composer/aidl"],
69 export_aidl_headers: true,
70 },
71 export_include_dirs: ["aidl"],
Daniel Nicoara4251e922017-04-13 15:19:15 -040072
Chih-Hung Hsiehe27d5eb2017-10-31 15:39:40 -070073 cflags: [
74 "-Wall",
75 "-Werror",
76 ],
77
Daniel Nicoaraaba4d012017-03-09 15:10:26 -050078 shared_libs: [
79 "libbinder",
80 "libui",
81 "libutils",
Daniel Nicoara4251e922017-04-13 15:19:15 -040082 "libvr_hwc-hal",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -050083 ],
84}
85
86cc_library_static {
87 name: "libvr_hwc-impl",
88 srcs: [
89 "vr_composer.cpp",
90 ],
91 static_libs: [
92 "libvr_hwc-binder",
93 ],
94 shared_libs: [
95 "libbase",
96 "libbinder",
97 "liblog",
98 "libui",
99 "libutils",
Daniel Nicoara4251e922017-04-13 15:19:15 -0400100 "libvr_hwc-hal",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500101 ],
102 export_shared_lib_headers: [
Daniel Nicoara4251e922017-04-13 15:19:15 -0400103 "libvr_hwc-hal",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500104 ],
105 cflags: [
106 "-DLOG_TAG=\"vr_hwc\"",
Chih-Hung Hsiehe27d5eb2017-10-31 15:39:40 -0700107 "-Wall",
108 "-Werror",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500109 ],
110}
111
112cc_binary {
113 name: "vr_hwc",
114 srcs: [
115 "vr_hardware_composer_service.cpp"
116 ],
117 static_libs: [
118 "libvr_hwc-impl",
119 // NOTE: This needs to be included after the *-impl lib otherwise the
120 // symbols in the *-binder library get optimized out.
121 "libvr_hwc-binder",
122 ],
123 shared_libs: [
Daniel Nicoara95a99a12017-03-21 15:30:45 -0400124 "android.frameworks.vr.composer@1.0",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500125 "android.hardware.graphics.composer@2.1",
126 "libbase",
127 "libbinder",
128 "liblog",
129 "libhardware",
130 "libhwbinder",
131 "libui",
132 "libutils",
Daniel Nicoara4251e922017-04-13 15:19:15 -0400133 "libvr_hwc-hal",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500134 ],
135 cflags: [
136 "-DLOG_TAG=\"vr_hwc\"",
Chih-Hung Hsiehe27d5eb2017-10-31 15:39:40 -0700137 "-Wall",
138 "-Werror",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500139 ],
140 init_rc: [
141 "vr_hwc.rc",
142 ],
143}
144
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500145cc_test {
146 name: "vr_hwc_test",
147 gtest: true,
148 srcs: ["tests/vr_composer_test.cpp"],
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500149 static_libs: [
150 "libgtest",
151 "libvr_hwc-impl",
152 // NOTE: This needs to be included after the *-impl lib otherwise the
153 // symbols in the *-binder library get optimized out.
154 "libvr_hwc-binder",
155 ],
Chih-Hung Hsiehe27d5eb2017-10-31 15:39:40 -0700156 cflags: [
157 "-Wall",
158 "-Werror",
159 // warnings in vr_composer_test.cpp to be fixed after merge of goog/master
160 "-Wno-sign-compare",
161 "-Wno-unused-parameter",
162 ],
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500163 shared_libs: [
164 "libbase",
165 "libbinder",
166 "liblog",
167 "libui",
168 "libutils",
169 ],
170}