mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-17 20:34:51 +08:00
add xlswriter support
This commit is contained in:
parent
dcb3d91610
commit
aa9ec6e50e
@ -367,6 +367,15 @@
|
|||||||
"tokenizer": {
|
"tokenizer": {
|
||||||
"type": "builtin"
|
"type": "builtin"
|
||||||
},
|
},
|
||||||
|
"xlswriter": {
|
||||||
|
"type": "external",
|
||||||
|
"source": "xlswriter",
|
||||||
|
"arg-type": "custom",
|
||||||
|
"ext-depends": [
|
||||||
|
"zlib",
|
||||||
|
"zip"
|
||||||
|
]
|
||||||
|
},
|
||||||
"xml": {
|
"xml": {
|
||||||
"type": "builtin",
|
"type": "builtin",
|
||||||
"arg-type": "custom",
|
"arg-type": "custom",
|
||||||
|
|||||||
@ -391,6 +391,16 @@
|
|||||||
"path": "LICENSE"
|
"path": "LICENSE"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"xlswriter": {
|
||||||
|
"type": "url",
|
||||||
|
"url": "http://pecl.php.net/get/xlswriter",
|
||||||
|
"path": "php-src/ext/xlswriter",
|
||||||
|
"filename": "xlswriter.tgz",
|
||||||
|
"license": {
|
||||||
|
"type": "file",
|
||||||
|
"path": "LICENSE"
|
||||||
|
}
|
||||||
|
},
|
||||||
"xz": {
|
"xz": {
|
||||||
"type": "filelist",
|
"type": "filelist",
|
||||||
"url": "https://tukaani.org/xz/",
|
"url": "https://tukaani.org/xz/",
|
||||||
|
|||||||
17
src/SPC/builder/extension/xlswriter.php
Normal file
17
src/SPC/builder/extension/xlswriter.php
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace SPC\builder\extension;
|
||||||
|
|
||||||
|
use SPC\builder\Extension;
|
||||||
|
use SPC\util\CustomExt;
|
||||||
|
|
||||||
|
#[CustomExt('xlswriter')]
|
||||||
|
class xlswriter extends Extension
|
||||||
|
{
|
||||||
|
public function getUnixConfigureArg(): string
|
||||||
|
{
|
||||||
|
return '--with-xlswriter --enable-reader';
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user