mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
add libuv dependency for swow, but still not working
This commit is contained in:
parent
f06736315d
commit
e4b37b9f9a
@ -298,6 +298,9 @@
|
|||||||
"swow": {
|
"swow": {
|
||||||
"type": "external",
|
"type": "external",
|
||||||
"source": "swow",
|
"source": "swow",
|
||||||
|
"lib-depends": [
|
||||||
|
"libuv"
|
||||||
|
],
|
||||||
"lib-suggests": [
|
"lib-suggests": [
|
||||||
"openssl",
|
"openssl",
|
||||||
"curl"
|
"curl"
|
||||||
|
|||||||
@ -254,6 +254,15 @@
|
|||||||
"cunit"
|
"cunit"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"libuv": {
|
||||||
|
"source": "libuv",
|
||||||
|
"static-libs-unix": [
|
||||||
|
"libuv.a"
|
||||||
|
],
|
||||||
|
"headers": [
|
||||||
|
"uv.h"
|
||||||
|
]
|
||||||
|
},
|
||||||
"onig": {
|
"onig": {
|
||||||
"source": "onig",
|
"source": "onig",
|
||||||
"static-libs-unix": [
|
"static-libs-unix": [
|
||||||
|
|||||||
@ -150,6 +150,14 @@
|
|||||||
"path": "COPYING"
|
"path": "COPYING"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"libuv": {
|
||||||
|
"type": "ghtar",
|
||||||
|
"repo": "libuv/libuv",
|
||||||
|
"license": {
|
||||||
|
"type": "file",
|
||||||
|
"path": "LICENSE"
|
||||||
|
}
|
||||||
|
},
|
||||||
"onig": {
|
"onig": {
|
||||||
"type": "ghrel",
|
"type": "ghrel",
|
||||||
"repo": "kkos/oniguruma",
|
"repo": "kkos/oniguruma",
|
||||||
@ -209,6 +217,7 @@
|
|||||||
"path": "php-src/ext/swow-src",
|
"path": "php-src/ext/swow-src",
|
||||||
"rev": "ci",
|
"rev": "ci",
|
||||||
"url": "https://github.com/swow/swow",
|
"url": "https://github.com/swow/swow",
|
||||||
|
"patch": "patchSwow",
|
||||||
"license": {
|
"license": {
|
||||||
"type": "file",
|
"type": "file",
|
||||||
"path": "LICENSE"
|
"path": "LICENSE"
|
||||||
|
|||||||
@ -270,6 +270,7 @@ class Extension
|
|||||||
case 'swow':
|
case 'swow':
|
||||||
$arg .= $this->builder->getLib('openssl') ? ' --enable-swow-ssl' : ' --disable-swow-ssl';
|
$arg .= $this->builder->getLib('openssl') ? ' --enable-swow-ssl' : ' --disable-swow-ssl';
|
||||||
$arg .= $this->builder->getLib('curl') ? ' --enable-swow-curl' : ' --disable-swow-curl';
|
$arg .= $this->builder->getLib('curl') ? ' --enable-swow-curl' : ' --disable-swow-curl';
|
||||||
|
$arg .= ' SWOW_UV_CFLAGS=-I"' . BUILD_INCLUDE_PATH . '" ';
|
||||||
break;
|
break;
|
||||||
case 'swoole':
|
case 'swoole':
|
||||||
if ($this->builder->getLib('openssl')) {
|
if ($this->builder->getLib('openssl')) {
|
||||||
|
|||||||
29
src/SPC/builder/macos/library/libuv.php
Normal file
29
src/SPC/builder/macos/library/libuv.php
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace SPC\builder\macos\library;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* is a template library class for unix
|
||||||
|
*/
|
||||||
|
class libuv extends MacOSLibraryBase
|
||||||
|
{
|
||||||
|
public const NAME = 'libuv';
|
||||||
|
|
||||||
|
protected function build()
|
||||||
|
{
|
||||||
|
[,,$destdir] = SEPARATED_PATH;
|
||||||
|
|
||||||
|
f_passthru(
|
||||||
|
$this->builder->set_x . ' && ' .
|
||||||
|
"cd {$this->source_dir} && " .
|
||||||
|
"{$this->builder->configure_env} ./configure " .
|
||||||
|
'--enable-static --disable-shared ' .
|
||||||
|
'--prefix= && ' . // use prefix=/
|
||||||
|
'make clean && ' .
|
||||||
|
"make -j{$this->builder->concurrency} && " .
|
||||||
|
'make install DESTDIR=' . $destdir
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user