mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 21:04:52 +08:00
22 lines
502 B
PHP
22 lines
502 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
declare(strict_types=1);
|
||
|
|
|
||
|
|
namespace SPC\builder\extension;
|
||
|
|
|
||
|
|
use SPC\builder\Extension;
|
||
|
|
use SPC\util\CustomExt;
|
||
|
|
|
||
|
|
#[CustomExt('mbstring')]
|
||
|
|
class mbstring extends Extension
|
||
|
|
{
|
||
|
|
public function getUnixConfigureArg(): string
|
||
|
|
{
|
||
|
|
$arg = '--enable-mbstring';
|
||
|
|
if ($this->builder->getExt('mbregex') === null) {
|
||
|
|
$arg .= ' --disable-mbregex';
|
||
|
|
}
|
||
|
|
return $arg . ' ONIG_CFLAGS=-I"' . BUILD_ROOT_PATH . '" ONIG_LIBS="' . $this->getLibFilesString() . '"';
|
||
|
|
}
|
||
|
|
}
|