mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-19 13:24:51 +08:00
39 lines
1.1 KiB
PHP
39 lines
1.1 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Package\Target;
|
|
|
|
use StaticPHP\Attribute\Package\BuildFor;
|
|
use StaticPHP\Attribute\Package\Target;
|
|
use StaticPHP\Package\LibraryPackage;
|
|
use StaticPHP\Runtime\Executor\UnixCMakeExecutor;
|
|
|
|
#[Target('re2c')]
|
|
class re2c
|
|
{
|
|
#[BuildFor('Darwin')]
|
|
#[BuildFor('Linux')]
|
|
public function buildUnix(LibraryPackage $lib): void
|
|
{
|
|
UnixCMakeExecutor::create($lib)
|
|
->addConfigureArgs(
|
|
'-DRE2C_BUILD_TESTS=OFF',
|
|
'-DRE2C_BUILD_EXAMPLES=OFF',
|
|
'-DRE2C_BUILD_DOCS=OFF',
|
|
'-DRE2C_BUILD_RE2D=OFF',
|
|
'-DRE2C_BUILD_RE2GO=OFF',
|
|
'-DRE2C_BUILD_RE2HS=OFF',
|
|
'-DRE2C_BUILD_RE2JAVA=OFF',
|
|
'-DRE2C_BUILD_RE2JS=OFF',
|
|
'-DRE2C_BUILD_RE2OCAML=OFF',
|
|
'-DRE2C_BUILD_RE2PY=OFF',
|
|
'-DRE2C_BUILD_RE2RUST=OFF',
|
|
'-DRE2C_BUILD_RE2SWIFT=OFF',
|
|
'-DRE2C_BUILD_RE2V=OFF',
|
|
'-DRE2C_BUILD_RE2ZIG=OFF',
|
|
)
|
|
->build();
|
|
}
|
|
}
|