mirror of https://github.com/grpc/grpc.git
[build] rename android platforms to match CPU arch (#36715)
Work around for https://github.com/bazelbuild/bazel/issues/15837#issuecomment-2127758141
Fixes a problem where the example client and server APKs would build but could not be installed (`INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries`)
Closes #36715
COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36715 from jdcormie:android-platforms f71e994b14
PiperOrigin-RevId: 640938680
pull/36831/head^2
parent
14d76aac59
commit
e409ca652f
4 changed files with 39 additions and 26 deletions
@ -0,0 +1,37 @@ |
||||
# Copyright 2024 gRPC authors. |
||||
# |
||||
# 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. |
||||
|
||||
platform( |
||||
name = "x86_64", |
||||
constraint_values = [ |
||||
"@platforms//os:android", |
||||
"@platforms//cpu:x86_64", |
||||
], |
||||
) |
||||
|
||||
platform( |
||||
name = "arm64-v8a", |
||||
constraint_values = [ |
||||
"@platforms//os:android", |
||||
"@platforms//cpu:arm64", |
||||
], |
||||
) |
||||
|
||||
platform( |
||||
name = "armeabi-v7a", |
||||
constraint_values = [ |
||||
"@platforms//os:android", |
||||
"@platforms//cpu:armv7", |
||||
], |
||||
) |
Loading…
Reference in new issue