mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 21:04:52 +08:00
21 lines
526 B
PHP
21 lines
526 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
declare(strict_types=1);
|
||
|
|
|
||
|
|
namespace SPC\builder\macos\library;
|
||
|
|
|
||
|
|
class icu extends MacOSLibraryBase
|
||
|
|
{
|
||
|
|
public const NAME = 'icu';
|
||
|
|
|
||
|
|
protected function build()
|
||
|
|
{
|
||
|
|
$root = BUILD_ROOT_PATH;
|
||
|
|
shell()->cd($this->source_dir . '/source')
|
||
|
|
->exec("{$this->builder->configure_env} ./runConfigureICU MacOSX --enable-static --disable-shared --prefix={$root}")
|
||
|
|
->exec('make clean')
|
||
|
|
->exec("make -j{$this->builder->concurrency}")
|
||
|
|
->exec('make install');
|
||
|
|
}
|
||
|
|
}
|