blob: 920152032ad45c02940305603a520ae4c9c97585 [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",
23 "libcutils",
24 "libfmq",
25 "libhardware",
26 "libhidlbase",
27 "libhidltransport",
28 "liblog",
29 "libsync",
30 "libui",
31 "libutils",
32 ],
33
34 export_static_lib_headers: [
35 "libhwcomposer-client",
36 ],
37
38 export_shared_lib_headers: [
39 "android.frameworks.vr.composer@1.0",
40 "android.hardware.graphics.composer@2.1",
41 ],
42
43 export_include_dirs: ["."],
44
45 cflags: [
46 "-DLOG_TAG=\"vr_hwc\"",
47 ],
48
49}
50
Daniel Nicoaraaba4d012017-03-09 15:10:26 -050051cc_library_static {
52 name: "libvr_hwc-binder",
53 srcs: [
54 "aidl/android/dvr/IVrComposer.aidl",
55 "aidl/android/dvr/IVrComposerCallback.aidl",
56 "aidl/android/dvr/parcelable_composer_frame.cpp",
57 "aidl/android/dvr/parcelable_composer_layer.cpp",
58 "aidl/android/dvr/parcelable_unique_fd.cpp",
59 ],
60 aidl: {
61 include_dirs: ["frameworks/native/services/vr/hardware_composer/aidl"],
62 export_aidl_headers: true,
63 },
64 export_include_dirs: ["aidl"],
Daniel Nicoara4251e922017-04-13 15:19:15 -040065
Daniel Nicoaraaba4d012017-03-09 15:10:26 -050066 shared_libs: [
67 "libbinder",
68 "libui",
69 "libutils",
Daniel Nicoara4251e922017-04-13 15:19:15 -040070 "libvr_hwc-hal",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -050071 ],
72}
73
74cc_library_static {
75 name: "libvr_hwc-impl",
76 srcs: [
77 "vr_composer.cpp",
78 ],
79 static_libs: [
80 "libvr_hwc-binder",
81 ],
82 shared_libs: [
83 "libbase",
84 "libbinder",
85 "liblog",
86 "libui",
87 "libutils",
Daniel Nicoara4251e922017-04-13 15:19:15 -040088 "libvr_hwc-hal",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -050089 ],
90 export_shared_lib_headers: [
Daniel Nicoara4251e922017-04-13 15:19:15 -040091 "libvr_hwc-hal",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -050092 ],
93 cflags: [
94 "-DLOG_TAG=\"vr_hwc\"",
95 ],
96}
97
98cc_binary {
99 name: "vr_hwc",
100 srcs: [
101 "vr_hardware_composer_service.cpp"
102 ],
103 static_libs: [
104 "libvr_hwc-impl",
105 // NOTE: This needs to be included after the *-impl lib otherwise the
106 // symbols in the *-binder library get optimized out.
107 "libvr_hwc-binder",
108 ],
109 shared_libs: [
Daniel Nicoara95a99a12017-03-21 15:30:45 -0400110 "android.frameworks.vr.composer@1.0",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500111 "android.hardware.graphics.composer@2.1",
112 "libbase",
113 "libbinder",
114 "liblog",
115 "libhardware",
116 "libhwbinder",
117 "libui",
118 "libutils",
Daniel Nicoara4251e922017-04-13 15:19:15 -0400119 "libvr_hwc-hal",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500120 ],
121 cflags: [
122 "-DLOG_TAG=\"vr_hwc\"",
123 ],
124 init_rc: [
125 "vr_hwc.rc",
126 ],
127}
128
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500129cc_test {
130 name: "vr_hwc_test",
131 gtest: true,
132 srcs: ["tests/vr_composer_test.cpp"],
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500133 static_libs: [
134 "libgtest",
135 "libvr_hwc-impl",
136 // NOTE: This needs to be included after the *-impl lib otherwise the
137 // symbols in the *-binder library get optimized out.
138 "libvr_hwc-binder",
139 ],
140 shared_libs: [
141 "libbase",
142 "libbinder",
143 "liblog",
144 "libui",
145 "libutils",
146 ],
147}