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