28 lines
620 B
PHP
Raw Normal View History

2023-09-03 15:49:15 +02:00
<?php
declare(strict_types=1);
namespace SPC\builder\unix\library;
use SPC\builder\unix\executor\UnixCMakeExecutor;
2023-09-03 15:49:15 +02:00
use SPC\exception\FileSystemException;
use SPC\exception\RuntimeException;
trait snappy
{
/**
* @throws RuntimeException
* @throws FileSystemException
*/
protected function build(): void
{
UnixCMakeExecutor::create($this)
->setCMakeBuildDir("{$this->source_dir}/cmake/build")
->addConfigureArgs(
'-DSNAPPY_BUILD_TESTS=OFF',
'-DSNAPPY_BUILD_BENCHMARKS=OFF',
2023-09-03 15:49:15 +02:00
)
->build('../..');
2023-09-03 15:49:15 +02:00
}
}