mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-02 14:25:41 +08:00
Add nghttp3
This commit is contained in:
@@ -17,3 +17,5 @@ nghttp3:
|
||||
- libnghttp3
|
||||
static-libs@unix:
|
||||
- libnghttp3.a
|
||||
static-libs@windows:
|
||||
- nghttp3.lib
|
||||
|
||||
@@ -8,10 +8,26 @@ use StaticPHP\Attribute\Package\BuildFor;
|
||||
use StaticPHP\Attribute\Package\Library;
|
||||
use StaticPHP\Package\LibraryPackage;
|
||||
use StaticPHP\Runtime\Executor\UnixAutoconfExecutor;
|
||||
use StaticPHP\Runtime\Executor\WindowsCMakeExecutor;
|
||||
|
||||
#[Library('nghttp3')]
|
||||
class nghttp3
|
||||
{
|
||||
#[BuildFor('Windows')]
|
||||
public function buildWin(LibraryPackage $lib): void
|
||||
{
|
||||
WindowsCMakeExecutor::create($lib)
|
||||
->addConfigureArgs(
|
||||
'-DENABLE_SHARED_LIB=OFF',
|
||||
'-DENABLE_STATIC_LIB=ON',
|
||||
'-DBUILD_STATIC_LIBS=ON',
|
||||
'-DBUILD_SHARED_LIBS=OFF',
|
||||
'-DENABLE_STATIC_CRT=ON',
|
||||
'-DENABLE_LIB_ONLY=ON',
|
||||
)
|
||||
->build();
|
||||
}
|
||||
|
||||
#[BuildFor('Linux')]
|
||||
#[BuildFor('Darwin')]
|
||||
public function build(LibraryPackage $lib): void
|
||||
|
||||
Reference in New Issue
Block a user