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

Commit e4c3c431 authored by Jaekyun Seok's avatar Jaekyun Seok
Browse files

Use libxml2 as shared lib.

The dependencies to static libraries in frameworks should be removed
as many as possible to reduce a size of the system partition.
And that will improve coverage of the VNDK libraries because this
effort might find new necessary shared libs which were linked
statically before.

Size diffs of affected binaries on sailfish-userdebug build are as
follows.

libaudiopolicymanagerdefault.so: 583440 -> 267288 (-316152)
libaudiopolicymanager.so       : 16008 -> 16004 (-4)

total                          : (-316156)

Test: building succeeded, and the image was tested on sailfish.
Bug: 33056637
Change-Id: I51d98c5c2b5d94561190a1651063737fb1cb06ff
parent 0a2ea583
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -79,9 +79,7 @@ LOCAL_STATIC_LIBRARIES := \
LOCAL_SHARED_LIBRARIES += libmedia_helper

ifeq ($(USE_XML_AUDIO_POLICY_CONF), 1)
LOCAL_STATIC_LIBRARIES += libxml2

LOCAL_SHARED_LIBRARIES += libicuuc
LOCAL_SHARED_LIBRARIES += libicuuc libxml2

LOCAL_CFLAGS += -DUSE_XML_AUDIO_POLICY_CONF
endif #ifeq ($(USE_XML_AUDIO_POLICY_CONF), 1)
+1 −3
Original line number Diff line number Diff line
@@ -41,9 +41,7 @@ ifeq ($(USE_XML_AUDIO_POLICY_CONF), 1)

LOCAL_SRC_FILES += src/Serializer.cpp

LOCAL_STATIC_LIBRARIES += libxml2

LOCAL_SHARED_LIBRARIES += libicuuc
LOCAL_SHARED_LIBRARIES += libicuuc libxml2

LOCAL_C_INCLUDES += \
    $(TOPDIR)external/libxml2/include \
+3 −3
Original line number Diff line number Diff line
@@ -42,8 +42,7 @@ LOCAL_MODULE_TAGS := optional

LOCAL_STATIC_LIBRARIES := \
    libaudiopolicypfwwrapper \
    libaudiopolicycomponents \
    libxml2
    libaudiopolicycomponents

LOCAL_SHARED_LIBRARIES := \
    liblog \
@@ -52,7 +51,8 @@ LOCAL_SHARED_LIBRARIES := \
    liblog \
    libaudioutils \
    libparameter \
    libmedia_helper
    libmedia_helper \
    libxml2

include $(BUILD_SHARED_LIBRARY)

+0 −1
Original line number Diff line number Diff line
@@ -36,7 +36,6 @@ LOCAL_MODULE_TAGS := optional

LOCAL_STATIC_LIBRARIES := \
    libaudiopolicycomponents \
    libxml2

LOCAL_SHARED_LIBRARIES += \
    liblog \