blob: d9df2048243ccb679bf9d62a683d80f25652d192 [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",
Marissa Wall39903202019-01-11 09:02:11 -080018 "android.hardware.graphics.mapper@3.0",
Daniel Nicoara4251e922017-04-13 15:19:15 -040019 "libbase",
Jiwen 'Steve' Cai037f35a2018-01-25 19:40:23 -080020 "libbufferhubqueue",
Jiwen 'Steve' Caia88e3ee2017-11-03 17:33:33 -070021 "libbinder",
Daniel Nicoara4251e922017-04-13 15:19:15 -040022 "libcutils",
23 "libfmq",
24 "libhardware",
25 "libhidlbase",
26 "libhidltransport",
27 "liblog",
28 "libsync",
29 "libui",
30 "libutils",
Jiwen 'Steve' Cai037f35a2018-01-25 19:40:23 -080031 "libpdx_default_transport",
Daniel Nicoara4251e922017-04-13 15:19:15 -040032 ],
33
Courtney Goeltzenleuchter87551222018-01-16 14:00:09 -080034 header_libs: [
35 "android.hardware.graphics.composer@2.1-command-buffer",
Chia-I Wud15d2d22018-01-29 13:59:18 -080036 "android.hardware.graphics.composer@2.1-hal",
37 ],
38
39 export_header_lib_headers: [
40 "android.hardware.graphics.composer@2.1-hal",
Courtney Goeltzenleuchter87551222018-01-16 14:00:09 -080041 ],
42
Steven Thomasdfde8fa2018-04-19 16:00:58 -070043 export_static_lib_headers: [
44 "libdisplay",
45 ],
46
Daniel Nicoara4251e922017-04-13 15:19:15 -040047 export_shared_lib_headers: [
48 "android.frameworks.vr.composer@1.0",
49 "android.hardware.graphics.composer@2.1",
50 ],
51
52 export_include_dirs: ["."],
53
54 cflags: [
55 "-DLOG_TAG=\"vr_hwc\"",
Steven Thomasdfde8fa2018-04-19 16:00:58 -070056 "-DATRACE_TAG=ATRACE_TAG_GRAPHICS",
Chih-Hung Hsiehe27d5eb2017-10-31 15:39:40 -070057 "-Wall",
58 "-Werror",
Chih-Hung Hsiehe27d5eb2017-10-31 15:39:40 -070059 "-Wno-error=unused-private-field",
60 // Warnings in vr_hwc.cpp to be fixed after sync of goog/master.
61 "-Wno-sign-compare",
62 "-Wno-unused-parameter",
Daniel Nicoara4251e922017-04-13 15:19:15 -040063 ],
64
65}
66
Daniel Nicoaraaba4d012017-03-09 15:10:26 -050067cc_library_static {
68 name: "libvr_hwc-binder",
69 srcs: [
70 "aidl/android/dvr/IVrComposer.aidl",
71 "aidl/android/dvr/IVrComposerCallback.aidl",
72 "aidl/android/dvr/parcelable_composer_frame.cpp",
73 "aidl/android/dvr/parcelable_composer_layer.cpp",
74 "aidl/android/dvr/parcelable_unique_fd.cpp",
75 ],
76 aidl: {
77 include_dirs: ["frameworks/native/services/vr/hardware_composer/aidl"],
78 export_aidl_headers: true,
79 },
80 export_include_dirs: ["aidl"],
Daniel Nicoara4251e922017-04-13 15:19:15 -040081
Chih-Hung Hsiehe27d5eb2017-10-31 15:39:40 -070082 cflags: [
83 "-Wall",
84 "-Werror",
85 ],
86
Daniel Nicoaraaba4d012017-03-09 15:10:26 -050087 shared_libs: [
88 "libbinder",
89 "libui",
90 "libutils",
Daniel Nicoara4251e922017-04-13 15:19:15 -040091 "libvr_hwc-hal",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -050092 ],
93}
94
95cc_library_static {
96 name: "libvr_hwc-impl",
97 srcs: [
98 "vr_composer.cpp",
99 ],
100 static_libs: [
101 "libvr_hwc-binder",
102 ],
103 shared_libs: [
104 "libbase",
105 "libbinder",
106 "liblog",
107 "libui",
108 "libutils",
Daniel Nicoara4251e922017-04-13 15:19:15 -0400109 "libvr_hwc-hal",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500110 ],
111 export_shared_lib_headers: [
Daniel Nicoara4251e922017-04-13 15:19:15 -0400112 "libvr_hwc-hal",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500113 ],
114 cflags: [
115 "-DLOG_TAG=\"vr_hwc\"",
Chih-Hung Hsiehe27d5eb2017-10-31 15:39:40 -0700116 "-Wall",
117 "-Werror",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500118 ],
119}
120
121cc_binary {
122 name: "vr_hwc",
Steven Moreland7e93b792018-06-22 15:11:19 -0700123 vintf_fragments: ["manifest_vr_hwc.xml"],
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500124 srcs: [
125 "vr_hardware_composer_service.cpp"
126 ],
127 static_libs: [
128 "libvr_hwc-impl",
129 // NOTE: This needs to be included after the *-impl lib otherwise the
130 // symbols in the *-binder library get optimized out.
131 "libvr_hwc-binder",
132 ],
133 shared_libs: [
Daniel Nicoara95a99a12017-03-21 15:30:45 -0400134 "android.frameworks.vr.composer@1.0",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500135 "android.hardware.graphics.composer@2.1",
136 "libbase",
137 "libbinder",
138 "liblog",
139 "libhardware",
140 "libhwbinder",
141 "libui",
142 "libutils",
Daniel Nicoara4251e922017-04-13 15:19:15 -0400143 "libvr_hwc-hal",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500144 ],
145 cflags: [
146 "-DLOG_TAG=\"vr_hwc\"",
Chih-Hung Hsiehe27d5eb2017-10-31 15:39:40 -0700147 "-Wall",
148 "-Werror",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500149 ],
150 init_rc: [
151 "vr_hwc.rc",
152 ],
153}
154
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500155cc_test {
156 name: "vr_hwc_test",
157 gtest: true,
158 srcs: ["tests/vr_composer_test.cpp"],
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500159 static_libs: [
160 "libgtest",
161 "libvr_hwc-impl",
162 // NOTE: This needs to be included after the *-impl lib otherwise the
163 // symbols in the *-binder library get optimized out.
164 "libvr_hwc-binder",
165 ],
Chih-Hung Hsiehe27d5eb2017-10-31 15:39:40 -0700166 cflags: [
167 "-Wall",
168 "-Werror",
169 // warnings in vr_composer_test.cpp to be fixed after merge of goog/master
170 "-Wno-sign-compare",
171 "-Wno-unused-parameter",
172 ],
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500173 shared_libs: [
174 "libbase",
175 "libbinder",
176 "liblog",
177 "libui",
178 "libutils",
179 ],
180}