mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 12:54:52 +08:00
add excimer extension
This commit is contained in:
parent
8650ce4f8f
commit
b09337de09
@ -127,6 +127,14 @@
|
|||||||
"sockets"
|
"sockets"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"excimer": {
|
||||||
|
"support": {
|
||||||
|
"Windows": "wip",
|
||||||
|
"BSD": "wip"
|
||||||
|
},
|
||||||
|
"type": "external",
|
||||||
|
"source": "ext-excimer"
|
||||||
|
},
|
||||||
"exif": {
|
"exif": {
|
||||||
"type": "builtin"
|
"type": "builtin"
|
||||||
},
|
},
|
||||||
|
|||||||
@ -126,13 +126,23 @@
|
|||||||
},
|
},
|
||||||
"ext-event": {
|
"ext-event": {
|
||||||
"type": "url",
|
"type": "url",
|
||||||
"url": "https://bitbucket.org/osmanov/pecl-event/get/3.0.8.tar.gz",
|
"url": "https://bitbucket.org/osmanov/pecl-event/get/3.1.4.tar.gz",
|
||||||
"path": "php-src/ext/event",
|
"path": "php-src/ext/event",
|
||||||
"license": {
|
"license": {
|
||||||
"type": "file",
|
"type": "file",
|
||||||
"path": "LICENSE"
|
"path": "LICENSE"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"ext-excimer": {
|
||||||
|
"type": "url",
|
||||||
|
"url": "https://pecl.php.net/get/excimer",
|
||||||
|
"path": "php-src/ext/excimer",
|
||||||
|
"filename": "excimer.tgz",
|
||||||
|
"license": {
|
||||||
|
"type": "file",
|
||||||
|
"path": "LICENSE"
|
||||||
|
}
|
||||||
|
},
|
||||||
"ext-glfw": {
|
"ext-glfw": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/mario-deluna/php-glfw",
|
"url": "https://github.com/mario-deluna/php-glfw",
|
||||||
|
|||||||
19
src/SPC/builder/extension/excimer.php
Normal file
19
src/SPC/builder/extension/excimer.php
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace SPC\builder\extension;
|
||||||
|
|
||||||
|
use SPC\builder\Extension;
|
||||||
|
use SPC\util\CustomExt;
|
||||||
|
|
||||||
|
#[CustomExt('excimer')]
|
||||||
|
class excimer extends Extension
|
||||||
|
{
|
||||||
|
public function getSharedExtensionEnv(): array
|
||||||
|
{
|
||||||
|
$env = parent::getSharedExtensionEnv();
|
||||||
|
$env['LIBS'] = clean_spaces(str_replace('-lphp', '', $env['LIBS']));
|
||||||
|
return $env;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -145,11 +145,9 @@ abstract class UnixBuilderBase extends BuilderBase
|
|||||||
throw new SPCInternalException("Deploy failed. Cannot find file after copy: {$dst}");
|
throw new SPCInternalException("Deploy failed. Cannot find file after copy: {$dst}");
|
||||||
}
|
}
|
||||||
|
|
||||||
// extract debug info
|
|
||||||
$this->extractDebugInfo($dst);
|
|
||||||
|
|
||||||
// strip
|
// strip
|
||||||
if (!$this->getOption('no-strip')) {
|
if (!$this->getOption('no-strip')) {
|
||||||
|
$this->extractDebugInfo($dst);
|
||||||
$this->stripBinary($dst);
|
$this->stripBinary($dst);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user