Make protobuf usable by host-side java apps

Change-Id: Ic214bfb361eb2167d301b55a34b209a84a6d4a08
This commit is contained in:
Omari Stephens 2010-09-30 15:59:59 -07:00
parent 7d0a2a3c88
commit aa6776432a

View File

@ -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)