Add full gd support on Windows (#484)

* Add full gd support (libjpeg, libpng, libwebp, libavif, freetype), and related patches

* cs fix

* Fix PHP 8.0 gd build
This commit is contained in:
Jerry Ma
2024-06-26 20:35:11 +08:00
committed by GitHub
parent 0b8a0504a2
commit 2a03c32bc0
12 changed files with 2050 additions and 1634 deletions

View File

@@ -19,14 +19,14 @@ $upx = true;
// If you want to test your added extensions and libs, add below (comma separated, example `bcmath,openssl`).
$extensions = match (PHP_OS_FAMILY) {
'Linux', 'Darwin' => 'imagick,gmp',
'Windows' => 'mbstring,pdo_sqlite,mbregex',
'Linux', 'Darwin' => 'sockets',
'Windows' => 'mbstring,pdo_sqlite,mbregex,gd',
};
// If you want to test lib-suggests feature with extension, add them below (comma separated, example `libwebp,libavif`).
$with_libs = match (PHP_OS_FAMILY) {
'Linux', 'Darwin' => 'libtiff',
'Windows' => '',
'Linux', 'Darwin' => '',
'Windows' => 'libjpeg,libwebp,libavif,freetype',
};
// Please change your test base combination. We recommend testing with `common`.