2025-06-04 21:50:28 +07:00
|
|
|
<?php
|
2025-06-04 21:42:44 +07:00
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
namespace SPC\builder\unix\library;
|
|
|
|
|
|
|
|
|
|
use SPC\exception\FileSystemException;
|
|
|
|
|
use SPC\exception\RuntimeException;
|
2025-06-09 19:32:31 +08:00
|
|
|
use SPC\util\executor\UnixAutoconfExecutor;
|
2025-06-04 21:42:44 +07:00
|
|
|
|
|
|
|
|
trait nghttp3
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* @throws FileSystemException
|
|
|
|
|
* @throws RuntimeException
|
|
|
|
|
*/
|
|
|
|
|
protected function build(): void
|
|
|
|
|
{
|
2025-06-09 19:32:31 +08:00
|
|
|
UnixAutoconfExecutor::create($this)->configure('--enable-lib-only')->make();
|
2025-06-04 21:42:44 +07:00
|
|
|
$this->patchPkgconfPrefix(['libnghttp3.pc']);
|
2025-06-10 19:46:55 +07:00
|
|
|
$this->patchLaDependencyPrefix();
|
2025-06-04 21:42:44 +07:00
|
|
|
}
|
|
|
|
|
}
|