mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 21:04:52 +08:00
24 lines
503 B
PHP
24 lines
503 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace SPC\builder\unix\library;
|
|
|
|
use SPC\util\executor\UnixCMakeExecutor;
|
|
|
|
trait libssh2
|
|
{
|
|
protected function build(): void
|
|
{
|
|
UnixCMakeExecutor::create($this)
|
|
->optionalLib('zlib', ...cmake_boolean_args('ENABLE_ZLIB_COMPRESSION'))
|
|
->addConfigureArgs(
|
|
'-DBUILD_EXAMPLES=OFF',
|
|
'-DBUILD_TESTING=OFF'
|
|
)
|
|
->build();
|
|
|
|
$this->patchPkgconfPrefix(['libssh2.pc']);
|
|
}
|
|
}
|