xref: /aosp_15_r20/external/jazzer-api/bazel/compat.bzl (revision 33edd6723662ea34453766bfdca85dbfdd5342b8)
1*33edd672SMark# Copyright 2021 Code Intelligence GmbH
2*33edd672SMark#
3*33edd672SMark# Licensed under the Apache License, Version 2.0 (the "License");
4*33edd672SMark# you may not use this file except in compliance with the License.
5*33edd672SMark# You may obtain a copy of the License at
6*33edd672SMark#
7*33edd672SMark#      http://www.apache.org/licenses/LICENSE-2.0
8*33edd672SMark#
9*33edd672SMark# Unless required by applicable law or agreed to in writing, software
10*33edd672SMark# distributed under the License is distributed on an "AS IS" BASIS,
11*33edd672SMark# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*33edd672SMark# See the License for the specific language governing permissions and
13*33edd672SMark# limitations under the License.
14*33edd672SMark
15*33edd672SMarkSKIP_ON_MACOS = select({
16*33edd672SMark    "@platforms//os:macos": ["@platforms//:incompatible"],
17*33edd672SMark    "//conditions:default": [],
18*33edd672SMark})
19*33edd672SMark
20*33edd672SMarkSKIP_ON_WINDOWS = select({
21*33edd672SMark    "@platforms//os:windows": ["@platforms//:incompatible"],
22*33edd672SMark    "//conditions:default": [],
23*33edd672SMark})
24*33edd672SMark
25*33edd672SMarkLINUX_ONLY = select({
26*33edd672SMark    "@platforms//os:linux": [],
27*33edd672SMark    "//conditions:default": ["@platforms//:incompatible"],
28*33edd672SMark})
29*33edd672SMark
30*33edd672SMarkMULTI_PLATFORM = select({
31*33edd672SMark    "@platforms//os:macos": [
32*33edd672SMark        "//bazel/platforms:macos_arm64",
33*33edd672SMark        "//bazel/platforms:macos_x86_64",
34*33edd672SMark    ],
35*33edd672SMark    "//conditions:default": [],
36*33edd672SMark})
37