libvr_manager: Remove libbinder as static library.
Letting the library be statically linked does a couple of bad things:
- (importantly) allows its internal implementation details to become frozen
- (still important) uses extra space on this device
For these reasons, it is being made shared-only.
Test: boot Pixel 2
Bug: 111454508
Change-Id: Id258fedfc68587a9f24de0904e793248a0e068d1
diff --git a/libs/vr/libvr_manager/Android.bp b/libs/vr/libvr_manager/Android.bp
index 8784877..2cd6a28 100644
--- a/libs/vr/libvr_manager/Android.bp
+++ b/libs/vr/libvr_manager/Android.bp
@@ -12,25 +12,17 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-exported_include_dirs = [ "include" ]
-
-include_dirs = ["frameworks/native/include/vr/vr_manager"]
-
-src_files = [
- "vr_manager.cpp",
- "trusted_uids.cpp",
-]
-
-static_libs = [
- "libutils",
- "libbinder",
-]
-
cc_library_static {
- srcs: src_files,
- include_dirs: include_dirs,
- export_include_dirs: exported_include_dirs,
- cflags: ["-Wall", "-Werror", "-Wunused", "-Wunreachable-code"],
- static_libs: static_libs,
name: "libvr_manager",
+ srcs: [
+ "vr_manager.cpp",
+ "trusted_uids.cpp",
+ ],
+ include_dirs: ["frameworks/native/include/vr/vr_manager"],
+ export_include_dirs: [ "include" ],
+ cflags: ["-Wall", "-Werror", "-Wunused", "-Wunreachable-code"],
+ shared_libs: [
+ "libutils",
+ "libbinder",
+ ],
}