1# Copyright 2024 The Bazel Authors. All rights reserved. 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15load("@bazel_skylib//lib:selects.bzl", "selects") 16 17licenses(["notice"]) 18 19selects.config_setting_group( 20 name = "linux_x86_64", 21 match_all = [ 22 "@platforms//os:linux", 23 "@platforms//cpu:x86_64", 24 ], 25) 26 27selects.config_setting_group( 28 name = "linux_aarch64", 29 match_all = [ 30 "@platforms//os:linux", 31 "@platforms//cpu:aarch64", 32 ], 33) 34 35selects.config_setting_group( 36 name = "macos_x86_64", 37 match_all = [ 38 "@platforms//os:macos", 39 "@platforms//cpu:x86_64", 40 ], 41) 42 43selects.config_setting_group( 44 name = "macos_aarch64", 45 match_all = [ 46 "@platforms//os:macos", 47 "@platforms//cpu:aarch64", 48 ], 49) 50 51selects.config_setting_group( 52 name = "windows_x86_64", 53 match_all = [ 54 "@platforms//os:windows", 55 "@platforms//cpu:x86_64", 56 ], 57) 58 59selects.config_setting_group( 60 name = "windows_aarch64", 61 match_all = [ 62 "@platforms//os:windows", 63 "@platforms//cpu:aarch64", 64 ], 65) 66