diff --git a/modules/trompeloeil/49/MODULE.bazel b/modules/trompeloeil/49/MODULE.bazel new file mode 100644 index 00000000000..94aa9b408a2 --- /dev/null +++ b/modules/trompeloeil/49/MODULE.bazel @@ -0,0 +1,7 @@ +module( + name = "trompeloeil", + version = "49", + compatibility_level = 1, +) + +bazel_dep(name = "rules_cc", version = "0.1.0") diff --git a/modules/trompeloeil/49/overlay/BUILD.bazel b/modules/trompeloeil/49/overlay/BUILD.bazel new file mode 100644 index 00000000000..41042e5c193 --- /dev/null +++ b/modules/trompeloeil/49/overlay/BUILD.bazel @@ -0,0 +1,13 @@ +load("@rules_cc//cc:defs.bzl", "cc_library") + +package(default_visibility = ["//visibility:public"]) + +cc_library( + name = "trompeloeil", + hdrs = glob([ + "include/**/*.hpp", + ]), + includes = [ + "include", + ], +) diff --git a/modules/trompeloeil/49/overlay/MODULE.bazel b/modules/trompeloeil/49/overlay/MODULE.bazel new file mode 120000 index 00000000000..9b599e3ad9c --- /dev/null +++ b/modules/trompeloeil/49/overlay/MODULE.bazel @@ -0,0 +1 @@ +../MODULE.bazel \ No newline at end of file diff --git a/modules/trompeloeil/49/overlay/test/BUILD.bazel b/modules/trompeloeil/49/overlay/test/BUILD.bazel new file mode 100644 index 00000000000..fb6252f51a7 --- /dev/null +++ b/modules/trompeloeil/49/overlay/test/BUILD.bazel @@ -0,0 +1,51 @@ +load("@rules_cc//cc:defs.bzl", "cc_test") + +package(default_visibility = ["//visibility:private"]) + +cc_test( + name = "trompeloeil_self", + srcs = [ + "compiling_tests.cpp", + "compiling_tests.hpp", + "compiling_tests_11.cpp", + "compiling_tests_14.cpp", + "test_reporter.hpp", + ], + defines = [ + "CATCH2_VERSION=3", + ], + deps = [ + "@trompeloeil", + "@catch2//:catch2_main", + ], +) + +cc_test( + name = "trompeloeil_thread_terror", + srcs = [ + "thread_terror.cpp", + ], + defines = [ + "CATCH2_VERSION=3", + ], + deps = [ + "@trompeloeil", + "@catch2//:catch2_main", + ], + linkopts = ["-lpthread"], +) + +cc_test( + name = "trompeloeil_custom_recursive_mutex", + srcs = [ + "custom_recursive_mutex.cpp", + ], + defines = [ + "CATCH2_VERSION=3", + ], + deps = [ + "@trompeloeil", + "@catch2//:catch2_main", + ], + linkopts = ["-lpthread"], +) diff --git a/modules/trompeloeil/49/overlay/test/MODULE.bazel b/modules/trompeloeil/49/overlay/test/MODULE.bazel new file mode 100644 index 00000000000..7e9a017dc9a --- /dev/null +++ b/modules/trompeloeil/49/overlay/test/MODULE.bazel @@ -0,0 +1,8 @@ +bazel_dep(name = "trompeloeil") +local_path_override( + module_name = "trompeloeil", + path = "..", +) + +bazel_dep(name = "catch2", version = "3.7.1") +bazel_dep(name = "rules_cc", version = "0.1.0") diff --git a/modules/trompeloeil/49/presubmit.yml b/modules/trompeloeil/49/presubmit.yml new file mode 100644 index 00000000000..335d4c85aad --- /dev/null +++ b/modules/trompeloeil/49/presubmit.yml @@ -0,0 +1,38 @@ +matrix: &matrix + bazel: + - 7.x + platform: + - debian10 + - debian11 + - macos + - macos_arm64 + - ubuntu2004 + - ubuntu2204 + +tasks: + target: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_flags: + - '--cxxopt=-std=c++14' + build_targets: + - '@trompeloeil//...' + - '-@trompeloeil//test/...' + +bcr_test_module: + module_path: "test" + matrix: *matrix + tasks: + run_test_module: + name: "Run test module" + platform: ${{ platform }} + bazel: ${{ bazel }} + build_flags: + - '--cxxopt=-std=c++14' + build_targets: + - //... + test_flags: + - '--cxxopt=-std=c++14' + test_targets: + - //... diff --git a/modules/trompeloeil/49/source.json b/modules/trompeloeil/49/source.json new file mode 100644 index 00000000000..d73e6bdc958 --- /dev/null +++ b/modules/trompeloeil/49/source.json @@ -0,0 +1,12 @@ +{ + "integrity": "sha256-JSNXH7eSCygTy8I7RuYClKuo6tfrpDS/7GnCRAhhVZM=", + "strip_prefix": "trompeloeil-49", + "url": "https://github.com/rollbear/trompeloeil/archive/refs/tags/v49.tar.gz", + "patch_strip": 0, + "overlay": { + "BUILD.bazel": "sha256-MqyGq4Q2JId2igtI8r/YVW3Jgq6zdiVXCgfRVGBQJBQ=", + "MODULE.bazel": "sha256-Leob0xszCJCQVEcEW8bLpAZV5P09MIxhAyAWsUHPHjY=", + "test/BUILD.bazel": "sha256-tLSQ2NTNBck40vX+WdtUIgLbTy/KzKUvo/YlvHsxPgU=", + "test/MODULE.bazel": "sha256-4Onn2q+ErKYZ2okfwJ3+K+CKZMtLtFCybOFMFOIr5Lw=" + } +} diff --git a/modules/trompeloeil/metadata.json b/modules/trompeloeil/metadata.json new file mode 100644 index 00000000000..6ae228d3bd8 --- /dev/null +++ b/modules/trompeloeil/metadata.json @@ -0,0 +1,17 @@ +{ + "homepage": "https://github.com/rollbear/trompeloeil", + "maintainers": [ + { + "email": "10121375+laurenshobert@users.noreply.github.com", + "github": "laurenshobert", + "name": "Laurens Hobert" + } + ], + "repository": [ + "github:rollbear/trompeloeil" + ], + "versions": [ + "49" + ], + "yanked_versions": {} +}