xref: /freebsd-src/contrib/googletest/MODULE.bazel (revision 5ca8c28cd8c725b81781201cfdb5f9969396f934)
1*5ca8c28cSEnji Cooper# Copyright 2024 Google Inc.
2*5ca8c28cSEnji Cooper# All Rights Reserved.
3*5ca8c28cSEnji Cooper#
4*5ca8c28cSEnji Cooper#
5*5ca8c28cSEnji Cooper# Redistribution and use in source and binary forms, with or without
6*5ca8c28cSEnji Cooper# modification, are permitted provided that the following conditions are
7*5ca8c28cSEnji Cooper# met:
8*5ca8c28cSEnji Cooper#
9*5ca8c28cSEnji Cooper#     * Redistributions of source code must retain the above copyright
10*5ca8c28cSEnji Cooper# notice, this list of conditions and the following disclaimer.
11*5ca8c28cSEnji Cooper#     * Redistributions in binary form must reproduce the above
12*5ca8c28cSEnji Cooper# copyright notice, this list of conditions and the following disclaimer
13*5ca8c28cSEnji Cooper# in the documentation and/or other materials provided with the
14*5ca8c28cSEnji Cooper# distribution.
15*5ca8c28cSEnji Cooper#     * Neither the name of Google Inc. nor the names of its
16*5ca8c28cSEnji Cooper# contributors may be used to endorse or promote products derived from
17*5ca8c28cSEnji Cooper# this software without specific prior written permission.
18*5ca8c28cSEnji Cooper#
19*5ca8c28cSEnji Cooper# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20*5ca8c28cSEnji Cooper# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21*5ca8c28cSEnji Cooper# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22*5ca8c28cSEnji Cooper# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23*5ca8c28cSEnji Cooper# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24*5ca8c28cSEnji Cooper# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25*5ca8c28cSEnji Cooper# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26*5ca8c28cSEnji Cooper# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27*5ca8c28cSEnji Cooper# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28*5ca8c28cSEnji Cooper# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29*5ca8c28cSEnji Cooper# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30*5ca8c28cSEnji Cooper
31*5ca8c28cSEnji Cooper# https://bazel.build/external/overview#bzlmod
32*5ca8c28cSEnji Cooper
33*5ca8c28cSEnji Coopermodule(
34*5ca8c28cSEnji Cooper    name = "googletest",
35*5ca8c28cSEnji Cooper    version = "1.15.2",
36*5ca8c28cSEnji Cooper    compatibility_level = 1,
37*5ca8c28cSEnji Cooper)
38*5ca8c28cSEnji Cooper
39*5ca8c28cSEnji Cooper# Only direct dependencies need to be listed below.
40*5ca8c28cSEnji Cooper# Please keep the versions in sync with the versions in the WORKSPACE file.
41*5ca8c28cSEnji Cooper
42*5ca8c28cSEnji Cooperbazel_dep(name = "abseil-cpp",
43*5ca8c28cSEnji Cooper          version = "20240116.2",
44*5ca8c28cSEnji Cooper          repo_name = "com_google_absl")
45*5ca8c28cSEnji Cooper
46*5ca8c28cSEnji Cooperbazel_dep(name = "platforms",
47*5ca8c28cSEnji Cooper          version = "0.0.10")
48*5ca8c28cSEnji Cooper
49*5ca8c28cSEnji Cooperbazel_dep(name = "re2",
50*5ca8c28cSEnji Cooper          repo_name = "com_googlesource_code_re2",
51*5ca8c28cSEnji Cooper          version = "2024-07-02")
52*5ca8c28cSEnji Cooper
53*5ca8c28cSEnji Cooperbazel_dep(name = "rules_python",
54*5ca8c28cSEnji Cooper          version = "0.34.0",
55*5ca8c28cSEnji Cooper          dev_dependency = True)
56*5ca8c28cSEnji Cooper
57*5ca8c28cSEnji Cooper# https://rules-python.readthedocs.io/en/stable/toolchains.html#library-modules-with-dev-only-python-usage
58*5ca8c28cSEnji Cooperpython = use_extension(
59*5ca8c28cSEnji Cooper    "@rules_python//python/extensions:python.bzl",
60*5ca8c28cSEnji Cooper    "python",
61*5ca8c28cSEnji Cooper    dev_dependency = True
62*5ca8c28cSEnji Cooper)
63*5ca8c28cSEnji Cooper
64*5ca8c28cSEnji Cooperpython.toolchain(python_version = "3.12",
65*5ca8c28cSEnji Cooper                 is_default = True,
66*5ca8c28cSEnji Cooper                 ignore_root_user_error = True)
67*5ca8c28cSEnji Cooper
68*5ca8c28cSEnji Cooperfake_fuchsia_sdk = use_repo_rule("//:fake_fuchsia_sdk.bzl", "fake_fuchsia_sdk")
69*5ca8c28cSEnji Cooperfake_fuchsia_sdk(name = "fuchsia_sdk")
70