blob: 0c91b07eee9a4e831eba143dba153a9821e5bb07 [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",
Steven Moreland7e93b792018-06-22 15:11:19 -0700118 vintf_fragments: ["manifest_vr_hwc.xml"],
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500119 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}