mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-09 01:45:36 +08:00
add fastchart, fastjson and clickhouse extensions
This commit is contained in:
@@ -43,6 +43,19 @@
|
|||||||
"calendar": {
|
"calendar": {
|
||||||
"type": "builtin"
|
"type": "builtin"
|
||||||
},
|
},
|
||||||
|
"clickhouse": {
|
||||||
|
"support": {
|
||||||
|
"Windows": "wip",
|
||||||
|
"BSD": "wip"
|
||||||
|
},
|
||||||
|
"type": "external",
|
||||||
|
"source": "ext-clickhouse",
|
||||||
|
"arg-type": "custom",
|
||||||
|
"cpp-extension": true,
|
||||||
|
"lib-suggests": [
|
||||||
|
"openssl"
|
||||||
|
]
|
||||||
|
},
|
||||||
"com_dotnet": {
|
"com_dotnet": {
|
||||||
"support": {
|
"support": {
|
||||||
"BSD": "no",
|
"BSD": "no",
|
||||||
@@ -160,6 +173,30 @@
|
|||||||
"exif": {
|
"exif": {
|
||||||
"type": "builtin"
|
"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": {
|
"ffi": {
|
||||||
"support": {
|
"support": {
|
||||||
"Linux": "partial",
|
"Linux": "partial",
|
||||||
|
|||||||
@@ -133,6 +133,16 @@
|
|||||||
"path": "LICENSE"
|
"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": {
|
"ext-ds": {
|
||||||
"type": "url",
|
"type": "url",
|
||||||
"url": "https://pecl.php.net/get/ds",
|
"url": "https://pecl.php.net/get/ds",
|
||||||
@@ -162,6 +172,24 @@
|
|||||||
"path": "LICENSE"
|
"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": {
|
"ext-glfw": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/mario-deluna/php-glfw",
|
"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