mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 12:54:52 +08:00
22 lines
449 B
PHP
22 lines
449 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace SPC\builder\unix\library;
|
|
|
|
use SPC\util\executor\UnixCMakeExecutor;
|
|
|
|
trait snappy
|
|
{
|
|
protected function build(): void
|
|
{
|
|
UnixCMakeExecutor::create($this)
|
|
->setBuildDir("{$this->source_dir}/cmake/build")
|
|
->addConfigureArgs(
|
|
'-DSNAPPY_BUILD_TESTS=OFF',
|
|
'-DSNAPPY_BUILD_BENCHMARKS=OFF',
|
|
)
|
|
->build('../..');
|
|
}
|
|
}
|