blob: b94d333f1c30db2e00f019290fcd63ad040e79a9 [file] [log] [blame]
Daniel Nicoaraaba4d012017-03-09 15:10:26 -05001cc_library_static {
2 name: "libvr_hwc-binder",
3 srcs: [
4 "aidl/android/dvr/IVrComposer.aidl",
5 "aidl/android/dvr/IVrComposerCallback.aidl",
6 "aidl/android/dvr/parcelable_composer_frame.cpp",
7 "aidl/android/dvr/parcelable_composer_layer.cpp",
8 "aidl/android/dvr/parcelable_unique_fd.cpp",
9 ],
10 aidl: {
11 include_dirs: ["frameworks/native/services/vr/hardware_composer/aidl"],
12 export_aidl_headers: true,
13 },
14 export_include_dirs: ["aidl"],
15 shared_libs: [
16 "libbinder",
17 "libui",
18 "libutils",
19 "libvrhwc",
20 ],
21}
22
23cc_library_static {
24 name: "libvr_hwc-impl",
25 srcs: [
26 "vr_composer.cpp",
27 ],
28 static_libs: [
29 "libvr_hwc-binder",
30 ],
31 shared_libs: [
32 "libbase",
33 "libbinder",
34 "liblog",
35 "libui",
36 "libutils",
37 "libvrhwc",
38 ],
39 export_shared_lib_headers: [
40 "libvrhwc",
41 ],
42 cflags: [
43 "-DLOG_TAG=\"vr_hwc\"",
44 ],
45}
46
47cc_binary {
48 name: "vr_hwc",
49 srcs: [
50 "vr_hardware_composer_service.cpp"
51 ],
52 static_libs: [
53 "libvr_hwc-impl",
54 // NOTE: This needs to be included after the *-impl lib otherwise the
55 // symbols in the *-binder library get optimized out.
56 "libvr_hwc-binder",
57 ],
58 shared_libs: [
Daniel Nicoara95a99a12017-03-21 15:30:45 -040059 "android.frameworks.vr.composer@1.0",
Daniel Nicoaraaba4d012017-03-09 15:10:26 -050060 "android.hardware.graphics.composer@2.1",
61 "libbase",
62 "libbinder",
63 "liblog",
64 "libhardware",
65 "libhwbinder",
66 "libui",
67 "libutils",
68 "libvrhwc",
69 ],
70 cflags: [
71 "-DLOG_TAG=\"vr_hwc\"",
72 ],
73 init_rc: [
74 "vr_hwc.rc",
75 ],
76}
77
Daniel Nicoaraaba4d012017-03-09 15:10:26 -050078cc_test {
79 name: "vr_hwc_test",
80 gtest: true,
81 srcs: ["tests/vr_composer_test.cpp"],
82 static_libs: [
83 "libgtest",
84 "libvr_hwc-impl",
85 // NOTE: This needs to be included after the *-impl lib otherwise the
86 // symbols in the *-binder library get optimized out.
87 "libvr_hwc-binder",
88 ],
89 shared_libs: [
90 "libbase",
91 "libbinder",
92 "liblog",
93 "libui",
94 "libutils",
95 ],
96}