diff --git a/modules/xsimd/8.1.0/MODULE.bazel b/modules/xsimd/8.1.0/MODULE.bazel new file mode 100644 index 00000000000..b015218eaae --- /dev/null +++ b/modules/xsimd/8.1.0/MODULE.bazel @@ -0,0 +1,5 @@ +module( + name = "xsimd", + version = "8.1.0", + compatibility_level = 1, +) diff --git a/modules/xsimd/8.1.0/patches/add_build_file.patch b/modules/xsimd/8.1.0/patches/add_build_file.patch new file mode 100644 index 00000000000..835b8f0d3b7 --- /dev/null +++ b/modules/xsimd/8.1.0/patches/add_build_file.patch @@ -0,0 +1,36 @@ +--- /dev/null ++++ BUILD.bazel +@@ -0,0 +1,33 @@ ++# Reference: https://github.com/tensorflow/io/blob/v0.25.0/third_party/xsimd.BUILD ++ ++package(default_visibility = ["//visibility:public"]) ++ ++licenses(["notice"]) # BSD 3-Clause ++ ++exports_files(["LICENSE"]) ++ ++cc_library( ++ name = "xsimd", ++ srcs = [], ++ hdrs = glob( ++ [ ++ "include/xsimd/*.hpp", ++ "include/xsimd/config/*.hpp", ++ "include/xsimd/math/*.hpp", ++ "include/xsimd/memory/*.hpp", ++ "include/xsimd/stl/*.hpp", ++ "include/xsimd/types/*.hpp", ++ ], ++ exclude = [ ++ ], ++ ), ++ copts = [], ++ defines = [], ++ includes = [ ++ "include", ++ ], ++ linkopts = [], ++ visibility = ["//visibility:public"], ++ deps = [ ++ ], ++) diff --git a/modules/xsimd/8.1.0/patches/module_dot_bazel.patch b/modules/xsimd/8.1.0/patches/module_dot_bazel.patch new file mode 100644 index 00000000000..3c5c96b3eba --- /dev/null +++ b/modules/xsimd/8.1.0/patches/module_dot_bazel.patch @@ -0,0 +1,8 @@ +--- MODULE.bazel ++++ MODULE.bazel +@@ -0,0 +1,5 @@ ++module( ++ name = "xsimd", ++ version = "8.1.0", ++ compatibility_level = 1, ++) diff --git a/modules/xsimd/8.1.0/presubmit.yml b/modules/xsimd/8.1.0/presubmit.yml new file mode 100644 index 00000000000..66df2e82c38 --- /dev/null +++ b/modules/xsimd/8.1.0/presubmit.yml @@ -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: + - '@xsimd//:xsimd' diff --git a/modules/xsimd/8.1.0/source.json b/modules/xsimd/8.1.0/source.json new file mode 100644 index 00000000000..4d520a106d8 --- /dev/null +++ b/modules/xsimd/8.1.0/source.json @@ -0,0 +1,10 @@ +{ + "url": "https://github.com/xtensor-stack/xsimd/archive/refs/tags/8.1.0.tar.gz", + "integrity": "sha256-1SVRNg03cJZ1I30qBBjij3CZW1t82tfGdGJrz7v0gyg=", + "strip_prefix": "xsimd-8.1.0", + "patches": { + "add_build_file.patch": "sha256-9a0MJ/S7IRjN6rC3I8CDxxq3eyNojKwevFhDoKtN0rY=", + "module_dot_bazel.patch": "sha256-YwBlgMHncRPprAhSm7ekjO8ltSSgfK4hy+1J8dyEpGU=" + }, + "patch_strip": 0 +} diff --git a/modules/xsimd/metadata.json b/modules/xsimd/metadata.json new file mode 100644 index 00000000000..571900bdf81 --- /dev/null +++ b/modules/xsimd/metadata.json @@ -0,0 +1,16 @@ +{ + "homepage": "https://github.com/xtensor-stack/xsimd", + "maintainers": [ + { + "email": "bcr-maintainers@bazel.build", + "name": "No Maintainer Specified" + } + ], + "repository": [ + "github:xtensor-stack/xsimd" + ], + "versions": [ + "8.1.0" + ], + "yanked_versions": {} +}