Skip to content

How to use 2 backends in compilation #85

@Freziyt223

Description

@Freziyt223

Hello, i'm making my game engine and i have a problem i would like to compile imgui with opengl and imgui with vulkan into 2 shared libraries but here comes the problem, zig says that i can only have one build.Module for a file but when i make 2 build.Dependency(to have 2 backends) it says that zig only allows one module per file, so i thought i could just try to import backend.zig file into a program so i'm here to ask will this approach work or do i need to continue thinking about new approaches?

I'm using zig 0.15.2, imporing latest zgui from github with ZON.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions