blob: 258b45b95ac6b6da2735665a9d10702bd869c212 [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
Steven Thomasdfde8fa2018-04-19 16:00:58 -070042 export_static_lib_headers: [
43 "libdisplay",
44 ],
45
Daniel Nicoara4251e922017-04-13 15:19:15 -040046 export_shared_lib_headers: [
47 "android.frameworks.vr.composer@1.0",
48 "android.hardware.graphics.composer@2.1",
49 ],
50
51 export_include_dirs: ["."],
52
53 cflags: [
54 "-DLOG_TAG=\"vr_hwc\"",
Steven Thomasdfde8fa2018-04-19 16:00:58 -070055 "-DATRACE_TAG=ATRACE_TAG_GRAPHICS",
Chih-Hung Hsiehe27d5eb2017-10-31 15:39:40 -070056 "-Wall",
57 "-Werror",
Chih-Hung Hsiehe27d5eb2017-10-31 15:39:40 -070058 "-Wno-error=unused-private-field",
59 // Warnings in vr_hwc.cpp to be fixed after sync of goog/master.
60 "-Wno-sign-compare",
61 "-Wno-unused-parameter",
Daniel Nicoara4251e922017-04-13 15:19:15 -040062 ],
63
64}
65
Daniel Nicoaraaba4d012017-03-09 15:10:26 -050066cc_library_static {
67 name: "libvr_hwc-binder",
68 srcs: [
69 "aidl/android/dvr/IVrComposer.aidl",
70 "aidl/android/dvr/IVrComposerCallback.aidl",
71 "aidl/android/dvr/parcelable_composer_frame.cpp",
72 "aidl/android/dvr/parcelable_composer_layer.cpp",
73 "aidl/android/dvr/parcelable_unique_fd.cpp",
74 ],
75 aidl: {
76 include_dirs: ["frameworks/native/services/vr/hardware_composer/aidl"],
77 export_aidl_headers: true,
78 },
79 export_include_dirs: ["aidl"],
Daniel Nicoara4251e922017-04-13 15:19:15 -040080
Chih-Hung Hsiehe27d5eb2017-10-31 15:39:40 -070081 cflags: [
82 "-Wall",
83 "-Werror",
84 ],
85
Daniel Nicoaraaba4d012017-03-09 15:10:26 -050086 shared_libs: [
87 "libbinder",
88 "libui",
89 "libutils",
Daniel Nicoara4251e922017-04-13 15:19:15 -040090 "libvr_hwc-hal",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -050091 ],
92}
93
94cc_library_static {
95 name: "libvr_hwc-impl",
96 srcs: [
97 "vr_composer.cpp",
98 ],
99 static_libs: [
100 "libvr_hwc-binder",
101 ],
102 shared_libs: [
103 "libbase",
104 "libbinder",
105 "liblog",
106 "libui",
107 "libutils",
Daniel Nicoara4251e922017-04-13 15:19:15 -0400108 "libvr_hwc-hal",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500109 ],
110 export_shared_lib_headers: [
Daniel Nicoara4251e922017-04-13 15:19:15 -0400111 "libvr_hwc-hal",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500112 ],
113 cflags: [
114 "-DLOG_TAG=\"vr_hwc\"",
Chih-Hung Hsiehe27d5eb2017-10-31 15:39:40 -0700115 "-Wall",
116 "-Werror",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500117 ],
118}
119
120cc_binary {
121 name: "vr_hwc",
Steven Moreland7e93b792018-06-22 15:11:19 -0700122 vintf_fragments: ["manifest_vr_hwc.xml"],
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500123 srcs: [
124 "vr_hardware_composer_service.cpp"
125 ],
126 static_libs: [
127 "libvr_hwc-impl",
128 // NOTE: This needs to be included after the *-impl lib otherwise the
129 // symbols in the *-binder library get optimized out.
130 "libvr_hwc-binder",
131 ],
132 shared_libs: [
Daniel Nicoara95a99a12017-03-21 15:30:45 -0400133 "android.frameworks.vr.composer@1.0",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500134 "android.hardware.graphics.composer@2.1",
135 "libbase",
136 "libbinder",
137 "liblog",
138 "libhardware",
139 "libhwbinder",
140 "libui",
141 "libutils",
Daniel Nicoara4251e922017-04-13 15:19:15 -0400142 "libvr_hwc-hal",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500143 ],
144 cflags: [
145 "-DLOG_TAG=\"vr_hwc\"",
Chih-Hung Hsiehe27d5eb2017-10-31 15:39:40 -0700146 "-Wall",
147 "-Werror",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500148 ],
149 init_rc: [
150 "vr_hwc.rc",
151 ],
152}
153
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500154cc_test {
155 name: "vr_hwc_test",
156 gtest: true,
157 srcs: ["tests/vr_composer_test.cpp"],
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500158 static_libs: [
159 "libgtest",
160 "libvr_hwc-impl",
161 // NOTE: This needs to be included after the *-impl lib otherwise the
162 // symbols in the *-binder library get optimized out.
163 "libvr_hwc-binder",
164 ],
Chih-Hung Hsiehe27d5eb2017-10-31 15:39:40 -0700165 cflags: [
166 "-Wall",
167 "-Werror",
168 // warnings in vr_composer_test.cpp to be fixed after merge of goog/master
169 "-Wno-sign-compare",
170 "-Wno-unused-parameter",
171 ],
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500172 shared_libs: [
173 "libbase",
174 "libbinder",
175 "liblog",
176 "libui",
177 "libutils",
178 ],
179}