Skip to content

Commit

Permalink
Revert "dub: link imgui in libsokol (shared)"
Browse files Browse the repository at this point in the history
This reverts commit 20c628a.
  • Loading branch information
kassane committed Feb 11, 2025
1 parent 20c628a commit fff619c
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)
lib_sokol.linkLibrary(lib_imgui.?);
b.installArtifact(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"
libs "sokol" "imgui"
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"
libs "sokol" "imgui"
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 fff619c

Please sign in to comment.