OSDN Git Service

Use shared lib of libtinyxml2 instead of static one.
authorJaekyun Seok <jaekyun@google.com>
Tue, 29 Nov 2016 01:08:10 +0000 (10:08 +0900)
committerJaekyun Seok <jaekyun@google.com>
Fri, 2 Dec 2016 07:51:53 +0000 (16:51 +0900)
libtinyxml2 is used commonly by vendors. So using its shared lib will reduce
total image size even though Android framework size increases as following for
now.

bluetooth.default.so: 1470356 -> 1440664 (-29692)
libtinyxml2.so      :       0 ->   46144 (+46144)
total               :                    (+16452)

Test: building succeeded, and the image was tested on angler.
Bug: 33056637
Change-Id: I3bd3cf7128e3ad6daa8157d57935f7422c1f2662

main/Android.mk

index c2abe17..9cb6b9b 100644 (file)
@@ -81,10 +81,10 @@ LOCAL_SHARED_LIBRARIES := \
     libprotobuf-cpp-lite \
     libaudioclient \
     libutils \
-    libchrome
+    libchrome \
+    libtinyxml2
 
 LOCAL_STATIC_LIBRARIES := \
-    libtinyxml2 \
     libbt-qcom_sbc_decoder
 
 LOCAL_WHOLE_STATIC_LIBRARIES := \