Skip to content

Commit

Permalink
Add spdlog 1.12.0 (#1206)
Browse files Browse the repository at this point in the history
* Add spdlog 1.12.0

* Fix empty glob

* Add maintainer

* Remove lock file

* Remove centos

---------

Co-authored-by: Xùdōng Yáng <wyverald@gmail.com>
  • Loading branch information
Vertexwahn and Wyverald committed Dec 26, 2023
1 parent a38a164 commit df1475e
Show file tree
Hide file tree
Showing 6 changed files with 69 additions and 2 deletions.
8 changes: 8 additions & 0 deletions modules/spdlog/1.12.0/MODULE.bazel
@@ -0,0 +1,8 @@
module(
name = "spdlog",
compatibility_level = 1,
version = "1.12.0",
)

bazel_dep(name = "fmt", version = "10.1.1")
bazel_dep(name = "rules_cc", version = "0.0.9")
19 changes: 19 additions & 0 deletions modules/spdlog/1.12.0/patches/add_build_file.patch
@@ -0,0 +1,19 @@
--- /dev/null
+++ BUILD.bazel
@@ -0,0 +1,16 @@
+load("@rules_cc//cc:defs.bzl", "cc_library")
+
+
+package(
+ default_visibility = ["//visibility:public"],
+)
+
+cc_library(
+ name = "spdlog",
+ hdrs = glob([
+ "include/**/*.h",
+ ]),
+ defines = ["SPDLOG_FMT_EXTERNAL"],
+ includes = ["include"],
+ deps = ["@fmt"],
+)
11 changes: 11 additions & 0 deletions modules/spdlog/1.12.0/patches/module_dot_bazel.patch
@@ -0,0 +1,11 @@
--- MODULE.bazel
+++ MODULE.bazel
@@ -0,0 +1,8 @@
+module(
+ name = "spdlog",
+ compatibility_level = 1,
+ version = "1.12.0",
+)
+
+bazel_dep(name = "fmt", version = "10.1.1")
+bazel_dep(name = "rules_cc", version = "0.0.9")
12 changes: 12 additions & 0 deletions modules/spdlog/1.12.0/presubmit.yml
@@ -0,0 +1,12 @@
matrix:
platform:
- debian10
- ubuntu2004
- macos
- windows
tasks:
verify_targets:
name: Verify build targets
platform: ${{ platform }}
build_targets:
- '@spdlog//:spdlog'
10 changes: 10 additions & 0 deletions modules/spdlog/1.12.0/source.json
@@ -0,0 +1,10 @@
{
"integrity": "sha256-Tczy0Q9BDB4v6v+Jlmv8SaGrsp728IJGM1sRDgAeCak=",
"patch_strip": 0,
"patches": {
"add_build_file.patch": "sha256-TR0oqR+EUPMJdMZ9aUwDP2SbLYkFJ2IDc8Yh36CGwaM=",
"module_dot_bazel.patch": "sha256-VHUe5aAq17EEjcpXMufOOmE4gDP0+FzaMSkl6Q2MWxk="
},
"strip_prefix": "spdlog-1.12.0",
"url": "https://github.com/gabime/spdlog/archive/refs/tags/v1.12.0.tar.gz"
}
11 changes: 9 additions & 2 deletions modules/spdlog/metadata.json
@@ -1,12 +1,19 @@
{
"homepage": "https://github.com/gabime/spdlog",
"maintainers": [],
"maintainers": [
{
"email": "julian.amann@tum.de",
"github": "Vertexwahn",
"name": "Julian Amann"
}
],
"repository": [
"github:gabime/spdlog"
],
"versions": [
"1.10.0",
"1.11.0"
"1.11.0",
"1.12.0"
],
"yanked_versions": {}
}

0 comments on commit df1475e

Please sign in to comment.