mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-06 08:15:39 +08:00
Remove dev build target
This commit is contained in:
@@ -227,7 +227,7 @@ abstract class BuilderBase
|
||||
*/
|
||||
abstract public function buildPHP(int $build_target = BUILD_TARGET_NONE);
|
||||
|
||||
public function buildDynamicExts(): void
|
||||
public function buildSharedExts(): void
|
||||
{
|
||||
foreach ($this->getExts() as $ext) {
|
||||
if (!$ext->isBuildShared()) {
|
||||
|
||||
@@ -149,7 +149,6 @@ class LinuxBuilder extends UnixBuilderBase
|
||||
$enable_fpm = ($build_target & BUILD_TARGET_FPM) === BUILD_TARGET_FPM;
|
||||
$enable_micro = ($build_target & BUILD_TARGET_MICRO) === BUILD_TARGET_MICRO;
|
||||
$enable_embed = ($build_target & BUILD_TARGET_EMBED) === BUILD_TARGET_EMBED;
|
||||
$emable_dev = ($build_target & BUILD_TARGET_DEV) === BUILD_TARGET_DEV;
|
||||
|
||||
$mimallocLibs = $this->getLib('mimalloc') !== null ? BUILD_LIB_PATH . '/mimalloc.o ' : '';
|
||||
// prepare build php envs
|
||||
@@ -204,11 +203,6 @@ class LinuxBuilder extends UnixBuilderBase
|
||||
logger()->info('building micro');
|
||||
$this->buildMicro();
|
||||
}
|
||||
if ($emable_dev && !$enable_embed) {
|
||||
// install dynamic php extension building
|
||||
logger()->info('building dynamic php extension dev dependencies');
|
||||
$this->buildPhpDev();
|
||||
}
|
||||
if ($enable_embed) {
|
||||
logger()->info('building embed');
|
||||
if ($enable_micro) {
|
||||
@@ -320,14 +314,6 @@ class LinuxBuilder extends UnixBuilderBase
|
||||
$this->patchPhpScripts();
|
||||
}
|
||||
|
||||
protected function buildPhpDev(): void
|
||||
{
|
||||
$vars = SystemUtil::makeEnvVarString($this->getMakeExtraVars());
|
||||
shell()->cd(SOURCE_PATH . '/php-src')
|
||||
->exec(getenv('SPC_CMD_PREFIX_PHP_MAKE') . ' INSTALL_ROOT=' . BUILD_ROOT_PATH . " {$vars} install-build install-programs install-headers");
|
||||
$this->patchPhpScripts();
|
||||
}
|
||||
|
||||
private function getMakeExtraVars(): array
|
||||
{
|
||||
return [
|
||||
|
||||
@@ -146,7 +146,6 @@ class MacOSBuilder extends UnixBuilderBase
|
||||
$enableFpm = ($build_target & BUILD_TARGET_FPM) === BUILD_TARGET_FPM;
|
||||
$enableMicro = ($build_target & BUILD_TARGET_MICRO) === BUILD_TARGET_MICRO;
|
||||
$enableEmbed = ($build_target & BUILD_TARGET_EMBED) === BUILD_TARGET_EMBED;
|
||||
$enableDev = ($build_target & BUILD_TARGET_DEV) === BUILD_TARGET_DEV;
|
||||
|
||||
// prepare build php envs
|
||||
$mimallocLibs = $this->getLib('mimalloc') !== null ? BUILD_LIB_PATH . '/mimalloc.o ' : '';
|
||||
@@ -198,11 +197,6 @@ class MacOSBuilder extends UnixBuilderBase
|
||||
logger()->info('building micro');
|
||||
$this->buildMicro();
|
||||
}
|
||||
if ($enableDev && !$enableEmbed) {
|
||||
// install dynamic php extension building
|
||||
logger()->info('building dynamic php extension dev dependencies');
|
||||
$this->buildPhpDev();
|
||||
}
|
||||
if ($enableEmbed) {
|
||||
logger()->info('building embed');
|
||||
if ($enableMicro) {
|
||||
@@ -309,14 +303,6 @@ class MacOSBuilder extends UnixBuilderBase
|
||||
$this->patchPhpScripts();
|
||||
}
|
||||
|
||||
protected function buildPhpDev(): void
|
||||
{
|
||||
$vars = SystemUtil::makeEnvVarString($this->getMakeExtraVars());
|
||||
shell()->cd(SOURCE_PATH . '/php-src')
|
||||
->exec(getenv('SPC_CMD_PREFIX_PHP_MAKE') . ' INSTALL_ROOT=' . BUILD_ROOT_PATH . " {$vars} install-build install-programs install-headers");
|
||||
$this->patchPhpScripts();
|
||||
}
|
||||
|
||||
private function getMakeExtraVars(): array
|
||||
{
|
||||
return [
|
||||
|
||||
Reference in New Issue
Block a user