Skip to content

Commit b09337d

Browse files
committed
add excimer extension
1 parent 8650ce4 commit b09337d

File tree

4 files changed

+39
-4
lines changed

4 files changed

+39
-4
lines changed

config/ext.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,14 @@
127127
"sockets"
128128
]
129129
},
130+
"excimer": {
131+
"support": {
132+
"Windows": "wip",
133+
"BSD": "wip"
134+
},
135+
"type": "external",
136+
"source": "ext-excimer"
137+
},
130138
"exif": {
131139
"type": "builtin"
132140
},

config/source.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,23 @@
126126
},
127127
"ext-event": {
128128
"type": "url",
129-
"url": "https://bitbucket.org/osmanov/pecl-event/get/3.0.8.tar.gz",
129+
"url": "https://bitbucket.org/osmanov/pecl-event/get/3.1.4.tar.gz",
130130
"path": "php-src/ext/event",
131131
"license": {
132132
"type": "file",
133133
"path": "LICENSE"
134134
}
135135
},
136+
"ext-excimer": {
137+
"type": "url",
138+
"url": "https://pecl.php.net/get/excimer",
139+
"path": "php-src/ext/excimer",
140+
"filename": "excimer.tgz",
141+
"license": {
142+
"type": "file",
143+
"path": "LICENSE"
144+
}
145+
},
136146
"ext-glfw": {
137147
"type": "git",
138148
"url": "https://github.com/mario-deluna/php-glfw",
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace SPC\builder\extension;
6+
7+
use SPC\builder\Extension;
8+
use SPC\util\CustomExt;
9+
10+
#[CustomExt('excimer')]
11+
class excimer extends Extension
12+
{
13+
public function getSharedExtensionEnv(): array
14+
{
15+
$env = parent::getSharedExtensionEnv();
16+
$env['LIBS'] = clean_spaces(str_replace('-lphp', '', $env['LIBS']));
17+
return $env;
18+
}
19+
}

src/SPC/builder/unix/UnixBuilderBase.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,9 @@ public function deployBinary(string $src, string $dst, bool $executable = true):
145145
throw new SPCInternalException("Deploy failed. Cannot find file after copy: {$dst}");
146146
}
147147

148-
// extract debug info
149-
$this->extractDebugInfo($dst);
150-
151148
// strip
152149
if (!$this->getOption('no-strip')) {
150+
$this->extractDebugInfo($dst);
153151
$this->stripBinary($dst);
154152
}
155153

0 commit comments

Comments
 (0)