1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- name "pixiv_down"
- description "A CLI tool to download from pixiv.net"
- authors "mio <stigma@disroot.org>"
- copyright "Copyright (C) 2023-2024, mio"
- homepage "https://yume-neru.neocities.org/p/pixiv_down.html"
- license "GPL-3.0-only"
- targetType "executable"
- preBuildCommands `test -d source/res || mkdir source/res
- if [ -x $$(which git) -a -d .git ]
- then
- git describe --tags > source/res/VERSION
- else
- pr -t VERSION > source/res/VERSION
- fi`
- stringImportPaths "source/res"
- # OSX before POSIX because, while OSX is POSIX, we don't want to use GraphicsMagick
- # there. OSX will be the default for macOS while Q16 the default for other POSIX.
- configuration "macOS" {
- platforms "osx"
-
- dflags "-L-framework" "-LFoundation" \
- "-L-framework" "-LImageIO" platform="dmd"
- }
- configuration "magick" {
- platforms "posix"
- versions "PD_USE_MAGICK"
- }
- // Compatibility names for when we were statically linking with GraphicsMagick
- configuration "Q16" {
- platforms "posix"
- versions "PD_USE_MAGICK"
- }
- configuration "Q8" {
- platforms "posix"
- versions "PD_USE_MAGICK"
- }
- configuration "Q32" {
- platforms "posix"
- versions "PD_USE_MAGICK"
- }
- # NOTE: Building with gamut doesn't support GIFs (Ugoira)
- # SEE: https://codeberg.org/supercell/pixiv_down/issues/25
- configuration "gamut" {
- versions "PD_USE_GAMUT"
- dependency "gamut" version="~>2.5.0"
- excludedSourceFiles "source/gif_writer/posix.d" \
- "source/gif_writer/gif_writer/osx.d" \
- "source/gif_writer/common.d" \
- "source/gif_writer/package.d" \
- "source/image_reader/osx.d" \
- "source/image_reader/posix.d" \
- "source/image_reader/package.d"
- }
|