dub.sdl 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. preBuildCommands "mkdir -p bin && git describe --tags > bin/githash.txt"
  9. stringImportPaths "bin"
  10. # OSX before POSIX because, while OSX is POSIX, we don't want to use GraphicsMagick
  11. # there. OSX will be the default for macOS while Q16 the default for other POSIX.
  12. configuration "macOS" {
  13. platforms "osx"
  14. dflags "-L-framework" "-LFoundation" \
  15. "-L-framework" "-LImageIO" platform="dmd"
  16. }
  17. # Q16 default as that's what I use. Feel free to change
  18. # this to suit yourself, just don't commit it.
  19. configuration "Q16" {
  20. platforms "posix"
  21. versions "GMagick_Static"
  22. libs "GraphicsMagick"
  23. subConfiguration "magickd:graphicsmagick_c" "Q16"
  24. dependency "magickd:graphicsmagick_c" \
  25. repository="git+https://repo.or.cz/magickd.git" \
  26. version="dd4985919d78d0cf37ab4b2ab99bb2ecec6aec15"
  27. }
  28. configuration "Q8" {
  29. platforms "posix"
  30. subConfiguration "magickd:graphicsmagick_c" "Q8"
  31. versions "GMagick_Static"
  32. libs "GraphicsMagick"
  33. dependency "magickd:graphicsmagick_c" \
  34. repository="git+https://repo.or.cz/magickd.git" \
  35. version="dd4985919d78d0cf37ab4b2ab99bb2ecec6aec15"
  36. }
  37. configuration "Q32" {
  38. platforms "posix"
  39. subConfiguration "magickd:graphicsmagick_c" "Q32"
  40. versions "GMagick_Static"
  41. libs "GraphicsMagick"
  42. dependency "magickd:graphicsmagick_c" \
  43. repository="git+https://repo.or.cz/magickd.git" \
  44. version="dd4985919d78d0cf37ab4b2ab99bb2ecec6aec15"
  45. }
  46. # NOTE: Building with gamut doesn't support GIFs (Ugoira)
  47. # SEE: https://codeberg.org/supercell/pixiv_down/issues/25
  48. configuration "gamut" {
  49. versions "PD_USE_GAMUT"
  50. dependency "gamut" version="~>2.5.0"
  51. excludedSourceFiles "source/gif_writer/posix.d" \
  52. "source/gif_writer/gif_writer/osx.d" \
  53. "source/gif_writer/common.d" \
  54. "source/gif_writer/package.d" \
  55. "source/image_reader/osx.d" \
  56. "source/image_reader/posix.d" \
  57. "source/image_reader/package.d"
  58. }