Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mmorel-35 authored Mar 25, 2024
1 parent 6e4b6d8 commit ec8e887
Show file tree
Hide file tree
Showing 6 changed files with 99 additions and 0 deletions.
10 changes: 10 additions & 0 deletions modules/hdrhistogram_c/0.11.2/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module(
name = "hdrhistogram_c",
version = "0.11.2",
compatibility_level = 1,
)

bazel_dep(
name = "zlib",
version = "1.3.1.bcr.1",
)
34 changes: 34 additions & 0 deletions modules/hdrhistogram_c/0.11.2/patches/add_build_file.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
--- /dev/null
+++ BUILD.bazel
@@ -0,0 +1,31 @@
+cc_library(
+ name = "hdrhistogram_c",
+ srcs = [
+ "src/hdr_encoding.c",
+ "src/hdr_histogram.c",
+ "src/hdr_histogram_log.c",
+ "src/hdr_interval_recorder.c",
+ "src/hdr_thread.c",
+ "src/hdr_time.c",
+ "src/hdr_writer_reader_phaser.c",
+ ],
+ hdrs = [
+ "src/hdr_atomic.h",
+ "src/hdr_encoding.h",
+ "src/hdr_endian.h",
+ "src/hdr_histogram.h",
+ "src/hdr_histogram_log.h",
+ "src/hdr_interval_recorder.h",
+ "src/hdr_tests.h",
+ "src/hdr_thread.h",
+ "src/hdr_time.h",
+ "src/hdr_writer_reader_phaser.h",
+ ],
+ copts = [
+ "-std=gnu99",
+ "-Wno-implicit-function-declaration",
+ "-Wno-error",
+ ],
+ visibility = ["//visibility:public"],
+ deps = ["@zlib"],
+)
13 changes: 13 additions & 0 deletions modules/hdrhistogram_c/0.11.2/patches/module_dot_bazel.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
--- MODULE.bazel
+++ MODULE.bazel
@@ -0,0 +1,10 @@
+module(
+ name = "hdrhistogram_c",
+ version = "0.11.2",
+ compatibility_level = 1,
+)
+
+bazel_dep(
+ name = "zlib",
+ version = "1.3.1.bcr.1",
+)
16 changes: 16 additions & 0 deletions modules/hdrhistogram_c/0.11.2/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
matrix:
platform:
- debian10
- ubuntu2004
- macos
- macos_arm64
bazel:
- 7.x
- 6.x
tasks:
verify_targets:
name: Verify build targets
platform: ${{ platform }}
bazel: ${{ bazel }}
build_targets:
- '@hdrhistogram_c//:hdrhistogram_c'
10 changes: 10 additions & 0 deletions modules/hdrhistogram_c/0.11.2/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"url": "https://github.com/HdrHistogram/HdrHistogram_c/archive/refs/tags/0.11.2.tar.gz",
"integrity": "sha256-Y38otfZN4uJoEx5ONObu8Lkc9f+ZFn20R9mygl6ua60=",
"strip_prefix": "HdrHistogram_c-0.11.2",
"patches": {
"add_build_file.patch": "sha256-3oOur+YN9ttwuII6klYpndhMGf1WNdgcp/c3ybpvWYw=",
"module_dot_bazel.patch": "sha256-N833h2a0gYMTx877/Qrs4Yx0LkKjwVi649g9PyzMCb4="
},
"patch_strip": 0
}
16 changes: 16 additions & 0 deletions modules/hdrhistogram_c/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"homepage": "https://github.com/HdrHistogram/HdrHistogram_c",
"maintainers": [
{
"email": "[email protected]",
"name": "No Maintainer Specified"
}
],
"repository": [
"github:HdrHistogram/HdrHistogram_c"
],
"versions": [
"0.11.2"
],
"yanked_versions": {}
}

0 comments on commit ec8e887

Please sign in to comment.