Make protobuf usable by host-side java apps
Change-Id: Ic214bfb361eb2167d301b55a34b209a84a6d4a08
This commit is contained in:
parent
7d0a2a3c88
commit
aa6776432a
59
Android.mk
59
Android.mk
@ -33,23 +33,7 @@ CC_LITE_SRC_FILES := \
|
||||
src/google/protobuf/io/zero_copy_stream.cc \
|
||||
src/google/protobuf/io/zero_copy_stream_impl_lite.cc
|
||||
|
||||
# Java micro library
|
||||
# =======================================================
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE := libprotobuf-java-2.3.0-micro
|
||||
|
||||
LOCAL_SRC_FILES := $(call all-java-files-under, java/src/main/java/com/google/protobuf/micro)
|
||||
|
||||
include $(BUILD_STATIC_JAVA_LIBRARY)
|
||||
|
||||
# Java lite library
|
||||
# =======================================================
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE := libprotobuf-java-2.3.0-lite
|
||||
|
||||
LOCAL_SRC_FILES := \
|
||||
JAVA_LITE_SRC_FILES := \
|
||||
java/src/main/java/com/google/protobuf/UninitializedMessageException.java \
|
||||
java/src/main/java/com/google/protobuf/MessageLite.java \
|
||||
java/src/main/java/com/google/protobuf/InvalidProtocolBufferException.java \
|
||||
@ -63,8 +47,49 @@ LOCAL_SRC_FILES := \
|
||||
java/src/main/java/com/google/protobuf/WireFormat.java \
|
||||
java/src/main/java/com/google/protobuf/GeneratedMessageLite.java
|
||||
|
||||
|
||||
# Java micro library (for device-side users)
|
||||
# =======================================================
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE := libprotobuf-java-2.3.0-micro
|
||||
|
||||
LOCAL_SRC_FILES := $(call all-java-files-under, java/src/main/java/com/google/protobuf/micro)
|
||||
|
||||
include $(BUILD_STATIC_JAVA_LIBRARY)
|
||||
|
||||
# Java micro library (for host-side users)
|
||||
# =======================================================
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE := host-libprotobuf-java-2.3.0-micro
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
|
||||
LOCAL_SRC_FILES := $(call all-java-files-under, java/src/main/java/com/google/protobuf/micro)
|
||||
|
||||
include $(BUILD_HOST_JAVA_LIBRARY)
|
||||
|
||||
# Java lite library (for device-side users)
|
||||
# =======================================================
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE := libprotobuf-java-2.3.0-lite
|
||||
|
||||
LOCAL_SRC_FILES := $(JAVA_LITE_SRC_FILES)
|
||||
|
||||
include $(BUILD_STATIC_JAVA_LIBRARY)
|
||||
|
||||
# Java lite library (for host-side users)
|
||||
# =======================================================
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE := host-libprotobuf-java-2.3.0-lite
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
|
||||
LOCAL_SRC_FILES := $(JAVA_LITE_SRC_FILES)
|
||||
|
||||
include $(BUILD_HOST_JAVA_LIBRARY)
|
||||
|
||||
# C++ lite library
|
||||
# =======================================================
|
||||
include $(CLEAR_VARS)
|
||||
|
Loading…
Reference in New Issue
Block a user