mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-10 18:35:35 +08:00
* fix curl on windows build needs nghttp2.dll bug * add curl on windows tests * cs fix * fix curl headers * exit powershell properly * reproduce zend_mm_heap corrupted * reproduce zend_mm_heap corrupted * reproduce zend_mm_heap corrupted * add for-libs option for download * add for-libs option for download * add for-libs option for download
25 lines
758 B
PHP
25 lines
758 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace SPC\builder\windows\library;
|
|
|
|
use SPC\store\FileSystem;
|
|
|
|
class curl extends WindowsLibraryBase
|
|
{
|
|
public const NAME = 'curl';
|
|
|
|
protected function build(): void
|
|
{
|
|
cmd()->cd($this->source_dir . '\winbuild')
|
|
->execWithWrapper(
|
|
$this->builder->makeSimpleWrapper('nmake'),
|
|
'/f Makefile.vc WITH_DEVEL=' . BUILD_ROOT_PATH . ' ' .
|
|
'WITH_PREFIX=' . BUILD_ROOT_PATH . ' ' .
|
|
'mode=static RTLIBCFG=static WITH_SSL=static WITH_NGHTTP2=static WITH_SSH2=static ENABLE_IPV6=yes WITH_ZLIB=static MACHINE=x64 DEBUG=no'
|
|
);
|
|
FileSystem::copyDir($this->source_dir . '\include\curl', BUILD_INCLUDE_PATH . '\curl');
|
|
}
|
|
}
|