Skip to content

Commit

Permalink
Add trompeloeil v49 (#3289)
Browse files Browse the repository at this point in the history
Adds trompeloeil v49
  • Loading branch information
laurenshobert authored Dec 11, 2024
1 parent 5abe474 commit 978e49f
Show file tree
Hide file tree
Showing 8 changed files with 147 additions and 0 deletions.
7 changes: 7 additions & 0 deletions modules/trompeloeil/49/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module(
name = "trompeloeil",
version = "49",
compatibility_level = 1,
)

bazel_dep(name = "rules_cc", version = "0.1.0")
13 changes: 13 additions & 0 deletions modules/trompeloeil/49/overlay/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -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",
],
)
1 change: 1 addition & 0 deletions modules/trompeloeil/49/overlay/MODULE.bazel
51 changes: 51 additions & 0 deletions modules/trompeloeil/49/overlay/test/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -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"],
)
8 changes: 8 additions & 0 deletions modules/trompeloeil/49/overlay/test/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -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")
38 changes: 38 additions & 0 deletions modules/trompeloeil/49/presubmit.yml
Original file line number Diff line number Diff line change
@@ -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:
- //...
12 changes: 12 additions & 0 deletions modules/trompeloeil/49/source.json
Original file line number Diff line number Diff line change
@@ -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="
}
}
17 changes: 17 additions & 0 deletions modules/trompeloeil/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"homepage": "https://github.com/rollbear/trompeloeil",
"maintainers": [
{
"email": "[email protected]",
"github": "laurenshobert",
"name": "Laurens Hobert"
}
],
"repository": [
"github:rollbear/trompeloeil"
],
"versions": [
"49"
],
"yanked_versions": {}
}

0 comments on commit 978e49f

Please sign in to comment.