mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-03 23:05:41 +08:00
21 lines
503 B
PHP
21 lines
503 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Package\Extension;
|
|
|
|
use StaticPHP\Attribute\Package\CustomPhpConfigureArg;
|
|
use StaticPHP\Attribute\Package\Extension;
|
|
use StaticPHP\Package\PhpExtensionPackage;
|
|
|
|
#[Extension('zip')]
|
|
class zip extends PhpExtensionPackage
|
|
{
|
|
#[CustomPhpConfigureArg('Darwin')]
|
|
#[CustomPhpConfigureArg('Linux')]
|
|
public function getUnixConfigureArg(bool $shared): string
|
|
{
|
|
return !$shared ? ('--with-zip=' . BUILD_ROOT_PATH) : '--enable-zip=shared';
|
|
}
|
|
}
|