mirror of
https://github.com/catchorg/Catch2.git
synced 2025-06-07 20:55:32 +02:00
Bazel support: Add license annotations
This commit is contained in:
parent
74fcff6e5b
commit
3013cb897b
4
.bazelrc
4
.bazelrc
@ -1,10 +1,8 @@
|
|||||||
# Enable Bzlmod for every Bazel command
|
|
||||||
common --enable_bzlmod
|
|
||||||
|
|
||||||
build --enable_platform_specific_config
|
build --enable_platform_specific_config
|
||||||
|
|
||||||
build:gcc9 --cxxopt=-std=c++2a
|
build:gcc9 --cxxopt=-std=c++2a
|
||||||
build:gcc11 --cxxopt=-std=c++2a
|
build:gcc11 --cxxopt=-std=c++2a
|
||||||
|
build:gcc13 --cxxopt=-std=c++2a
|
||||||
build:clang13 --cxxopt=-std=c++17
|
build:clang13 --cxxopt=-std=c++17
|
||||||
build:vs2019 --cxxopt=/std:c++17
|
build:vs2019 --cxxopt=/std:c++17
|
||||||
build:vs2022 --cxxopt=/std:c++17
|
build:vs2022 --cxxopt=/std:c++17
|
||||||
|
16
BUILD.bazel
16
BUILD.bazel
@ -1,4 +1,20 @@
|
|||||||
load("@bazel_skylib//rules:expand_template.bzl", "expand_template")
|
load("@bazel_skylib//rules:expand_template.bzl", "expand_template")
|
||||||
|
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||||
|
load("@rules_license//rules:license.bzl", "license")
|
||||||
|
|
||||||
|
package(
|
||||||
|
default_applicable_licenses = [":license"],
|
||||||
|
)
|
||||||
|
|
||||||
|
exports_files([
|
||||||
|
"LICENSE.MIT",
|
||||||
|
])
|
||||||
|
|
||||||
|
license(
|
||||||
|
name = "license",
|
||||||
|
license_kinds = ["@rules_license//licenses/spdx:BSL-1.0"],
|
||||||
|
license_text = "LICENSE.MIT",
|
||||||
|
)
|
||||||
|
|
||||||
expand_template(
|
expand_template(
|
||||||
name = "catch_user_config",
|
name = "catch_user_config",
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
module(name = "catch2")
|
module(name = "catch2")
|
||||||
|
|
||||||
bazel_dep(name = "bazel_skylib", version = "1.7.1")
|
bazel_dep(name = "bazel_skylib", version = "1.7.1")
|
||||||
bazel_dep(name = "rules_cc", version = "0.0.17")
|
bazel_dep(name = "rules_cc", version = "0.1.1")
|
||||||
|
bazel_dep(name = "rules_license", version = "1.0.0")
|
||||||
|
@ -21,6 +21,7 @@ cc_test(
|
|||||||
size = "small",
|
size = "small",
|
||||||
srcs = [
|
srcs = [
|
||||||
"SelfTest/IntrospectiveTests/Algorithms.tests.cpp",
|
"SelfTest/IntrospectiveTests/Algorithms.tests.cpp",
|
||||||
|
"SelfTest/IntrospectiveTests/AssertionHandler.tests.cpp",
|
||||||
"SelfTest/IntrospectiveTests/Clara.tests.cpp",
|
"SelfTest/IntrospectiveTests/Clara.tests.cpp",
|
||||||
"SelfTest/IntrospectiveTests/CmdLine.tests.cpp",
|
"SelfTest/IntrospectiveTests/CmdLine.tests.cpp",
|
||||||
"SelfTest/IntrospectiveTests/CmdLineHelpers.tests.cpp",
|
"SelfTest/IntrospectiveTests/CmdLineHelpers.tests.cpp",
|
||||||
@ -30,6 +31,7 @@ cc_test(
|
|||||||
"SelfTest/IntrospectiveTests/GeneratorsImpl.tests.cpp",
|
"SelfTest/IntrospectiveTests/GeneratorsImpl.tests.cpp",
|
||||||
"SelfTest/IntrospectiveTests/Integer.tests.cpp",
|
"SelfTest/IntrospectiveTests/Integer.tests.cpp",
|
||||||
"SelfTest/IntrospectiveTests/InternalBenchmark.tests.cpp",
|
"SelfTest/IntrospectiveTests/InternalBenchmark.tests.cpp",
|
||||||
|
"SelfTest/IntrospectiveTests/Json.tests.cpp",
|
||||||
"SelfTest/IntrospectiveTests/Parse.tests.cpp",
|
"SelfTest/IntrospectiveTests/Parse.tests.cpp",
|
||||||
"SelfTest/IntrospectiveTests/PartTracker.tests.cpp",
|
"SelfTest/IntrospectiveTests/PartTracker.tests.cpp",
|
||||||
"SelfTest/IntrospectiveTests/RandomNumberGeneration.tests.cpp",
|
"SelfTest/IntrospectiveTests/RandomNumberGeneration.tests.cpp",
|
||||||
@ -63,6 +65,7 @@ cc_test(
|
|||||||
"SelfTest/UsageTests/MatchersRanges.tests.cpp",
|
"SelfTest/UsageTests/MatchersRanges.tests.cpp",
|
||||||
"SelfTest/UsageTests/Message.tests.cpp",
|
"SelfTest/UsageTests/Message.tests.cpp",
|
||||||
"SelfTest/UsageTests/Misc.tests.cpp",
|
"SelfTest/UsageTests/Misc.tests.cpp",
|
||||||
|
"SelfTest/UsageTests/Skip.tests.cpp",
|
||||||
"SelfTest/UsageTests/ToStringByte.tests.cpp",
|
"SelfTest/UsageTests/ToStringByte.tests.cpp",
|
||||||
"SelfTest/UsageTests/ToStringChrono.tests.cpp",
|
"SelfTest/UsageTests/ToStringChrono.tests.cpp",
|
||||||
"SelfTest/UsageTests/ToStringGeneral.tests.cpp",
|
"SelfTest/UsageTests/ToStringGeneral.tests.cpp",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user