add xlswriter support

This commit is contained in:
crazywhalecc 2023-06-02 21:40:17 +08:00
parent dcb3d91610
commit aa9ec6e50e
No known key found for this signature in database
GPG Key ID: 1F4BDD59391F2680
3 changed files with 36 additions and 0 deletions

View File

@ -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",

View File

@ -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/",

View 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';
}
}