Extract telephony-protos target.
After this CL, the protos that were formerly part of telephony-common
are now a separate build target. This allows telephony-protos to be
pinned to a particular java_version (in a follow-up CL), and more
generally separates the proto-related from not proto-related build
configuration.
Bug: 72703434
Test: Treehugger
Change-Id: I1c1d95e24f584b73e5fe64ca6251fa7b153fba0b
diff --git a/proto/Android.bp b/proto/Android.bp
new file mode 100644
index 0000000..8e24b50
--- /dev/null
+++ b/proto/Android.bp
@@ -0,0 +1,27 @@
+// 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: "telephony-protos",
+ proto: {
+ type: "nano",
+ output_params: [
+ "store_unknown_fields=true",
+ "enum_style=java",
+ ],
+ },
+ srcs: ["src/**/*.proto"],
+ no_framework_libs: true,
+ jarjar_rules: "jarjar-rules.txt",
+}
\ No newline at end of file