2024-12-19 12:23:39 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
namespace SPC\builder\unix\library;
|
|
|
|
|
|
2025-06-09 01:07:30 +08:00
|
|
|
use SPC\builder\unix\executor\UnixCMakeExecutor;
|
2024-12-19 12:23:39 +08:00
|
|
|
use SPC\exception\FileSystemException;
|
|
|
|
|
use SPC\exception\RuntimeException;
|
|
|
|
|
|
|
|
|
|
trait libde265
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* @throws RuntimeException
|
|
|
|
|
* @throws FileSystemException
|
|
|
|
|
*/
|
|
|
|
|
protected function build(): void
|
|
|
|
|
{
|
2025-06-09 01:07:30 +08:00
|
|
|
UnixCMakeExecutor::create($this)
|
|
|
|
|
->addConfigureArgs('-DENABLE_SDL=OFF')
|
|
|
|
|
->build();
|
2024-12-19 12:23:39 +08:00
|
|
|
$this->patchPkgconfPrefix(['libde265.pc']);
|
|
|
|
|
}
|
|
|
|
|
}
|