mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-02 22:35:43 +08:00
add fastchart, fastjson and clickhouse extensions
This commit is contained in:
@@ -43,6 +43,19 @@
|
||||
"calendar": {
|
||||
"type": "builtin"
|
||||
},
|
||||
"clickhouse": {
|
||||
"support": {
|
||||
"Windows": "wip",
|
||||
"BSD": "wip"
|
||||
},
|
||||
"type": "external",
|
||||
"source": "ext-clickhouse",
|
||||
"arg-type": "custom",
|
||||
"cpp-extension": true,
|
||||
"lib-suggests": [
|
||||
"openssl"
|
||||
]
|
||||
},
|
||||
"com_dotnet": {
|
||||
"support": {
|
||||
"BSD": "no",
|
||||
@@ -160,6 +173,30 @@
|
||||
"exif": {
|
||||
"type": "builtin"
|
||||
},
|
||||
"fastchart": {
|
||||
"support": {
|
||||
"Windows": "wip",
|
||||
"BSD": "wip"
|
||||
},
|
||||
"type": "external",
|
||||
"source": "ext-fastchart",
|
||||
"lib-depends": [
|
||||
"freetype"
|
||||
],
|
||||
"lib-suggests": [
|
||||
"libpng",
|
||||
"libjpeg",
|
||||
"libwebp"
|
||||
]
|
||||
},
|
||||
"fastjson": {
|
||||
"support": {
|
||||
"Windows": "wip",
|
||||
"BSD": "wip"
|
||||
},
|
||||
"type": "external",
|
||||
"source": "ext-fastjson"
|
||||
},
|
||||
"ffi": {
|
||||
"support": {
|
||||
"Linux": "partial",
|
||||
|
||||
@@ -133,6 +133,16 @@
|
||||
"path": "LICENSE"
|
||||
}
|
||||
},
|
||||
"ext-clickhouse": {
|
||||
"type": "ghtagtar",
|
||||
"repo": "iliaal/php_clickhouse",
|
||||
"match": "tarball/refs/tags/\\d",
|
||||
"path": "php-src/ext/clickhouse",
|
||||
"license": {
|
||||
"type": "file",
|
||||
"path": "LICENSE"
|
||||
}
|
||||
},
|
||||
"ext-ds": {
|
||||
"type": "url",
|
||||
"url": "https://pecl.php.net/get/ds",
|
||||
@@ -162,6 +172,24 @@
|
||||
"path": "LICENSE"
|
||||
}
|
||||
},
|
||||
"ext-fastchart": {
|
||||
"type": "ghtagtar",
|
||||
"repo": "iliaal/fastchart",
|
||||
"path": "php-src/ext/fastchart",
|
||||
"license": {
|
||||
"type": "file",
|
||||
"path": "LICENSE"
|
||||
}
|
||||
},
|
||||
"ext-fastjson": {
|
||||
"type": "ghtagtar",
|
||||
"repo": "iliaal/fastjson",
|
||||
"path": "php-src/ext/fastjson",
|
||||
"license": {
|
||||
"type": "file",
|
||||
"path": "LICENSE"
|
||||
}
|
||||
},
|
||||
"ext-glfw": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/mario-deluna/php-glfw",
|
||||
|
||||
21
src/SPC/builder/extension/clickhouse.php
Normal file
21
src/SPC/builder/extension/clickhouse.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace SPC\builder\extension;
|
||||
|
||||
use SPC\builder\Extension;
|
||||
use SPC\util\CustomExt;
|
||||
|
||||
#[CustomExt('clickhouse')]
|
||||
class clickhouse extends Extension
|
||||
{
|
||||
public function getUnixConfigureArg(bool $shared = false): string
|
||||
{
|
||||
$arg = '--enable-clickhouse' . ($shared ? '=shared' : '');
|
||||
if ($this->builder->getLib('openssl')) {
|
||||
$arg .= ' --enable-clickhouse-openssl';
|
||||
}
|
||||
return $arg;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user