add --with-frankenphp-app option to embed an app

# Conflicts:
#	config/lib.json
#	src/SPC/builder/unix/UnixBuilderBase.php
This commit is contained in:
DubbleClick
2025-09-05 21:36:25 +07:00
committed by henderkes
parent 987ad4b846
commit 9edb9417a1
5 changed files with 75 additions and 9 deletions

View File

@@ -45,7 +45,7 @@ SPC_SKIP_PHP_VERSION_CHECK="no"
; Ignore some check item for bin/spc doctor command, comma separated (e.g. SPC_SKIP_DOCTOR_CHECK_ITEMS="if homebrew has installed")
SPC_SKIP_DOCTOR_CHECK_ITEMS=""
; extra modules that xcaddy will include in the FrankenPHP build
SPC_CMD_VAR_FRANKENPHP_XCADDY_MODULES="--with github.com/dunglas/frankenphp/caddy --with github.com/dunglas/mercure/caddy --with github.com/dunglas/vulcain/caddy --with github.com/dunglas/caddy-cbrotli"
SPC_CMD_VAR_FRANKENPHP_XCADDY_MODULES="--with github.com/dunglas/mercure/caddy --with github.com/dunglas/vulcain/caddy --with github.com/dunglas/caddy-cbrotli"
; The display message for php version output (PHP >= 8.4 available)
PHP_BUILD_PROVIDER="static-php-cli ${SPC_VERSION}"

View File

@@ -7,12 +7,14 @@
"source": "php-src",
"lib-depends": [
"lib-base",
"micro"
"micro",
"frankenphp"
],
"lib-depends-macos": [
"lib-base",
"micro",
"libxml2"
"libxml2",
"frankenphp"
],
"lib-suggests-linux": [
"libacl",
@@ -968,5 +970,9 @@
"zstd.h",
"zstd_errors.h"
]
},
"frankenphp": {
"source": "frankenphp",
"type": "target"
}
}

View File

@@ -363,6 +363,16 @@
"path": "LICENSE"
}
},
"frankenphp": {
"type": "ghtar",
"repo": "php/frankenphp",
"prefer-stable": true,
"provide-pre-build": false,
"license": {
"type": "file",
"path": "LICENSE"
}
},
"icu-static-win": {
"type": "url",
"url": "https://dl.static-php.dev/static-php-cli/deps/icu-static-windows-x64/icu-static-windows-x64.zip",