Merge "Use platform protobuf unless building with NDK."
This commit is contained in:
commit
1f6371583e
1 changed files with 12 additions and 2 deletions
|
@ -561,13 +561,23 @@ ifeq ($(LOCAL_PROTOC_OPTIMIZE_TYPE),full)
|
||||||
$(warning Stripping unneeded dependency on libprotobuf-cpp-2.3.0-full in $(LOCAL_MODULE))
|
$(warning Stripping unneeded dependency on libprotobuf-cpp-2.3.0-full in $(LOCAL_MODULE))
|
||||||
my_static_libraries := $(filter-out libprotobuf-cpp-2.3.0-full,$(my_static_libraries))
|
my_static_libraries := $(filter-out libprotobuf-cpp-2.3.0-full,$(my_static_libraries))
|
||||||
endif
|
endif
|
||||||
my_static_libraries += libprotobuf-cpp-full
|
|
||||||
|
ifdef LOCAL_SDK_VERSION
|
||||||
|
my_static_libraries += libprotobuf-cpp-full
|
||||||
|
else
|
||||||
|
my_shared_libraries += libprotobuf-cpp-full
|
||||||
|
endif
|
||||||
else
|
else
|
||||||
ifneq ($(filter libprotobuf-cpp-2.3.0-lite,$(my_static_libraries)),)
|
ifneq ($(filter libprotobuf-cpp-2.3.0-lite,$(my_static_libraries)),)
|
||||||
$(warning Stripping unneeded dependency on libprotobuf-cpp-2.3.0-lite in $(LOCAL_MODULE))
|
$(warning Stripping unneeded dependency on libprotobuf-cpp-2.3.0-lite in $(LOCAL_MODULE))
|
||||||
my_static_libraries := $(filter-out libprotobuf-cpp-2.3.0-lite,$(my_static_libraries))
|
my_static_libraries := $(filter-out libprotobuf-cpp-2.3.0-lite,$(my_static_libraries))
|
||||||
endif
|
endif
|
||||||
my_static_libraries += libprotobuf-cpp-lite
|
|
||||||
|
ifdef LOCAL_SDK_VERSION
|
||||||
|
my_static_libraries += libprotobuf-cpp-lite
|
||||||
|
else
|
||||||
|
my_shared_libraries += libprotobuf-cpp-lite
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
endif # $(proto_sources) non-empty
|
endif # $(proto_sources) non-empty
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue