mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-17 20:34:51 +08:00
libavif needs at least one encoder to work (#1033)
This commit is contained in:
commit
38140d115f
@ -373,6 +373,15 @@
|
|||||||
],
|
],
|
||||||
"static-libs-windows": [
|
"static-libs-windows": [
|
||||||
"avif.lib"
|
"avif.lib"
|
||||||
|
],
|
||||||
|
"lib-depends": [
|
||||||
|
"libaom"
|
||||||
|
],
|
||||||
|
"lib-suggests": [
|
||||||
|
"libwebp",
|
||||||
|
"libjpeg",
|
||||||
|
"libxml2",
|
||||||
|
"libpng"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"libcares": {
|
"libcares": {
|
||||||
|
|||||||
@ -526,7 +526,7 @@
|
|||||||
"libavif": {
|
"libavif": {
|
||||||
"type": "ghtar",
|
"type": "ghtar",
|
||||||
"repo": "AOMediaCodec/libavif",
|
"repo": "AOMediaCodec/libavif",
|
||||||
"provide-pre-built": true,
|
"provide-pre-built": false,
|
||||||
"license": {
|
"license": {
|
||||||
"type": "file",
|
"type": "file",
|
||||||
"path": "LICENSE"
|
"path": "LICENSE"
|
||||||
|
|||||||
@ -11,6 +11,11 @@ trait libavif
|
|||||||
protected function build(): void
|
protected function build(): void
|
||||||
{
|
{
|
||||||
UnixCMakeExecutor::create($this)
|
UnixCMakeExecutor::create($this)
|
||||||
|
->optionalLib('libaom', '-DAVIF_CODEC_AOM=SYSTEM', '-DAVIF_CODEC_AOM=OFF')
|
||||||
|
->optionalLib('libsharpyuv', '-DAVIF_LIBSHARPYUV=SYSTEM', '-DAVIF_LIBSHARPYUV=OFF')
|
||||||
|
->optionalLib('libjpeg', '-DAVIF_JPEG=SYSTEM', '-DAVIF_JPEG=OFF')
|
||||||
|
->optionalLib('libxml2', '-DAVIF_LIBXML2=SYSTEM', '-DAVIF_LIBXML2=OFF')
|
||||||
|
->optionalLib('libpng', '-DAVIF_LIBPNG=SYSTEM', '-DAVIF_LIBPNG=OFF')
|
||||||
->addConfigureArgs('-DAVIF_LIBYUV=OFF')
|
->addConfigureArgs('-DAVIF_LIBYUV=OFF')
|
||||||
->build();
|
->build();
|
||||||
// patch pkgconfig
|
// patch pkgconfig
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user