dub.sdl 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. name "pixiv_down"
  2. description "A CLI tool to download from pixiv.net"
  3. authors "mio <stigma@disroot.org>"
  4. copyright "Copyright (C) 2023-2024, mio"
  5. homepage "https://yume-neru.neocities.org/p/pixiv_down.html"
  6. license "GPL-3.0-only"
  7. targetType "executable"
  8. targetPath "source"
  9. preBuildCommands "$DUB --single update_git_version.d -- source/pd_version.d.in source/pd_version.d"
  10. configuration "macOS" {
  11. platforms "osx"
  12. dflags "-L-framework" "-LFoundation" \
  13. "-L-framework" "-LImageIO" platform="dmd"
  14. }
  15. configuration "magick" {
  16. platforms "posix"
  17. versions "PD_USE_MAGICK"
  18. }
  19. // Compatibility names for when we were statically linking with GraphicsMagick
  20. configuration "Q16" {
  21. platforms "posix"
  22. versions "PD_USE_MAGICK"
  23. }
  24. configuration "Q8" {
  25. platforms "posix"
  26. versions "PD_USE_MAGICK"
  27. }
  28. configuration "Q32" {
  29. platforms "posix"
  30. versions "PD_USE_MAGICK"
  31. }
  32. # NOTE: Building with gamut doesn't support GIFs (Ugoira)
  33. # SEE: https://codeberg.org/supercell/pixiv_down/issues/25
  34. configuration "gamut" {
  35. versions "PD_USE_GAMUT"
  36. dependency "gamut" version="~>2.5.0"
  37. excludedSourceFiles "source/gif_writer/posix.d" \
  38. "source/gif_writer/gif_writer/osx.d" \
  39. "source/gif_writer/common.d" \
  40. "source/gif_writer/package.d" \
  41. "source/image_reader/osx.d" \
  42. "source/image_reader/posix.d" \
  43. "source/image_reader/package.d"
  44. }