summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP.Y. Laligand <pylaligand@google.com>2015-03-13 07:09:43 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-03-13 07:09:43 +0000
commit847d91396504629dbfb3cd597acd61045dd630e2 (patch)
tree8b02f0d164e41d6e5082fa671d8addb3c70a2aab
parentdecd20a067811244b705d3d3cd9e45fdb3081bb8 (diff)
parentbb555861ba1bbe274c0fdcca8029fb8dffee9914 (diff)
downloadexternal_protobuf-847d91396504629dbfb3cd597acd61045dd630e2.zip
external_protobuf-847d91396504629dbfb3cd597acd61045dd630e2.tar.gz
external_protobuf-847d91396504629dbfb3cd597acd61045dd630e2.tar.bz2
am bb555861: am 182e6d05: Merge "Added a build rule for the full version of the protocol buffer library."
* commit 'bb555861ba1bbe274c0fdcca8029fb8dffee9914': Added a build rule for the full version of the protocol buffer library.
-rw-r--r--Android.mk17
1 files changed, 17 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index 5dc957c..9b8d0ef 100644
--- a/Android.mk
+++ b/Android.mk
@@ -66,6 +66,12 @@ JAVA_LITE_SRC_FILES := \
java/src/main/java/com/google/protobuf/SmallSortedMap.java \
java/src/main/java/com/google/protobuf/Utf8.java
+# This contains more source files than needed for the full version, but the
+# additional files should not create any conflict.
+JAVA_FULL_SRC_FILES := \
+ $(call all-java-files-under, java/src/main/java) \
+ src/google/protobuf/descriptor.proto
+
COMPILER_SRC_FILES := \
src/google/protobuf/descriptor.cc \
src/google/protobuf/descriptor.pb.cc \
@@ -230,6 +236,17 @@ LOCAL_SRC_FILES := $(JAVA_LITE_SRC_FILES)
include $(BUILD_HOST_JAVA_LIBRARY)
+# Java full library (for host-side users)
+# =======================================================
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := host-libprotobuf-java-full
+LOCAL_MODULE_TAGS := optional
+
+LOCAL_SRC_FILES := $(JAVA_FULL_SRC_FILES)
+
+include $(BUILD_HOST_JAVA_LIBRARY)
+
# C++ lite library
# =======================================================
include $(CLEAR_VARS)