Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 257d4638 authored by Steven Moreland's avatar Steven Moreland
Browse files

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
parent 1e89d965
Loading
Loading
Loading
Loading
+11 −19
Original line number Diff line number Diff line
@@ -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 = [
cc_library_static {
    name: "libvr_manager",
    srcs: [
        "vr_manager.cpp",
        "trusted_uids.cpp",
]

static_libs = [
    ],
    include_dirs: ["frameworks/native/include/vr/vr_manager"],
    export_include_dirs: [ "include" ],
    cflags: ["-Wall", "-Werror", "-Wunused", "-Wunreachable-code"],
    shared_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",
    ],
}