From d9c655cc253d4955c9ee66ae2fe206321d5afb02 Mon Sep 17 00:00:00 2001 From: Matt Gilbride Date: Wed, 28 Feb 2024 14:56:33 +0000 Subject: Enable windows target `//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 --- api/Android.bp | 5 +++++ contrib/grpc_metrics/Android.bp | 5 +++++ contrib/http_util/Android.bp | 41 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 contrib/http_util/Android.bp 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, + }, + }, +} -- cgit v1.2.3