Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Vertexwahn authored Jun 29, 2024
1 parent 51607e7 commit b58c330
Show file tree
Hide file tree
Showing 6 changed files with 87 additions and 1 deletion.
10 changes: 10 additions & 0 deletions modules/spdlog/1.14.1/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module(
name = "spdlog",
version = "1.14.1",
compatibility_level = 1,
)

bazel_dep(name = "fmt", version = "10.2.1.bcr.1")
bazel_dep(name = "rules_cc", version = "0.0.9")

bazel_dep(name = "catch2", version = "3.6.0", dev_dependency = True)
47 changes: 47 additions & 0 deletions modules/spdlog/1.14.1/overlay/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
load("@rules_cc//cc:defs.bzl", "cc_library")

cc_library(
name = "spdlog",
hdrs = glob([
"include/**/*.h",
]),
defines = ["SPDLOG_FMT_EXTERNAL"],
includes = ["include"],
visibility = ["//visibility:public"],
deps = ["@fmt"],
)

cc_test(
name = "spdlog_test",
srcs = [
"tests/includes.h",
"tests/main.cpp",
"tests/test_async.cpp",
"tests/test_backtrace.cpp",
"tests/test_cfg.cpp",
"tests/test_circular_q.cpp",
"tests/test_create_dir.cpp",
"tests/test_custom_callbacks.cpp",
"tests/test_daily_logger.cpp",
"tests/test_dup_filter.cpp",
"tests/test_eventlog.cpp",
"tests/test_file_helper.cpp",
"tests/test_file_logging.cpp",
"tests/test_fmt_helper.cpp",
"tests/test_macros.cpp",
"tests/test_misc.cpp",
"tests/test_mpmc_q.cpp",
"tests/test_pattern_formatter.cpp",
"tests/test_registry.cpp",
"tests/test_sink.h",
"tests/test_stdout_api.cpp",
"tests/test_stopwatch.cpp",
"tests/test_time_point.cpp",
"tests/utils.cpp",
"tests/utils.h",
],
deps = [
":spdlog",
"@catch2//:catch2_main",
],
)
1 change: 1 addition & 0 deletions modules/spdlog/1.14.1/overlay/MODULE.bazel
17 changes: 17 additions & 0 deletions modules/spdlog/1.14.1/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
matrix:
platform:
- debian10
- debian11
- macos
- macos_arm64
- ubuntu2004
- ubuntu2204
- windows
bazel: [7.x]
tasks:
verify_targets:
name: Verify build targets
platform: ${{ platform }}
bazel: ${{ bazel }}
build_targets:
- "@spdlog//:spdlog"
10 changes: 10 additions & 0 deletions modules/spdlog/1.14.1/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"url": "https://github.com/gabime/spdlog/archive/refs/tags/v1.14.1.tar.gz",
"integrity": "sha256-FYZQgCmn0GcN/LLZdXXc3CQtOGiiWXQrafEAgBq04Ws=",
"strip_prefix": "spdlog-1.14.1",
"patch_strip": 0,
"overlay": {
"MODULE.bazel": "sha256-UuS42/rCgs5hI+z/izdP845ZWlg9230K8zHq55k/r0A=",
"BUILD.bazel": "sha256-gpZNyGbTQEop8NPMJYadNLbSALgJFiRryyk4H4U8mxM="
}
}
3 changes: 2 additions & 1 deletion modules/spdlog/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"1.11.0",
"1.12.0",
"1.13.0",
"1.14.0"
"1.14.0",
"1.14.1"
],
"yanked_versions": {}
}

0 comments on commit b58c330

Please sign in to comment.