blob: 5cb201ded36b533c4b1762f20a2529ae4c25ea20 [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\"",
46 ],
47
48}
49
Daniel Nicoaraaba4d012017-03-09 15:10:26 -050050cc_library_static {
51 name: "libvr_hwc-binder",
52 srcs: [
53 "aidl/android/dvr/IVrComposer.aidl",
54 "aidl/android/dvr/IVrComposerCallback.aidl",
55 "aidl/android/dvr/parcelable_composer_frame.cpp",
56 "aidl/android/dvr/parcelable_composer_layer.cpp",
57 "aidl/android/dvr/parcelable_unique_fd.cpp",
58 ],
59 aidl: {
60 include_dirs: ["frameworks/native/services/vr/hardware_composer/aidl"],
61 export_aidl_headers: true,
62 },
63 export_include_dirs: ["aidl"],
Daniel Nicoara4251e922017-04-13 15:19:15 -040064
Daniel Nicoaraaba4d012017-03-09 15:10:26 -050065 shared_libs: [
66 "libbinder",
67 "libui",
68 "libutils",
Daniel Nicoara4251e922017-04-13 15:19:15 -040069 "libvr_hwc-hal",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -050070 ],
71}
72
73cc_library_static {
74 name: "libvr_hwc-impl",
75 srcs: [
76 "vr_composer.cpp",
77 ],
78 static_libs: [
79 "libvr_hwc-binder",
80 ],
81 shared_libs: [
82 "libbase",
83 "libbinder",
84 "liblog",
85 "libui",
86 "libutils",
Daniel Nicoara4251e922017-04-13 15:19:15 -040087 "libvr_hwc-hal",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -050088 ],
89 export_shared_lib_headers: [
Daniel Nicoara4251e922017-04-13 15:19:15 -040090 "libvr_hwc-hal",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -050091 ],
92 cflags: [
93 "-DLOG_TAG=\"vr_hwc\"",
94 ],
95}
96
97cc_binary {
98 name: "vr_hwc",
99 srcs: [
100 "vr_hardware_composer_service.cpp"
101 ],
102 static_libs: [
103 "libvr_hwc-impl",
104 // NOTE: This needs to be included after the *-impl lib otherwise the
105 // symbols in the *-binder library get optimized out.
106 "libvr_hwc-binder",
107 ],
108 shared_libs: [
Daniel Nicoara95a99a12017-03-21 15:30:45 -0400109 "android.frameworks.vr.composer@1.0",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500110 "android.hardware.graphics.composer@2.1",
111 "libbase",
112 "libbinder",
113 "liblog",
114 "libhardware",
115 "libhwbinder",
116 "libui",
117 "libutils",
Daniel Nicoara4251e922017-04-13 15:19:15 -0400118 "libvr_hwc-hal",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500119 ],
120 cflags: [
121 "-DLOG_TAG=\"vr_hwc\"",
122 ],
123 init_rc: [
124 "vr_hwc.rc",
125 ],
126}
127
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500128cc_test {
129 name: "vr_hwc_test",
130 gtest: true,
131 srcs: ["tests/vr_composer_test.cpp"],
132 static_libs: [
133 "libgtest",
134 "libvr_hwc-impl",
135 // NOTE: This needs to be included after the *-impl lib otherwise the
136 // symbols in the *-binder library get optimized out.
137 "libvr_hwc-binder",
138 ],
139 shared_libs: [
140 "libbase",
141 "libbinder",
142 "liblog",
143 "libui",
144 "libutils",
145 ],
146}