Merge pull request #6177 from cgrushko/master
Add `protobuf_java_lite` Bazel target
This commit is contained in:
commit
e992abd1f8
101
BUILD
101
BUILD
@ -647,6 +647,107 @@ java_library(
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
java_library(
|
||||
name = "protobuf_javalite",
|
||||
srcs = [
|
||||
# Keep in sync with java/lite/pom.xml
|
||||
"java/core/src/main/java/com/google/protobuf/AbstractMessageLite.java",
|
||||
"java/core/src/main/java/com/google/protobuf/AbstractParser.java",
|
||||
"java/core/src/main/java/com/google/protobuf/AbstractProtobufList.java",
|
||||
"java/core/src/main/java/com/google/protobuf/AllocatedBuffer.java",
|
||||
"java/core/src/main/java/com/google/protobuf/Android.java",
|
||||
"java/core/src/main/java/com/google/protobuf/ArrayDecoders.java",
|
||||
"java/core/src/main/java/com/google/protobuf/BinaryReader.java",
|
||||
"java/core/src/main/java/com/google/protobuf/BinaryWriter.java",
|
||||
"java/core/src/main/java/com/google/protobuf/BooleanArrayList.java",
|
||||
"java/core/src/main/java/com/google/protobuf/BufferAllocator.java",
|
||||
"java/core/src/main/java/com/google/protobuf/ByteBufferWriter.java",
|
||||
"java/core/src/main/java/com/google/protobuf/ByteOutput.java",
|
||||
"java/core/src/main/java/com/google/protobuf/ByteString.java",
|
||||
"java/core/src/main/java/com/google/protobuf/CodedInputStream.java",
|
||||
"java/core/src/main/java/com/google/protobuf/CodedInputStreamReader.java",
|
||||
"java/core/src/main/java/com/google/protobuf/CodedOutputStream.java",
|
||||
"java/core/src/main/java/com/google/protobuf/CodedOutputStreamWriter.java",
|
||||
"java/core/src/main/java/com/google/protobuf/DoubleArrayList.java",
|
||||
"java/core/src/main/java/com/google/protobuf/ExperimentalApi.java",
|
||||
"java/core/src/main/java/com/google/protobuf/ExtensionLite.java",
|
||||
"java/core/src/main/java/com/google/protobuf/ExtensionRegistryFactory.java",
|
||||
"java/core/src/main/java/com/google/protobuf/ExtensionRegistryLite.java",
|
||||
"java/core/src/main/java/com/google/protobuf/ExtensionSchema.java",
|
||||
"java/core/src/main/java/com/google/protobuf/ExtensionSchemaLite.java",
|
||||
"java/core/src/main/java/com/google/protobuf/ExtensionSchemas.java",
|
||||
"java/core/src/main/java/com/google/protobuf/FieldInfo.java",
|
||||
"java/core/src/main/java/com/google/protobuf/FieldSet.java",
|
||||
"java/core/src/main/java/com/google/protobuf/FieldType.java",
|
||||
"java/core/src/main/java/com/google/protobuf/FloatArrayList.java",
|
||||
"java/core/src/main/java/com/google/protobuf/GeneratedMessageInfoFactory.java",
|
||||
"java/core/src/main/java/com/google/protobuf/GeneratedMessageLite.java",
|
||||
"java/core/src/main/java/com/google/protobuf/IntArrayList.java",
|
||||
"java/core/src/main/java/com/google/protobuf/Internal.java",
|
||||
"java/core/src/main/java/com/google/protobuf/InvalidProtocolBufferException.java",
|
||||
"java/core/src/main/java/com/google/protobuf/IterableByteBufferInputStream.java",
|
||||
"java/core/src/main/java/com/google/protobuf/JavaType.java",
|
||||
"java/core/src/main/java/com/google/protobuf/LazyField.java",
|
||||
"java/core/src/main/java/com/google/protobuf/LazyFieldLite.java",
|
||||
"java/core/src/main/java/com/google/protobuf/LazyStringArrayList.java",
|
||||
"java/core/src/main/java/com/google/protobuf/LazyStringList.java",
|
||||
"java/core/src/main/java/com/google/protobuf/ListFieldSchema.java",
|
||||
"java/core/src/main/java/com/google/protobuf/LongArrayList.java",
|
||||
"java/core/src/main/java/com/google/protobuf/ManifestSchemaFactory.java",
|
||||
"java/core/src/main/java/com/google/protobuf/MapEntryLite.java",
|
||||
"java/core/src/main/java/com/google/protobuf/MapFieldLite.java",
|
||||
"java/core/src/main/java/com/google/protobuf/MapFieldSchema.java",
|
||||
"java/core/src/main/java/com/google/protobuf/MapFieldSchemaLite.java",
|
||||
"java/core/src/main/java/com/google/protobuf/MapFieldSchemas.java",
|
||||
"java/core/src/main/java/com/google/protobuf/MessageInfo.java",
|
||||
"java/core/src/main/java/com/google/protobuf/MessageInfoFactory.java",
|
||||
"java/core/src/main/java/com/google/protobuf/MessageLite.java",
|
||||
"java/core/src/main/java/com/google/protobuf/MessageLiteOrBuilder.java",
|
||||
"java/core/src/main/java/com/google/protobuf/MessageLiteToString.java",
|
||||
"java/core/src/main/java/com/google/protobuf/MessageSchema.java",
|
||||
"java/core/src/main/java/com/google/protobuf/MessageSetSchema.java",
|
||||
"java/core/src/main/java/com/google/protobuf/MutabilityOracle.java",
|
||||
"java/core/src/main/java/com/google/protobuf/NewInstanceSchema.java",
|
||||
"java/core/src/main/java/com/google/protobuf/NewInstanceSchemaLite.java",
|
||||
"java/core/src/main/java/com/google/protobuf/NewInstanceSchemas.java",
|
||||
"java/core/src/main/java/com/google/protobuf/NioByteString.java",
|
||||
"java/core/src/main/java/com/google/protobuf/OneofInfo.java",
|
||||
"java/core/src/main/java/com/google/protobuf/Parser.java",
|
||||
"java/core/src/main/java/com/google/protobuf/PrimitiveNonBoxingCollection.java",
|
||||
"java/core/src/main/java/com/google/protobuf/ProtoSyntax.java",
|
||||
"java/core/src/main/java/com/google/protobuf/Protobuf.java",
|
||||
"java/core/src/main/java/com/google/protobuf/ProtobufArrayList.java",
|
||||
"java/core/src/main/java/com/google/protobuf/ProtobufLists.java",
|
||||
"java/core/src/main/java/com/google/protobuf/ProtocolStringList.java",
|
||||
"java/core/src/main/java/com/google/protobuf/RawMessageInfo.java",
|
||||
"java/core/src/main/java/com/google/protobuf/Reader.java",
|
||||
"java/core/src/main/java/com/google/protobuf/RopeByteString.java",
|
||||
"java/core/src/main/java/com/google/protobuf/Schema.java",
|
||||
"java/core/src/main/java/com/google/protobuf/SchemaFactory.java",
|
||||
"java/core/src/main/java/com/google/protobuf/SchemaUtil.java",
|
||||
"java/core/src/main/java/com/google/protobuf/SmallSortedMap.java",
|
||||
"java/core/src/main/java/com/google/protobuf/StructuralMessageInfo.java",
|
||||
"java/core/src/main/java/com/google/protobuf/TextFormatEscaper.java",
|
||||
"java/core/src/main/java/com/google/protobuf/UninitializedMessageException.java",
|
||||
"java/core/src/main/java/com/google/protobuf/UnknownFieldSchema.java",
|
||||
"java/core/src/main/java/com/google/protobuf/UnknownFieldSetLite.java",
|
||||
"java/core/src/main/java/com/google/protobuf/UnknownFieldSetLiteSchema.java",
|
||||
"java/core/src/main/java/com/google/protobuf/UnmodifiableLazyStringList.java",
|
||||
"java/core/src/main/java/com/google/protobuf/UnsafeUtil.java",
|
||||
"java/core/src/main/java/com/google/protobuf/Utf8.java",
|
||||
"java/core/src/main/java/com/google/protobuf/WireFormat.java",
|
||||
"java/core/src/main/java/com/google/protobuf/Writer.java",
|
||||
],
|
||||
javacopts = select({
|
||||
"//:jdk9": ["--add-modules=jdk.unsupported"],
|
||||
"//conditions:default": [
|
||||
"-source 7",
|
||||
"-target 7",
|
||||
],
|
||||
}),
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
java_library(
|
||||
name = "protobuf_java_util",
|
||||
srcs = glob([
|
||||
|
@ -86,6 +86,7 @@
|
||||
<resource>
|
||||
<directory>${basedir}/../core/src/main/java/com/google/protobuf</directory>
|
||||
<includes>
|
||||
<!-- Keep in sync with //:BUILD -->
|
||||
<include>AbstractMessageLite.java</include>
|
||||
<include>AbstractParser.java</include>
|
||||
<include>AbstractProtobufList.java</include>
|
||||
|
Loading…
Reference in New Issue
Block a user