mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-16 21:35:36 +08:00
Compare commits
26 Commits
ecea6c12cd
...
2.7.9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d55278714f | ||
|
|
cb7eca9049 | ||
|
|
5b8c9e6f09 | ||
|
|
5d1043334d | ||
|
|
f24cbcf909 | ||
|
|
76a07c32ba | ||
|
|
e0c69086dc | ||
|
|
5606b70c1c | ||
|
|
28ae4242a6 | ||
|
|
f14df1925c | ||
|
|
e9ad3c0011 | ||
|
|
e2ad31e858 | ||
|
|
af614cd7ce | ||
|
|
e21b0ec89d | ||
|
|
3069b51c09 | ||
|
|
1662ac4cf8 | ||
|
|
1e09017549 | ||
|
|
84e9f13688 | ||
|
|
2b0a0bdad9 | ||
|
|
e8d1970f55 | ||
|
|
6861e9c2c7 | ||
|
|
376b8e7569 | ||
|
|
875e1d05cd | ||
|
|
9382161b6f | ||
|
|
a1b8d201ae | ||
|
|
1fed8f2802 |
@@ -358,6 +358,18 @@
|
|||||||
"liblz4"
|
"liblz4"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"maxminddb": {
|
||||||
|
"support": {
|
||||||
|
"BSD": "wip",
|
||||||
|
"Windows": "wip"
|
||||||
|
},
|
||||||
|
"type": "external",
|
||||||
|
"source": "ext-maxminddb",
|
||||||
|
"arg-type": "with",
|
||||||
|
"lib-depends": [
|
||||||
|
"libmaxminddb"
|
||||||
|
]
|
||||||
|
},
|
||||||
"mbregex": {
|
"mbregex": {
|
||||||
"type": "builtin",
|
"type": "builtin",
|
||||||
"arg-type": "custom",
|
"arg-type": "custom",
|
||||||
|
|||||||
@@ -96,20 +96,7 @@
|
|||||||
"libssh2",
|
"libssh2",
|
||||||
"nghttp2"
|
"nghttp2"
|
||||||
],
|
],
|
||||||
"lib-suggests-linux": [
|
"lib-suggests-unix": [
|
||||||
"libssh2",
|
|
||||||
"brotli",
|
|
||||||
"nghttp2",
|
|
||||||
"nghttp3",
|
|
||||||
"ngtcp2",
|
|
||||||
"zstd",
|
|
||||||
"libcares",
|
|
||||||
"ldap",
|
|
||||||
"krb5",
|
|
||||||
"idn2",
|
|
||||||
"psl"
|
|
||||||
],
|
|
||||||
"lib-suggests-macos": [
|
|
||||||
"libssh2",
|
"libssh2",
|
||||||
"brotli",
|
"brotli",
|
||||||
"nghttp2",
|
"nghttp2",
|
||||||
@@ -119,7 +106,7 @@
|
|||||||
"libcares",
|
"libcares",
|
||||||
"ldap",
|
"ldap",
|
||||||
"idn2",
|
"idn2",
|
||||||
"psl"
|
"krb5"
|
||||||
],
|
],
|
||||||
"lib-suggests-windows": [
|
"lib-suggests-windows": [
|
||||||
"brotli",
|
"brotli",
|
||||||
@@ -259,8 +246,8 @@
|
|||||||
],
|
],
|
||||||
"lib-suggests-unix": [
|
"lib-suggests-unix": [
|
||||||
"libiconv",
|
"libiconv",
|
||||||
"libunistring",
|
"gettext",
|
||||||
"gettext"
|
"libunistring"
|
||||||
],
|
],
|
||||||
"lib-depends-macos": [
|
"lib-depends-macos": [
|
||||||
"libiconv",
|
"libiconv",
|
||||||
@@ -329,6 +316,9 @@
|
|||||||
"lib-suggests": [
|
"lib-suggests": [
|
||||||
"ldap",
|
"ldap",
|
||||||
"libedit"
|
"libedit"
|
||||||
|
],
|
||||||
|
"frameworks": [
|
||||||
|
"Kerberos"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"ldap": {
|
"ldap": {
|
||||||
@@ -516,6 +506,16 @@
|
|||||||
"liblz4.a"
|
"liblz4.a"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"libmaxminddb": {
|
||||||
|
"source": "libmaxminddb",
|
||||||
|
"static-libs-unix": [
|
||||||
|
"libmaxminddb.a"
|
||||||
|
],
|
||||||
|
"headers": [
|
||||||
|
"maxminddb.h",
|
||||||
|
"maxminddb_config.h"
|
||||||
|
]
|
||||||
|
},
|
||||||
"libmemcached": {
|
"libmemcached": {
|
||||||
"source": "libmemcached",
|
"source": "libmemcached",
|
||||||
"cpp-library": true,
|
"cpp-library": true,
|
||||||
@@ -624,7 +624,7 @@
|
|||||||
"libunistring.a"
|
"libunistring.a"
|
||||||
],
|
],
|
||||||
"headers": [
|
"headers": [
|
||||||
"unistring.h",
|
"unistr.h",
|
||||||
"unistring/"
|
"unistring/"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -892,18 +892,6 @@
|
|||||||
"libpgcommon.lib"
|
"libpgcommon.lib"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"psl": {
|
|
||||||
"source": "libpsl",
|
|
||||||
"pkg-configs": [
|
|
||||||
"libpsl"
|
|
||||||
],
|
|
||||||
"headers": [
|
|
||||||
"libpsl.h"
|
|
||||||
],
|
|
||||||
"lib-depends": [
|
|
||||||
"idn2"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"pthreads4w": {
|
"pthreads4w": {
|
||||||
"source": "pthreads4w",
|
"source": "pthreads4w",
|
||||||
"static-libs-windows": [
|
"static-libs-windows": [
|
||||||
|
|||||||
@@ -184,6 +184,15 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"ext-maxminddb": {
|
||||||
|
"type": "url",
|
||||||
|
"url": "https://pecl.php.net/get/maxminddb",
|
||||||
|
"filename": "ext-maxminddb.tgz",
|
||||||
|
"license": {
|
||||||
|
"type": "file",
|
||||||
|
"path": "LICENSE"
|
||||||
|
}
|
||||||
|
},
|
||||||
"ext-memcache": {
|
"ext-memcache": {
|
||||||
"type": "url",
|
"type": "url",
|
||||||
"url": "https://pecl.php.net/get/memcache",
|
"url": "https://pecl.php.net/get/memcache",
|
||||||
@@ -641,6 +650,16 @@
|
|||||||
"path": "LICENSE"
|
"path": "LICENSE"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"libmaxminddb": {
|
||||||
|
"type": "ghrel",
|
||||||
|
"repo": "maxmind/libmaxminddb",
|
||||||
|
"match": "libmaxminddb-.+\\.tar\\.gz",
|
||||||
|
"prefer-stable": true,
|
||||||
|
"license": {
|
||||||
|
"type": "file",
|
||||||
|
"path": "LICENSE"
|
||||||
|
}
|
||||||
|
},
|
||||||
"libmemcached": {
|
"libmemcached": {
|
||||||
"type": "ghtagtar",
|
"type": "ghtagtar",
|
||||||
"repo": "awesomized/libmemcached",
|
"repo": "awesomized/libmemcached",
|
||||||
@@ -660,16 +679,6 @@
|
|||||||
"path": "LICENSE"
|
"path": "LICENSE"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"libpsl": {
|
|
||||||
"type": "ghrel",
|
|
||||||
"repo": "rockdaboot/libpsl",
|
|
||||||
"match": "libpsl.+\\.tar\\.gz",
|
|
||||||
"prefer-stable": true,
|
|
||||||
"license": {
|
|
||||||
"type": "file",
|
|
||||||
"path": "COPYING"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"librabbitmq": {
|
"librabbitmq": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/alanxz/rabbitmq-c.git",
|
"url": "https://github.com/alanxz/rabbitmq-c.git",
|
||||||
@@ -722,6 +731,7 @@
|
|||||||
"type": "filelist",
|
"type": "filelist",
|
||||||
"url": "https://ftp.gnu.org/gnu/libunistring/",
|
"url": "https://ftp.gnu.org/gnu/libunistring/",
|
||||||
"regex": "/href=\"(?<file>libunistring-(?<version>[^\"]+)\\.tar\\.gz)\"/",
|
"regex": "/href=\"(?<file>libunistring-(?<version>[^\"]+)\\.tar\\.gz)\"/",
|
||||||
|
"provide-pre-built": true,
|
||||||
"license": {
|
"license": {
|
||||||
"type": "file",
|
"type": "file",
|
||||||
"path": "COPYING.LIB"
|
"path": "COPYING.LIB"
|
||||||
@@ -740,6 +750,7 @@
|
|||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/static-php/libuuid.git",
|
"url": "https://github.com/static-php/libuuid.git",
|
||||||
"rev": "master",
|
"rev": "master",
|
||||||
|
"provide-pre-built": true,
|
||||||
"license": {
|
"license": {
|
||||||
"type": "file",
|
"type": "file",
|
||||||
"path": "COPYING"
|
"path": "COPYING"
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ use Symfony\Component\Console\Application;
|
|||||||
*/
|
*/
|
||||||
final class ConsoleApplication extends Application
|
final class ConsoleApplication extends Application
|
||||||
{
|
{
|
||||||
public const string VERSION = '2.7.7';
|
public const string VERSION = '2.7.9';
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
|
|||||||
25
src/SPC/builder/extension/maxminddb.php
Normal file
25
src/SPC/builder/extension/maxminddb.php
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace SPC\builder\extension;
|
||||||
|
|
||||||
|
use SPC\builder\Extension;
|
||||||
|
use SPC\store\FileSystem;
|
||||||
|
use SPC\util\CustomExt;
|
||||||
|
|
||||||
|
#[CustomExt('maxminddb')]
|
||||||
|
class maxminddb extends Extension
|
||||||
|
{
|
||||||
|
public function patchBeforeBuildconf(): bool
|
||||||
|
{
|
||||||
|
if (!is_dir(SOURCE_PATH . '/php-src/ext/maxminddb')) {
|
||||||
|
$original = $this->source_dir;
|
||||||
|
FileSystem::copyDir($original . '/ext', SOURCE_PATH . '/php-src/ext/maxminddb');
|
||||||
|
$this->source_dir = SOURCE_PATH . '/php-src/ext/maxminddb';
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
$this->source_dir = SOURCE_PATH . '/php-src/ext/maxminddb';
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
19
src/SPC/builder/extension/trader.php
Normal file
19
src/SPC/builder/extension/trader.php
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace SPC\builder\extension;
|
||||||
|
|
||||||
|
use SPC\builder\Extension;
|
||||||
|
use SPC\store\FileSystem;
|
||||||
|
use SPC\util\CustomExt;
|
||||||
|
|
||||||
|
#[CustomExt('trader')]
|
||||||
|
class trader extends Extension
|
||||||
|
{
|
||||||
|
public function patchBeforeBuildconf(): bool
|
||||||
|
{
|
||||||
|
FileSystem::replaceFileStr(SOURCE_PATH . '/php-src/ext/trader/config.m4', 'PHP_TA', 'PHP_TRADER');
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
12
src/SPC/builder/linux/library/libmaxminddb.php
Normal file
12
src/SPC/builder/linux/library/libmaxminddb.php
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace SPC\builder\linux\library;
|
||||||
|
|
||||||
|
class libmaxminddb extends LinuxLibraryBase
|
||||||
|
{
|
||||||
|
use \SPC\builder\unix\library\libmaxminddb;
|
||||||
|
|
||||||
|
public const NAME = 'libmaxminddb';
|
||||||
|
}
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
namespace SPC\builder\linux\library;
|
|
||||||
|
|
||||||
class psl extends LinuxLibraryBase
|
|
||||||
{
|
|
||||||
use \SPC\builder\unix\library\psl;
|
|
||||||
|
|
||||||
public const NAME = 'psl';
|
|
||||||
}
|
|
||||||
12
src/SPC/builder/macos/library/krb5.php
Normal file
12
src/SPC/builder/macos/library/krb5.php
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace SPC\builder\macos\library;
|
||||||
|
|
||||||
|
class krb5 extends MacOSLibraryBase
|
||||||
|
{
|
||||||
|
use \SPC\builder\unix\library\krb5;
|
||||||
|
|
||||||
|
public const NAME = 'krb5';
|
||||||
|
}
|
||||||
12
src/SPC/builder/macos/library/libmaxminddb.php
Normal file
12
src/SPC/builder/macos/library/libmaxminddb.php
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace SPC\builder\macos\library;
|
||||||
|
|
||||||
|
class libmaxminddb extends MacOSLibraryBase
|
||||||
|
{
|
||||||
|
use \SPC\builder\unix\library\libmaxminddb;
|
||||||
|
|
||||||
|
public const NAME = 'libmaxminddb';
|
||||||
|
}
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
namespace SPC\builder\macos\library;
|
|
||||||
|
|
||||||
class psl extends MacOSLibraryBase
|
|
||||||
{
|
|
||||||
use \SPC\builder\unix\library\psl;
|
|
||||||
|
|
||||||
public const NAME = 'psl';
|
|
||||||
}
|
|
||||||
@@ -5,23 +5,42 @@ declare(strict_types=1);
|
|||||||
namespace SPC\builder\unix\library;
|
namespace SPC\builder\unix\library;
|
||||||
|
|
||||||
use SPC\util\executor\UnixAutoconfExecutor;
|
use SPC\util\executor\UnixAutoconfExecutor;
|
||||||
|
use SPC\util\SPCConfigUtil;
|
||||||
|
|
||||||
trait krb5
|
trait krb5
|
||||||
{
|
{
|
||||||
protected function build(): void
|
protected function build(): void
|
||||||
{
|
{
|
||||||
|
$origin_source_dir = $this->source_dir;
|
||||||
$this->source_dir .= '/src';
|
$this->source_dir .= '/src';
|
||||||
shell()->cd($this->source_dir)->exec('autoreconf -if');
|
shell()->cd($this->source_dir)->exec('autoreconf -if');
|
||||||
|
$libs = array_map(fn ($x) => $x->getName(), $this->getDependencies(true));
|
||||||
|
$spc = new SPCConfigUtil($this->builder, ['no_php' => true, 'libs_only_deps' => true]);
|
||||||
|
$config = $spc->config(libraries: $libs, include_suggest_lib: $this->builder->getOption('with-suggested-libs', false));
|
||||||
|
$extraEnv = [
|
||||||
|
'CFLAGS' => '-fcommon',
|
||||||
|
'LIBS' => $config['libs'],
|
||||||
|
];
|
||||||
|
if (getenv('SPC_LD_LIBRARY_PATH') && getenv('SPC_LIBRARY_PATH')) {
|
||||||
|
$extraEnv = [...$extraEnv, ...[
|
||||||
|
'LD_LIBRARY_PATH' => getenv('SPC_LD_LIBRARY_PATH'),
|
||||||
|
'LIBRARY_PATH' => getenv('SPC_LIBRARY_PATH'),
|
||||||
|
]];
|
||||||
|
}
|
||||||
|
$args = [
|
||||||
|
'--disable-nls',
|
||||||
|
'--disable-rpath',
|
||||||
|
'--without-system-verto',
|
||||||
|
];
|
||||||
|
if (PHP_OS_FAMILY === 'Darwin') {
|
||||||
|
$extraEnv['LDFLAGS'] = '-framework Kerberos';
|
||||||
|
$args[] = 'ac_cv_func_secure_getenv=no';
|
||||||
|
}
|
||||||
UnixAutoconfExecutor::create($this)
|
UnixAutoconfExecutor::create($this)
|
||||||
->appendEnv([
|
->appendEnv($extraEnv)
|
||||||
'LDFLAGS' => '-Wl,--allow-multiple-definition',
|
|
||||||
])
|
|
||||||
->optionalLib('ldap', '--with-ldap', '--without-ldap')
|
->optionalLib('ldap', '--with-ldap', '--without-ldap')
|
||||||
->optionalLib('libedit', '--with-readline', '--without-readline')
|
->optionalLib('libedit', '--with-libedit', '--without-libedit')
|
||||||
->configure(
|
->configure(...$args)
|
||||||
'--disable-nls',
|
|
||||||
'--disable-rpath',
|
|
||||||
)
|
|
||||||
->make();
|
->make();
|
||||||
$this->patchPkgconfPrefix([
|
$this->patchPkgconfPrefix([
|
||||||
'krb5-gssapi.pc',
|
'krb5-gssapi.pc',
|
||||||
@@ -33,5 +52,6 @@ trait krb5
|
|||||||
'mit-krb5.pc',
|
'mit-krb5.pc',
|
||||||
'gssrpc.pc',
|
'gssrpc.pc',
|
||||||
]);
|
]);
|
||||||
|
$this->source_dir = $origin_source_dir;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
20
src/SPC/builder/unix/library/libmaxminddb.php
Normal file
20
src/SPC/builder/unix/library/libmaxminddb.php
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace SPC\builder\unix\library;
|
||||||
|
|
||||||
|
use SPC\util\executor\UnixCMakeExecutor;
|
||||||
|
|
||||||
|
trait libmaxminddb
|
||||||
|
{
|
||||||
|
protected function build(): void
|
||||||
|
{
|
||||||
|
UnixCMakeExecutor::create($this)
|
||||||
|
->addConfigureArgs(
|
||||||
|
'-DBUILD_TESTING=OFF',
|
||||||
|
'-DMAXMINDDB_BUILD_BINARIES=OFF',
|
||||||
|
)
|
||||||
|
->build();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
namespace SPC\builder\unix\library;
|
|
||||||
|
|
||||||
use SPC\util\executor\UnixAutoconfExecutor;
|
|
||||||
|
|
||||||
trait psl
|
|
||||||
{
|
|
||||||
protected function build(): void
|
|
||||||
{
|
|
||||||
UnixAutoconfExecutor::create($this)
|
|
||||||
->optionalLib('idn2', ...ac_with_args('libidn2', true))
|
|
||||||
->configure('--disable-nls')
|
|
||||||
->make();
|
|
||||||
$this->patchPkgconfPrefix(['libpsl.pc']);
|
|
||||||
$this->patchLaDependencyPrefix();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -22,7 +22,7 @@ class LinuxMuslCheck
|
|||||||
public static function optionalCheck(): bool
|
public static function optionalCheck(): bool
|
||||||
{
|
{
|
||||||
return getenv('SPC_TOOLCHAIN') === MuslToolchain::class ||
|
return getenv('SPC_TOOLCHAIN') === MuslToolchain::class ||
|
||||||
(getenv('SPC_TOOLCHAIN') === ZigToolchain::class && !SystemUtil::isMuslDist());
|
(getenv('SPC_TOOLCHAIN') === ZigToolchain::class && !SystemUtil::isMuslDist() && !str_contains((string) getenv('SPC_TARGET'), 'gnu'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @noinspection PhpUnused */
|
/** @noinspection PhpUnused */
|
||||||
|
|||||||
@@ -15,9 +15,7 @@ class PhpSource extends CustomSourceBase
|
|||||||
public function fetch(bool $force = false, ?array $config = null, int $lock_as = SPC_DOWNLOAD_SOURCE): void
|
public function fetch(bool $force = false, ?array $config = null, int $lock_as = SPC_DOWNLOAD_SOURCE): void
|
||||||
{
|
{
|
||||||
$major = defined('SPC_BUILD_PHP_VERSION') ? SPC_BUILD_PHP_VERSION : '8.4';
|
$major = defined('SPC_BUILD_PHP_VERSION') ? SPC_BUILD_PHP_VERSION : '8.4';
|
||||||
if ($major === '8.5') {
|
if ($major === 'git') {
|
||||||
Downloader::downloadSource('php-src', ['type' => 'url', 'url' => 'https://downloads.php.net/~daniels/php-8.5.0RC5.tar.xz'], $force);
|
|
||||||
} elseif ($major === 'git') {
|
|
||||||
Downloader::downloadSource('php-src', ['type' => 'git', 'url' => 'https://github.com/php/php-src.git', 'rev' => 'master'], $force);
|
Downloader::downloadSource('php-src', ['type' => 'git', 'url' => 'https://github.com/php/php-src.git', 'rev' => 'master'], $force);
|
||||||
} else {
|
} else {
|
||||||
Downloader::downloadSource('php-src', $this->getLatestPHPInfo($major), $force);
|
Downloader::downloadSource('php-src', $this->getLatestPHPInfo($major), $force);
|
||||||
|
|||||||
@@ -13,11 +13,11 @@ declare(strict_types=1);
|
|||||||
|
|
||||||
// test php version (8.1 ~ 8.4 available, multiple for matrix)
|
// test php version (8.1 ~ 8.4 available, multiple for matrix)
|
||||||
$test_php_version = [
|
$test_php_version = [
|
||||||
// '8.1',
|
'8.1',
|
||||||
// '8.2',
|
'8.2',
|
||||||
// '8.3',
|
'8.3',
|
||||||
'8.4',
|
'8.4',
|
||||||
// '8.5',
|
'8.5',
|
||||||
// 'git',
|
// 'git',
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -35,7 +35,7 @@ $test_os = [
|
|||||||
];
|
];
|
||||||
|
|
||||||
// whether enable thread safe
|
// whether enable thread safe
|
||||||
$zts = true;
|
$zts = false;
|
||||||
|
|
||||||
$no_strip = false;
|
$no_strip = false;
|
||||||
|
|
||||||
@@ -50,7 +50,7 @@ $prefer_pre_built = false;
|
|||||||
|
|
||||||
// If you want to test your added extensions and libs, add below (comma separated, example `bcmath,openssl`).
|
// If you want to test your added extensions and libs, add below (comma separated, example `bcmath,openssl`).
|
||||||
$extensions = match (PHP_OS_FAMILY) {
|
$extensions = match (PHP_OS_FAMILY) {
|
||||||
'Linux', 'Darwin' => 'curl',
|
'Linux', 'Darwin' => 'maxminddb',
|
||||||
'Windows' => 'bcmath',
|
'Windows' => 'bcmath',
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -62,7 +62,7 @@ $shared_extensions = match (PHP_OS_FAMILY) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// If you want to test lib-suggests for all extensions and libraries, set it to true.
|
// If you want to test lib-suggests for all extensions and libraries, set it to true.
|
||||||
$with_suggested_libs = true;
|
$with_suggested_libs = false;
|
||||||
|
|
||||||
// If you want to test extra libs for extensions, add them below (comma separated, example `libwebp,libavif`). Unnecessary, when $with_suggested_libs is true.
|
// If you want to test extra libs for extensions, add them below (comma separated, example `libwebp,libavif`). Unnecessary, when $with_suggested_libs is true.
|
||||||
$with_libs = match (PHP_OS_FAMILY) {
|
$with_libs = match (PHP_OS_FAMILY) {
|
||||||
@@ -74,7 +74,7 @@ $with_libs = match (PHP_OS_FAMILY) {
|
|||||||
// You can use `common`, `bulk`, `minimal` or `none`.
|
// You can use `common`, `bulk`, `minimal` or `none`.
|
||||||
// note: combination is only available for *nix platform. Windows must use `none` combination
|
// note: combination is only available for *nix platform. Windows must use `none` combination
|
||||||
$base_combination = match (PHP_OS_FAMILY) {
|
$base_combination = match (PHP_OS_FAMILY) {
|
||||||
'Linux', 'Darwin' => 'none',
|
'Linux', 'Darwin' => 'minimal',
|
||||||
'Windows' => 'none',
|
'Windows' => 'none',
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user