Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added robin-map v1.2.1 #642

Closed
wants to merge 11 commits into from
5 changes: 5 additions & 0 deletions modules/nanobind/0.2.0/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module(
name = "nanobind",
version = "0.2.0",
compatibility_level = 1,
)
65 changes: 65 additions & 0 deletions modules/nanobind/0.2.0/patches/add_build_file.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
--- /dev/null
+++ BUILD.bazel
@@ -0,0 +1,56 @@
+config_setting(
+ name = "msvc_compiler",
+ flag_values = {"@bazel_tools//tools/cpp:compiler": "msvc-cl"},
+)
+
+config_setting(
+ name = "macos",
+ constraint_values = ["@platforms//os:macos"],
+ visibility = ["//visibility:public"],
+)
+
+cc_library(
+ name = "nanobind",
+ hdrs = glob(
+ include = [
+ "include/nanobind/*.h",
+ "include/nanobind/stl/*.h",
+ "include/nanobind/detail/*.h",
+ ],
+ exclude = [],
+ ),
+ srcs = [
+ "include/nanobind/stl/detail/nb_dict.h",
+ "include/nanobind/stl/detail/nb_list.h",
+ "include/nanobind/stl/detail/traits.h",
+ "ext/robin_map/include/tsl/robin_map.h",
+ "ext/robin_map/include/tsl/robin_hash.h",
+ "ext/robin_map/include/tsl/robin_growth_policy.h",
+ "ext/robin_map/include/tsl/robin_set.h",
+ "src/buffer.h",
+ "src/common.cpp",
+ "src/error.cpp",
+ "src/implicit.cpp",
+ "src/nb_enum.cpp",
+ "src/nb_func.cpp",
+ "src/nb_internals.cpp",
+ "src/nb_internals.h",
+ "src/nb_ndarray.cpp",
+ "src/nb_type.cpp",
+ "src/trampoline.cpp",
+ ],
+ copts = select({
+ ":msvc_compiler": [],
+ "//conditions:default": [
+ "-fexceptions",
+ "-Os", # size optimization
+ "-flto", # enable LTO
+ ],
+ }),
+ linkopts = select({
+ ":macos": [
+ "-undefined dynamic_lookup",
+ "-Wl,-no_fixup_chains",
+ "-Wl,-dead_strip",
+ ],
+ "//conditions:default": [],
+ }),
+ includes = ["include", "ext/robin_map/include"],
+ deps = ["@python_headers"],
+ visibility = ["//visibility:public"],
+)
+
8 changes: 8 additions & 0 deletions modules/nanobind/0.2.0/patches/module_dot_bazel.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
--- MODULE.bazel
+++ MODULE.bazel
@@ -0,0 +1,5 @@
+module(
+ name = "nanobind",
+ version = "0.2.0",
+ compatibility_level = 1,
+)
13 changes: 13 additions & 0 deletions modules/nanobind/0.2.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:
- '@nanobind//:nanobind'
9 changes: 9 additions & 0 deletions modules/nanobind/0.2.0/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"url": "https://github.com/wjakob/nanobind/archive/refs/tags/v0.2.0.zip",
"integrity": "sha256-v0soLJmDVKQ0TFAvF7Onx8cTdlN1IgZ+ZArp1l3EwgE=",
"patches": {
"add_build_file.patch": "sha256-kKLSJmO15htwKrzRpm3/6bVFHGUHglz8aqqW/cYice4=",
"module_dot_bazel.patch": "sha256-kGPVi2hZmLyGWbbi4Tsd3kKvOU06BLNVkuLrFp7b7Ps="
},
"patch_strip": 0
}
11 changes: 11 additions & 0 deletions modules/nanobind/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"homepage": "https://github.com/wjakob/nanobind",
"maintainers": [],
"repository": [
"github:wjakob/nanobind"
],
"versions": [
"0.2.0"
],
"yanked_versions": {}
}
7 changes: 7 additions & 0 deletions modules/robin-map/1.2.1/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module(
name = "robin-map",
version = "1.2.1",
compatibility_level = 1,
)

bazel_dep(name = "platforms", version = "0.0.6")
9 changes: 9 additions & 0 deletions modules/robin-map/1.2.1/patches/add_build_file.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
--- /dev/null
+++ BUILD.bazel
@@ -0,0 +1,6 @@
+cc_library(
+ name = "robin-map",
+ hdrs = glob(["include/tsl/*.h"]),
+ strip_include_prefix = "include/",
+ visibility = ["//visibility:public"],
+)
10 changes: 10 additions & 0 deletions modules/robin-map/1.2.1/patches/module_dot_bazel.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
--- MODULE.bazel
+++ MODULE.bazel
@@ -0,0 +1,7 @@
+module(
+ name = "robin-map",
+ version = "1.2.1",
+ compatibility_level = 1,
+)
+
+bazel_dep(name = "platforms", version = "0.0.6")
13 changes: 13 additions & 0 deletions modules/robin-map/1.2.1/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:
- '@robin_map//:robin-map'
10 changes: 10 additions & 0 deletions modules/robin-map/1.2.1/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"url": "https://github.com/Tessil/robin-map/archive/refs/tags/v1.2.1.zip",
"integrity": "sha256-6kjzzAk/kJwykKkj1l9E1kGe1BMdqOWPU/TvQv/bVSQ=",
"patches": {
"add_build_file.patch": "sha256-cqUpStaGktaU2ZQgWoO588fyyWq58to8Xrs6IpqskAw=",
"module_dot_bazel.patch": "sha256-Zi5GOUFFIVVzBxgVLV3bl+fGob2OhA2okKRClxK4Egc="
},
"patch_strip": 0,
"strip_prefix": "robin-map-1.2.1"
}
11 changes: 11 additions & 0 deletions modules/robin-map/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"homepage": "https://github.com/Tessil/robin-map",
"maintainers": [],
"repository": [
"github:Tessil/robin-map"
],
"versions": [
"1.2.1"
],
"yanked_versions": {}
}