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

Bazel support #1794

Open
jfalcou opened this issue May 8, 2024 Discussed in #1793 · 4 comments
Open

Bazel support #1794

jfalcou opened this issue May 8, 2024 Discussed in #1793 · 4 comments
Labels
CI Tasks related to continuous integration feature New feature or request

Comments

@jfalcou
Copy link
Owner

jfalcou commented May 8, 2024

Discussed in #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

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
Copy link
Owner Author

jfalcou commented May 8, 2024

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

@jfalcou jfalcou added feature New feature or request CI Tasks related to continuous integration labels May 8, 2024
@meftunca
Copy link

meftunca commented May 8, 2024

@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
Copy link

meftunca commented May 8, 2024

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
Copy link

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Tasks related to continuous integration feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants