aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Gilbride <mattgilbride@google.com>2024-02-28 14:56:33 +0000
committerMatt Gilbride <mattgilbride@google.com>2024-03-20 17:05:56 +0000
commitd9c655cc253d4955c9ee66ae2fe206321d5afb02 (patch)
tree52b85000a2ff286726310882a852952394d10631
parent5ac4cab962d7b056cfe3ef1353322bd1b9f26fad (diff)
downloadopencensus-java-master.tar.gz
Enable windows targetHEADmastermain
`//tools/apksig` build targets will soon depend on this, and windows must be enabled (transitively) on all dependencies. Bug: 319296492 Test: TH Change-Id: Iecb38430b77df897c4cf66d26020dba98970dacb
-rw-r--r--api/Android.bp5
-rw-r--r--contrib/grpc_metrics/Android.bp5
-rw-r--r--contrib/http_util/Android.bp41
3 files changed, 51 insertions, 0 deletions
diff --git a/api/Android.bp b/api/Android.bp
index 2bc74ad1..57041313 100644
--- a/api/Android.bp
+++ b/api/Android.bp
@@ -46,4 +46,9 @@ java_library {
"//apex_available:platform",
"com.android.devicelock",
],
+ target: {
+ windows: {
+ enabled: true,
+ },
+ },
}
diff --git a/contrib/grpc_metrics/Android.bp b/contrib/grpc_metrics/Android.bp
index 7184c1ff..4dc37498 100644
--- a/contrib/grpc_metrics/Android.bp
+++ b/contrib/grpc_metrics/Android.bp
@@ -41,4 +41,9 @@ java_library {
"//apex_available:platform",
"com.android.devicelock",
],
+ target: {
+ windows: {
+ enabled: true,
+ },
+ },
}
diff --git a/contrib/http_util/Android.bp b/contrib/http_util/Android.bp
new file mode 100644
index 00000000..a7539843
--- /dev/null
+++ b/contrib/http_util/Android.bp
@@ -0,0 +1,41 @@
+// Copyright (C) 2020 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.
+//
+//
+
+package {
+ // See: http://go/android-license-faq
+ // A large-scale-change added 'default_applicable_licenses' to import
+ // all of the 'license_kinds' from "external_opencensus-java_license"
+ // to get the below license kinds:
+ // SPDX-license-identifier-Apache-2.0
+ default_applicable_licenses: ["external_opencensus-java_license"],
+}
+
+java_library {
+ name: "opencensus-java-contrib-http-util",
+ host_supported: true,
+ srcs: [
+ "src/main/java/**/*.java",
+ ],
+ libs: [
+ "opencensus-java-api",
+ "guava",
+ ],
+ target: {
+ windows: {
+ enabled: true,
+ },
+ },
+}