Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mmorel-35 authored Apr 8, 2024
1 parent 374ccef commit 7c3f51b
Show file tree
Hide file tree
Showing 6 changed files with 98 additions and 0 deletions.
10 changes: 10 additions & 0 deletions modules/libcircllhist/0.3.2/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module(
name = "libcircllhist",
version = "0.3.2",
compatibility_level = 1,
)

bazel_dep(
name = "platforms",
version = "0.0.9",
)
32 changes: 32 additions & 0 deletions modules/libcircllhist/0.3.2/patches/add_build_file.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
--- /dev/null
+++ BUILD.bazel
@@ -0,0 +1,29 @@
+licenses(["notice"]) # Apache 2
+
+config_setting(
+ name = "windows_x86_64",
+ constraint_values = [
+ "@platforms//os:windows",
+ "@platforms//cpu:x86_64",
+ ],
+)
+
+cc_library(
+ name = "circlhist",
+ srcs = ["src/circllhist.c"],
+ hdrs = [
+ "src/circllhist.h",
+ ],
+ copts = select({
+ "//:windows_x86_64": ["-DWIN32"],
+ "//conditions:default": [],
+ }),
+ includes = ["src"],
+ visibility = ["//visibility:public"],
+)
+
+alias(
+ name = "libcirclhist",
+ actual = "//:circlhist",
+ visibility = ["//visibility:public"],
+)
13 changes: 13 additions & 0 deletions modules/libcircllhist/0.3.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 = "libcircllhist",
+ version = "0.3.2",
+ compatibility_level = 1,
+)
+
+bazel_dep(
+ name = "platforms",
+ version = "0.0.9",
+)
17 changes: 17 additions & 0 deletions modules/libcircllhist/0.3.2/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
matrix:
platform:
- debian10
- ubuntu2004
- macos
- macos_arm64
- windows
bazel:
- 7.x
- 6.x
tasks:
verify_targets:
name: Verify build targets
platform: ${{ platform }}
bazel: ${{ bazel }}
build_targets:
- '@libcircllhist//:circlhist'
10 changes: 10 additions & 0 deletions modules/libcircllhist/0.3.2/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"url": "https://github.com/openhistogram/libcircllhist/archive/refs/tags/py-0.3.2.tar.gz",
"integrity": "sha256-bfvWSf3jgPeiJW3vQ7nGN0xtb+doF4sJ457t+HSxOfQ=",
"strip_prefix": "libcircllhist-py-0.3.2",
"patches": {
"add_build_file.patch": "sha256-wPHohNg+WtTFG3P20tz5XFvUIIky91m+rcTBAPQRp68=",
"module_dot_bazel.patch": "sha256-vDWOqnn32u7V2xvbuIqMabjVLu6oejZtcLAjxFCJQTo="
},
"patch_strip": 0
}
16 changes: 16 additions & 0 deletions modules/libcircllhist/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"homepage": "https://github.com/openhistogram/libcircllhist",
"maintainers": [
{
"email": "[email protected]",
"name": "No Maintainer Specified"
}
],
"repository": [
"github:openhistogram/libcircllhist"
],
"versions": [
"0.3.2"
],
"yanked_versions": {}
}

0 comments on commit 7c3f51b

Please sign in to comment.