mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 21:04:52 +08:00
23 lines
463 B
PHP
23 lines
463 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace SPC\builder\unix\library;
|
|
|
|
use SPC\util\executor\UnixCMakeExecutor;
|
|
|
|
trait libjpeg
|
|
{
|
|
protected function build(): void
|
|
{
|
|
UnixCMakeExecutor::create($this)
|
|
->addConfigureArgs(
|
|
'-DENABLE_STATIC=ON',
|
|
'-DENABLE_SHARED=OFF',
|
|
)
|
|
->build();
|
|
// patch pkgconfig
|
|
$this->patchPkgconfPrefix(['libjpeg.pc', 'libturbojpeg.pc']);
|
|
}
|
|
}
|