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

wanted: ocornut/imgui #1306

Open
1 task
phaedon opened this issue Jan 10, 2024 · 1 comment
Open
1 task

wanted: ocornut/imgui #1306

phaedon opened this issue Jan 10, 2024 · 1 comment
Labels
module wanted Users want a certain module to be available in the BCR, contributions are welcome!

Comments

@phaedon
Copy link
Contributor

phaedon commented Jan 10, 2024

Module location

https://github.com/ocornut/imgui

Link to bzlmod issue in the module's repository

No response

Any other context to provide?

For starters, here's the WORKSPACE rule I'm using:

http_archive(
    name = "imgui-1.86",
    build_file_content = """
cc_library(
    name = "imgui-1.86",
    srcs = [
        "backends/imgui_impl_glfw.cpp",
        "backends/imgui_impl_opengl3.cpp",
        "imgui.cpp",
        "imgui_draw.cpp",
        "imgui_tables.cpp",
        "imgui_widgets.cpp",
    ],
    hdrs = [
        "backends/imgui_impl_glfw.h",
        "backends/imgui_impl_opengl3.h",
        "backends/imgui_impl_opengl3_loader.h",
        "imconfig.h",
        "imgui.h",
        "imgui_internal.h",
        "imstb_rectpack.h",
        "imstb_textedit.h",
        "imstb_truetype.h",
    ],
    deps = [
        "@glfw-3.3.6",
        "@glfw-3.3.6//:glfw-headers",
    ],
    linkopts = ["-ldl"],
    includes = ["."],
    include_prefix = "imgui",
)
""",
    strip_prefix = "imgui-1.86",
    urls = ["https://github.com/ocornut/imgui/archive/refs/tags/v1.86.tar.gz"],
)

Fund our work

  • Sponsor our community's open source work by donating a feature bounty
@phaedon phaedon added the module wanted Users want a certain module to be available in the BCR, contributions are welcome! label Jan 10, 2024
@phaedon phaedon changed the title wanted: [ocornut/imgui] wanted: ocornut/imgui Jan 10, 2024
@zaucy
Copy link
Contributor

zaucy commented Apr 11, 2024

I have some BUILD files here https://github.com/zaucy/imgui if someone wants to use it as reference. It only has the dx9, dx10, dx11, dx12, and win32 backends though.

It would be nice of some of the other backends were supported, but ideally we'd have them on the BCR as well (such as SDL #929 or vulkan #1771)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module wanted Users want a certain module to be available in the BCR, contributions are welcome!
Projects
None yet
Development

No branches or pull requests

2 participants