Switch libplatformproto to sharedlib
libplatformprotos is really really unhappy if it gets loaded twice into the same process which trivially happens if it's a static library. Switch it to a shared library instead to fix this. Change-Id: I90297d076d0739bab683fbd9607d7fc0884a002d Fixes: 36272398 Test: Ran hwui_unit_test, didn't crash
This commit is contained in:
@@ -1460,7 +1460,8 @@ LOCAL_PROTOC_FLAGS := \
|
||||
LOCAL_SRC_FILES := \
|
||||
$(call all-proto-files-under, core/proto) \
|
||||
$(call all-proto-files-under, libs/incident/proto)
|
||||
include $(BUILD_STATIC_LIBRARY)
|
||||
LOCAL_SHARED_LIBRARIES := libprotobuf-cpp-full
|
||||
include $(BUILD_SHARED_LIBRARY)
|
||||
|
||||
# ==== c++ proto host library ==============================
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
@@ -27,7 +27,5 @@ LOCAL_SHARED_LIBRARIES += \
|
||||
libft2 \
|
||||
libminikin \
|
||||
libandroidfw \
|
||||
libRScpp
|
||||
|
||||
LOCAL_STATIC_LIBRARIES += \
|
||||
libRScpp \
|
||||
libplatformprotos
|
||||
|
||||
Reference in New Issue
Block a user