Start adding Soong build files for grpc-grpc-java Add basic build files for the grpc-java modules. Still need to be added: netty, protobuf Test: make Bug: None Change-Id: I9248dd23c0ec24ec0f9a15aa6f6d826b7b90d617
diff --git a/context/Android.bp b/context/Android.bp new file mode 100644 index 0000000..d7a89b8 --- /dev/null +++ b/context/Android.bp
@@ -0,0 +1,28 @@ +// Copyright (C) 2018 The Android Open Source Project +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// + +java_library_static { + name: "grpc-java-context", + host_supported: true, + srcs: [ + "src/main/java/**/*.java", + ], + libs: [ + "error_prone_annotations", + "guava", + "jsr305", + ], +}
diff --git a/core/Android.bp b/core/Android.bp new file mode 100644 index 0000000..32623fe --- /dev/null +++ b/core/Android.bp
@@ -0,0 +1,31 @@ +// Copyright (C) 2018 The Android Open Source Project +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// + +java_library_static { + name: "grpc-java-core", + host_supported: true, + srcs: [ + "src/main/java/io/grpc/*.java", + ], + java_resource_dirs: [ + "core/src/main/resources", + ], + libs: [ + "grpc-java-context", + "guava", + "jsr305", + ], +}
diff --git a/protobuf-lite/Android.bp b/protobuf-lite/Android.bp new file mode 100644 index 0000000..64ce02d --- /dev/null +++ b/protobuf-lite/Android.bp
@@ -0,0 +1,29 @@ +// Copyright (C) 2018 The Android Open Source Project +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// + +java_library { + name: "grpc-java-protobuf-lite", + host_supported: true, + srcs: [ + "src/main/java/**/*.java", + ], + libs: [ + "grpc-java-core", + "guava", + "jsr305", + "libprotobuf-java-lite", + ], +}
diff --git a/stub/Android.bp b/stub/Android.bp new file mode 100644 index 0000000..7d88971 --- /dev/null +++ b/stub/Android.bp
@@ -0,0 +1,29 @@ +// Copyright (C) 2018 The Android Open Source Project +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// + +java_library_static { + name: "grpc-java-stub", + host_supported: true, + srcs: [ + "src/main/java/**/*.java", + ], + libs: [ + "grpc-java-context", + "grpc-java-core", + "guava", + "jsr305", + ], +}