Skip to content

Commit

Permalink
dub: Add shared configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
dd86k committed May 7, 2024
1 parent 54481aa commit b5d4cdf
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions dub.sdl
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ license "BSD-3-Clause-Clear"
# But since configurations do, they are defined here, this is important
# because on the reliance on betterC.

#TODO: Make docs/ddox builds only peek in src/
# Works with -c library
# NOTE: Documentation (docs/ddox) builds
# Works best with the "library" configuration (-c|--configuration)

#
# ANCHOR Configurations
Expand Down Expand Up @@ -74,6 +74,14 @@ configuration "library" {
sourcePaths "src"
}

# Dynamic/Shared library
# NOTE: Does not work on Windows, yet
configuration "shared" {
targetType "dynamicLibrary"
libs "ucrt" "kernel32" platform="windows"
sourcePaths "src"
}

#
# ANCHOR Build types
#
Expand Down

0 comments on commit b5d4cdf

Please sign in to comment.