jfalcou / eve

Expressive Vector Engine - SIMD in C++ Goes Brrrr
https://jfalcou.github.io/eve/
Boost Software License 1.0
961 stars 58 forks source link

Bazel support #1794

Open jfalcou opened 6 months ago

jfalcou commented 6 months ago

Discussed in https://github.com/jfalcou/eve/discussions/1793

Originally posted by **meftunca** May 8, 2024 Please provide support for bazel modules. Below is the relevant link https://registry.bazel.build/ I am sharing sample basel file content for integration ```starlark load("@rules_cc//cc:defs.bzl", "cc_library") package(default_visibility = ["//visibility:public"]) cc_library( name = "eve", srcs = glob(["include/eve/**/*.hpp"]), hdrs = [], # alwayslink = True, copts = [ # "EVE_USE_BMI_ON_AVX2 OFF", "EVE_USE_PCH ON", "EVE_BUILD_TEST OFF", "EVE_BUILD_BENCHMARKS OFF", "EVE_BUILD_DOCUMENTATION OFF", "-DNEDBUG", "-std=c++23", "-fno-rtti", # set apple m2 arch "-march=native", "-mtune=native", ], includes = ["include"], linkopts = [], strip_include_prefix = "include", ) # install new_git_repository( name = "eve", branch = "main", build_file = "//:bazel_packages/eve.BUILD", remote = "https://github.com/jfalcou/eve.git", ) ```
jfalcou commented 6 months ago

@meftunca do we need to do something to add EVE to the Bazel repository or is it something purely local ?

meftunca commented 6 months ago

@jfalcou Honestly, I don't know exactly how it works, but I share the link to the document for you Doc link: https://bazel.build/external/overview Bazel Center Repo: https://github.com/bazelbuild/bazel-central-registry/tree/main/modules

If you give me time for the configuration, I can complete it by Sunday and send it to you.

meftunca commented 6 months ago

I found an example that might work for “eve”. You can check it out

https://github.com/bazelbuild/bazel-central-registry/tree/main/modules/asio/1.28.2

meftunca commented 5 months ago

Hey @jfalcou, I'm sorry I couldn't make things faster for you. As the project owner, bazel has added a github app https://github.com/apps/publish-to-bcr to automate your work. Please review it and let's complete the process together as soon as possible :)