Skip to content

Commit

Permalink
dub: link imgui in libsokol (shared)
Browse files Browse the repository at this point in the history
  • Loading branch information
kassane committed Feb 11, 2025
1 parent afb2261 commit 20c628a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ pub fn build(b: *Build) !void {
buildShaders(b, target);
if (dub_artifact) {
if (opt_with_sokol_imgui)
b.installArtifact(lib_imgui.?);
lib_sokol.linkLibrary(lib_imgui.?);
b.installArtifact(lib_sokol);
} else {
// build examples
Expand Down
4 changes: 2 additions & 2 deletions dub.sdl
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ subPackage {
targetType "executable"
targetPath "build"
sourceFiles "src/examples/imgui.d"
libs "sokol" "imgui"
libs "sokol"
dflags "-preview=all" "-i=sokol" "-i=shaders" "-i=handmade" "-i=imgui"
lflags "-Lzig-out/lib" platform="posix"
lflags "/LIBPATH:zig-out/lib" platform="windows"
Expand All @@ -344,7 +344,7 @@ subPackage {
targetType "executable"
targetPath "build"
sourceFiles "src/examples/droptest.d"
libs "sokol" "imgui"
libs "sokol"
dflags "-preview=all" "-i=sokol" "-i=shaders" "-i=handmade" "-i=imgui"
lflags "-Lzig-out/lib" platform="posix"
lflags "/LIBPATH:zig-out/lib" platform="windows"
Expand Down

0 comments on commit 20c628a

Please sign in to comment.