2023-11-21 23:12:00 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
namespace SPC\builder\unix\library;
|
|
|
|
|
|
|
|
|
|
use SPC\exception\FileSystemException;
|
|
|
|
|
use SPC\exception\RuntimeException;
|
2025-06-09 09:24:31 +08:00
|
|
|
use SPC\util\executor\UnixCMakeExecutor;
|
2023-11-21 23:12:00 +08:00
|
|
|
|
|
|
|
|
trait tidy
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* @throws RuntimeException
|
|
|
|
|
* @throws FileSystemException
|
|
|
|
|
*/
|
|
|
|
|
protected function build(): void
|
|
|
|
|
{
|
2025-06-09 01:07:30 +08:00
|
|
|
UnixCMakeExecutor::create($this)
|
2025-06-09 09:26:39 +08:00
|
|
|
->setBuildDir("{$this->source_dir}/build-dir")
|
2025-06-09 01:07:30 +08:00
|
|
|
->addConfigureArgs('-DSUPPORT_CONSOLE_APP=OFF')
|
|
|
|
|
->build();
|
2023-11-21 23:12:00 +08:00
|
|
|
$this->patchPkgconfPrefix(['tidy.pc']);
|
|
|
|
|
}
|
|
|
|
|
}
|