blob: 80e9a3c3b1fea2ea4f73ecbb9c328692ff0caa3d [file] [log] [blame]
Bob Badour3c538232021-02-12 21:26:48 -08001package {
2 // See: http://go/android-license-faq
3 // A large-scale-change added 'default_applicable_licenses' to import
4 // all of the 'license_kinds' from "frameworks_native_license"
5 // to get the below license kinds:
6 // SPDX-license-identifier-Apache-2.0
7 default_applicable_licenses: ["frameworks_native_license"],
8}
9
Daniel Nicoara4251e922017-04-13 15:19:15 -040010cc_library_shared {
Dan Willemsena5d65222018-09-14 21:27:01 -070011 name: "libvr_hwc-hal",
Daniel Nicoara4251e922017-04-13 15:19:15 -040012
Roman Kiryanovdd122c52020-11-17 22:59:38 -080013 system_ext_specific: true,
14
Dan Willemsena5d65222018-09-14 21:27:01 -070015 srcs: [
16 "impl/vr_hwc.cpp",
17 "impl/vr_composer_client.cpp",
18 ],
Daniel Nicoara4251e922017-04-13 15:19:15 -040019
Dan Willemsena5d65222018-09-14 21:27:01 -070020 static_libs: [
21 "libbroadcastring",
22 "libdisplay",
23 ],
Daniel Nicoara4251e922017-04-13 15:19:15 -040024
Dan Willemsena5d65222018-09-14 21:27:01 -070025 shared_libs: [
mamik94e91f62019-08-19 09:11:33 -070026 "android.frameworks.vr.composer@2.0",
Dan Willemsena5d65222018-09-14 21:27:01 -070027 "android.hardware.graphics.composer@2.1",
mamik94e91f62019-08-19 09:11:33 -070028 "android.hardware.graphics.composer@2.2",
29 "android.hardware.graphics.composer@2.3",
Marissa Wall72a90b62019-08-01 14:30:50 -070030 "android.hardware.graphics.composer@2.1-resources",
Dan Willemsena5d65222018-09-14 21:27:01 -070031 "android.hardware.graphics.mapper@2.0",
32 "android.hardware.graphics.mapper@3.0",
Marissa Wall87c8ba72019-06-20 14:20:52 -070033 "android.hardware.graphics.mapper@4.0",
Dan Willemsena5d65222018-09-14 21:27:01 -070034 "libbase",
35 "libbufferhubqueue",
36 "libbinder",
37 "libcutils",
38 "libfmq",
39 "libhardware",
40 "libhidlbase",
Dan Willemsena5d65222018-09-14 21:27:01 -070041 "liblog",
42 "libsync",
43 "libui",
44 "libutils",
45 "libpdx_default_transport",
46 ],
Daniel Nicoara4251e922017-04-13 15:19:15 -040047
Dan Willemsena5d65222018-09-14 21:27:01 -070048 header_libs: [
49 "android.hardware.graphics.composer@2.1-command-buffer",
mamik94e91f62019-08-19 09:11:33 -070050 "android.hardware.graphics.composer@2.3-hal",
Dan Willemsena5d65222018-09-14 21:27:01 -070051 ],
Chia-I Wud15d2d22018-01-29 13:59:18 -080052
Dan Willemsena5d65222018-09-14 21:27:01 -070053 export_header_lib_headers: [
mamik94e91f62019-08-19 09:11:33 -070054 "android.hardware.graphics.composer@2.3-hal",
Dan Willemsena5d65222018-09-14 21:27:01 -070055 ],
Courtney Goeltzenleuchter87551222018-01-16 14:00:09 -080056
Dan Willemsena5d65222018-09-14 21:27:01 -070057 export_static_lib_headers: [
58 "libdisplay",
59 ],
Steven Thomasdfde8fa2018-04-19 16:00:58 -070060
Dan Willemsena5d65222018-09-14 21:27:01 -070061 export_shared_lib_headers: [
mamik94e91f62019-08-19 09:11:33 -070062 "android.frameworks.vr.composer@2.0",
Dan Willemsena5d65222018-09-14 21:27:01 -070063 "android.hardware.graphics.composer@2.1",
mamik94e91f62019-08-19 09:11:33 -070064 "android.hardware.graphics.composer@2.2",
65 "android.hardware.graphics.composer@2.3",
Dan Willemsena5d65222018-09-14 21:27:01 -070066 ],
Daniel Nicoara4251e922017-04-13 15:19:15 -040067
Dan Willemsena5d65222018-09-14 21:27:01 -070068 export_include_dirs: ["."],
Daniel Nicoara4251e922017-04-13 15:19:15 -040069
Dan Willemsena5d65222018-09-14 21:27:01 -070070 cflags: [
71 "-DLOG_TAG=\"vr_hwc\"",
72 "-DATRACE_TAG=ATRACE_TAG_GRAPHICS",
73 "-Wall",
74 "-Werror",
75 "-Wno-error=unused-private-field",
76 // Warnings in vr_hwc.cpp to be fixed after sync of goog/master.
77 "-Wno-sign-compare",
78 "-Wno-unused-parameter",
79 ],
Daniel Nicoara4251e922017-04-13 15:19:15 -040080
81}
82
Daniel Nicoaraaba4d012017-03-09 15:10:26 -050083cc_library_static {
Dan Willemsena5d65222018-09-14 21:27:01 -070084 name: "libvr_hwc-impl",
85 srcs: [
86 "vr_composer.cpp",
87 ],
88 static_libs: [
89 "libvr_hwc-binder",
90 ],
91 shared_libs: [
92 "libbase",
93 "libbinder",
94 "liblog",
95 "libui",
96 "libutils",
97 "libvr_hwc-hal",
98 ],
99 export_shared_lib_headers: [
100 "libvr_hwc-hal",
101 ],
102 cflags: [
103 "-DLOG_TAG=\"vr_hwc\"",
104 "-Wall",
105 "-Werror",
106 ],
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500107}
108
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500109cc_test {
Dan Willemsena5d65222018-09-14 21:27:01 -0700110 name: "vr_hwc_test",
111 gtest: true,
112 srcs: ["tests/vr_composer_test.cpp"],
113 static_libs: [
114 "libgtest",
115 "libvr_hwc-impl",
116 // NOTE: This needs to be included after the *-impl lib otherwise the
117 // symbols in the *-binder library get optimized out.
118 "libvr_hwc-binder",
119 ],
120 cflags: [
121 "-Wall",
122 "-Werror",
123 // warnings in vr_composer_test.cpp to be fixed after merge of goog/master
124 "-Wno-sign-compare",
125 "-Wno-unused-parameter",
126 ],
127 shared_libs: [
128 "libbase",
129 "libbinder",
130 "liblog",
131 "libui",
132 "libutils",
133 ],
Daniel Nicoaraaba4d012017-03-09 15:10:26 -0500134}