blob: 88a5a611c6bdeeed2bcb1a1b7a5fdf4b1734f22b [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: [
10 "libhwcomposer-client",
11 "libdisplay",
12 "libbufferhubqueue",
13 "libbufferhub",
14 "libpdx_default_transport",
15 ],
16
17 shared_libs: [
18 "android.frameworks.vr.composer@1.0",
19 "android.hardware.graphics.composer@2.1",
Chia-I Wub444a552017-04-20 11:30:57 -070020 "android.hardware.graphics.mapper@2.0",
Daniel Nicoara4251e922017-04-13 15:19:15 -040021 "libbase",
22 "libcutils",
23 "libfmq",
24 "libhardware",
25 "libhidlbase",
26 "libhidltransport",
27 "liblog",
28 "libsync",
29 "libui",
30 "libutils",
31 ],
32
33 export_static_lib_headers: [
34 "libhwcomposer-client",
35 ],
36
37 export_shared_lib_headers: [
38 "android.frameworks.vr.composer@1.0",
39 "android.hardware.graphics.composer@2.1",
40 ],
41
42 export_include_dirs: ["."],
43
44 cflags: [
45 "-DLOG_TAG=\"vr_hwc\"",
Chih-Hung Hsieh38a11922017-10-05 14:27:38 -070046 "-Wall",
47 "-Werror",
48 "-Wno-error=sign-compare", // fix later
49 "-Wno-unused-private-field",
50 "-Wno-unused-parameter",
Daniel Nicoara4251e922017-04-13 15:19:15 -040051 ],
52
53}
54
Daniel Nicoaraaba4d012017-03-09 15:10:26 -050055cc_library_static {
56 name: "libvr_hwc-binder",
57 srcs: [
58 "aidl/android/dvr/IVrComposer.aidl",
59 "aidl/android/dvr/IVrComposerCallback.aidl",
60 "aidl/android/dvr/parcelable_composer_frame.cpp",
61 "aidl/android/dvr/parcelable_composer_layer.cpp",
62 "aidl/android/dvr/parcelable_unique_fd.cpp",
63 ],
Chih-Hung Hsieh38a11922017-10-05 14:27:38 -070064 cflags: ["-Wall", "-Werror"],
Daniel Nicoaraaba4d012017-03-09 15:10:26 -050065 aidl: {
66 include_dirs: ["frameworks/native/services/vr/hardware_composer/aidl"],
67 export_aidl_headers: true,
68 },
69 export_include_dirs: ["aidl"],
Daniel Nicoara4251e922017-04-13 15:19:15 -040070
Daniel Nicoaraaba4d012017-03-09 15:10:26 -050071 shared_libs: [
72 "libbinder",
73 "libui",
74 "libutils",
Daniel Nicoara4251e922017-04-13 15:19:15 -040075 "libvr_hwc-hal",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -050076 ],
77}
78
79cc_library_static {
80 name: "libvr_hwc-impl",
81 srcs: [
82 "vr_composer.cpp",
83 ],
84 static_libs: [
85 "libvr_hwc-binder",
86 ],
87 shared_libs: [
88 "libbase",
89 "libbinder",
90 "liblog",
91 "libui",
92 "libutils",
Daniel Nicoara4251e922017-04-13 15:19:15 -040093 "libvr_hwc-hal",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -050094 ],
95 export_shared_lib_headers: [
Daniel Nicoara4251e922017-04-13 15:19:15 -040096 "libvr_hwc-hal",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -050097 ],
98 cflags: [
99 "-DLOG_TAG=\"vr_hwc\"",
Chih-Hung Hsieh38a11922017-10-05 14:27:38 -0700100 "-Wall",
101 "-Werror",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500102 ],
103}
104
105cc_binary {
106 name: "vr_hwc",
107 srcs: [
108 "vr_hardware_composer_service.cpp"
109 ],
110 static_libs: [
111 "libvr_hwc-impl",
112 // NOTE: This needs to be included after the *-impl lib otherwise the
113 // symbols in the *-binder library get optimized out.
114 "libvr_hwc-binder",
115 ],
116 shared_libs: [
Daniel Nicoara95a99a12017-03-21 15:30:45 -0400117 "android.frameworks.vr.composer@1.0",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500118 "android.hardware.graphics.composer@2.1",
119 "libbase",
120 "libbinder",
121 "liblog",
122 "libhardware",
123 "libhwbinder",
124 "libui",
125 "libutils",
Daniel Nicoara4251e922017-04-13 15:19:15 -0400126 "libvr_hwc-hal",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500127 ],
128 cflags: [
129 "-DLOG_TAG=\"vr_hwc\"",
Chih-Hung Hsieh38a11922017-10-05 14:27:38 -0700130 "-Wall",
131 "-Werror",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500132 ],
133 init_rc: [
134 "vr_hwc.rc",
135 ],
136}
137
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500138cc_test {
139 name: "vr_hwc_test",
140 gtest: true,
141 srcs: ["tests/vr_composer_test.cpp"],
Chih-Hung Hsieh38a11922017-10-05 14:27:38 -0700142 cflags: [
143 "-Wall",
144 "-Werror",
145 "-Wno-error=sign-compare", // fix later
146 "-Wno-unused-parameter",
147 ],
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500148 static_libs: [
149 "libgtest",
150 "libvr_hwc-impl",
151 // NOTE: This needs to be included after the *-impl lib otherwise the
152 // symbols in the *-binder library get optimized out.
153 "libvr_hwc-binder",
154 ],
155 shared_libs: [
156 "libbase",
157 "libbinder",
158 "liblog",
159 "libui",
160 "libutils",
161 ],
162}