26 lines
577 B
PHP
Raw Normal View History

<?php
declare(strict_types=1);
namespace SPC\builder\unix\library;
use SPC\builder\unix\executor\UnixCMakeExecutor;
use SPC\exception\FileSystemException;
use SPC\exception\RuntimeException;
trait libaom
{
/**
* @throws RuntimeException
* @throws FileSystemException
*/
protected function build(): void
{
UnixCMakeExecutor::create($this)
->setCMakeBuildDir("{$this->source_dir}/builddir")
->addConfigureArgs('-DAOM_TARGET_GPU=generic')
->build();
$this->patchPkgconfPrefix(['aom.pc']);
}
}