Skip to content

Commit

Permalink
dub: droptest example added
Browse files Browse the repository at this point in the history
  • Loading branch information
kassane committed Jun 2, 2024
1 parent c486018 commit 3c4371a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
dub build :mrt
dub build :user_data
dub build :imgui
dub build :droptest
- name: (Zig) Running Test
if: runner.os != 'Windows'
Expand Down
11 changes: 11 additions & 0 deletions dub.sdl
Original file line number Diff line number Diff line change
Expand Up @@ -189,3 +189,14 @@ subPackage {
excludedSourceFiles "src/examples/sgl_context.d" "src/examples/clear.d" "src/examples/saudio.d" "src/examples/debugtext.d" "src/examples/triangle.d" "src/examples/sgl_points.d" "src/examples/cube.d" "src/examples/mrt.d" "src/examples/blend.d" "src/examples/user_data.d" "src/examples/droptest.d" "src/shaders/*.d"
preBuildCommands "zig build -Dshared -Doptimize=ReleaseFast -Dimgui -Dartifact"
}
subPackage {
name "droptest"
targetType "executable"
targetPath "build"
sourceFiles "src/examples/droptest.d"
libs "sokol"
lflags "-Lzig-out/lib" platform="posix"
lflags "/LIBPATH:zig-out/lib" platform="windows"
excludedSourceFiles "src/examples/sgl_context.d" "src/examples/clear.d" "src/examples/saudio.d" "src/examples/debugtext.d" "src/examples/triangle.d" "src/examples/sgl_points.d" "src/examples/cube.d" "src/examples/mrt.d" "src/examples/blend.d" "src/examples/user_data.d" "src/examples/imgui.d" "src/shaders/*.d"
preBuildCommands "zig build -Dshared -Doptimize=ReleaseFast -Dimgui -Dartifact"
}

0 comments on commit 3c4371a

Please sign in to comment.