Skip to content

Commit

Permalink
Add spdlog version 1.10.0 (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kernald committed Jun 13, 2022
1 parent 7bd963d commit 454ba0e
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modules/spdlog/1.10.0/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module(
name = "spdlog",
compatibility_level = 1,
version = "1.10.0",
)

bazel_dep(name = "fmt", version = "8.1.1")
bazel_dep(name = "rules_cc", version = "0.0.1")
21 changes: 21 additions & 0 deletions modules/spdlog/1.10.0/patches/add_build_file.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
--- /dev/null
+++ BUILD.bazel
@@ -0,0 +1,18 @@
+load("@rules_cc//cc:defs.bzl", "cc_library")
+
+licenses(["notice"]) # Apache 2
+
+package(
+ default_visibility = ["//visibility:public"],
+)
+
+cc_library(
+ name = "spdlog",
+ hdrs = glob([
+ "include/**/*.cc",
+ "include/**/*.h",
+ ]),
+ defines = ["SPDLOG_FMT_EXTERNAL"],
+ includes = ["include"],
+ deps = ["@fmt"],
+)
13 changes: 13 additions & 0 deletions modules/spdlog/1.10.0/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
matrix:
platform:
- centos7
- debian10
- ubuntu2004
- macos
- windows
tasks:
verify_targets:
name: Verify build targets
platform: ${{ platform }}
build_targets:
- '@spdlog//:spdlog'
9 changes: 9 additions & 0 deletions modules/spdlog/1.10.0/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"integrity": "sha256-aX+RcAI3264jJrkEab4yuHaytEiIMCr7x6zraLz+giQ=",
"patch_strip": 0,
"patches": {
"add_build_file.patch": "sha256-G4/iVL0sDRRdcC8X+DCRN2l6oDVNE2TxJ6Vj8IaNct4="
},
"strip_prefix": "spdlog-1.10.0",
"url": "https://github.com/gabime/spdlog/archive/refs/tags/v1.10.0.tar.gz"
}
8 changes: 8 additions & 0 deletions modules/spdlog/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"homepage": "https://github.com/gabime/spdlog",
"maintainers": [],
"versions": [
"1.10.0"
],
"yanked_versions": {}
}

0 comments on commit 454ba0e

Please sign in to comment.