blob: 76ec42d1d9322a98d30cb8731e211b20767bac2f [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 "libhwcomposer-client",
12 "libdisplay",
13 "libbufferhubqueue",
14 "libbufferhub",
15 "libpdx_default_transport",
16 ],
17
18 shared_libs: [
19 "android.frameworks.vr.composer@1.0",
20 "android.hardware.graphics.composer@2.1",
Chia-I Wub444a552017-04-20 11:30:57 -070021 "android.hardware.graphics.mapper@2.0",
Daniel Nicoara4251e922017-04-13 15:19:15 -040022 "libbase",
Jiwen 'Steve' Caia88e3ee2017-11-03 17:33:33 -070023 "libbinder",
Daniel Nicoara4251e922017-04-13 15:19:15 -040024 "libcutils",
25 "libfmq",
26 "libhardware",
27 "libhidlbase",
28 "libhidltransport",
29 "liblog",
30 "libsync",
31 "libui",
32 "libutils",
33 ],
34
35 export_static_lib_headers: [
36 "libhwcomposer-client",
37 ],
38
39 export_shared_lib_headers: [
40 "android.frameworks.vr.composer@1.0",
41 "android.hardware.graphics.composer@2.1",
42 ],
43
44 export_include_dirs: ["."],
45
46 cflags: [
47 "-DLOG_TAG=\"vr_hwc\"",
Chih-Hung Hsiehe27d5eb2017-10-31 15:39:40 -070048 "-Wall",
49 "-Werror",
50 // mVrClient unused in vr_composer_client.cpp
51 "-Wno-error=unused-private-field",
52 // Warnings in vr_hwc.cpp to be fixed after sync of goog/master.
53 "-Wno-sign-compare",
54 "-Wno-unused-parameter",
Daniel Nicoara4251e922017-04-13 15:19:15 -040055 ],
56
57}
58
Daniel Nicoaraaba4d012017-03-09 15:10:26 -050059cc_library_static {
60 name: "libvr_hwc-binder",
61 srcs: [
62 "aidl/android/dvr/IVrComposer.aidl",
63 "aidl/android/dvr/IVrComposerCallback.aidl",
64 "aidl/android/dvr/parcelable_composer_frame.cpp",
65 "aidl/android/dvr/parcelable_composer_layer.cpp",
66 "aidl/android/dvr/parcelable_unique_fd.cpp",
67 ],
68 aidl: {
69 include_dirs: ["frameworks/native/services/vr/hardware_composer/aidl"],
70 export_aidl_headers: true,
71 },
72 export_include_dirs: ["aidl"],
Daniel Nicoara4251e922017-04-13 15:19:15 -040073
Chih-Hung Hsiehe27d5eb2017-10-31 15:39:40 -070074 cflags: [
75 "-Wall",
76 "-Werror",
77 ],
78
Daniel Nicoaraaba4d012017-03-09 15:10:26 -050079 shared_libs: [
80 "libbinder",
81 "libui",
82 "libutils",
Daniel Nicoara4251e922017-04-13 15:19:15 -040083 "libvr_hwc-hal",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -050084 ],
85}
86
87cc_library_static {
88 name: "libvr_hwc-impl",
89 srcs: [
90 "vr_composer.cpp",
91 ],
92 static_libs: [
93 "libvr_hwc-binder",
94 ],
95 shared_libs: [
96 "libbase",
97 "libbinder",
98 "liblog",
99 "libui",
100 "libutils",
Daniel Nicoara4251e922017-04-13 15:19:15 -0400101 "libvr_hwc-hal",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500102 ],
103 export_shared_lib_headers: [
Daniel Nicoara4251e922017-04-13 15:19:15 -0400104 "libvr_hwc-hal",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500105 ],
106 cflags: [
107 "-DLOG_TAG=\"vr_hwc\"",
Chih-Hung Hsiehe27d5eb2017-10-31 15:39:40 -0700108 "-Wall",
109 "-Werror",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500110 ],
111}
112
113cc_binary {
114 name: "vr_hwc",
115 srcs: [
116 "vr_hardware_composer_service.cpp"
117 ],
118 static_libs: [
119 "libvr_hwc-impl",
120 // NOTE: This needs to be included after the *-impl lib otherwise the
121 // symbols in the *-binder library get optimized out.
122 "libvr_hwc-binder",
123 ],
124 shared_libs: [
Daniel Nicoara95a99a12017-03-21 15:30:45 -0400125 "android.frameworks.vr.composer@1.0",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500126 "android.hardware.graphics.composer@2.1",
127 "libbase",
128 "libbinder",
129 "liblog",
130 "libhardware",
131 "libhwbinder",
132 "libui",
133 "libutils",
Daniel Nicoara4251e922017-04-13 15:19:15 -0400134 "libvr_hwc-hal",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500135 ],
136 cflags: [
137 "-DLOG_TAG=\"vr_hwc\"",
Chih-Hung Hsiehe27d5eb2017-10-31 15:39:40 -0700138 "-Wall",
139 "-Werror",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500140 ],
141 init_rc: [
142 "vr_hwc.rc",
143 ],
144}
145
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500146cc_test {
147 name: "vr_hwc_test",
148 gtest: true,
149 srcs: ["tests/vr_composer_test.cpp"],
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500150 static_libs: [
151 "libgtest",
152 "libvr_hwc-impl",
153 // NOTE: This needs to be included after the *-impl lib otherwise the
154 // symbols in the *-binder library get optimized out.
155 "libvr_hwc-binder",
156 ],
Chih-Hung Hsiehe27d5eb2017-10-31 15:39:40 -0700157 cflags: [
158 "-Wall",
159 "-Werror",
160 // warnings in vr_composer_test.cpp to be fixed after merge of goog/master
161 "-Wno-sign-compare",
162 "-Wno-unused-parameter",
163 ],
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500164 shared_libs: [
165 "libbase",
166 "libbinder",
167 "liblog",
168 "libui",
169 "libutils",
170 ],
171}