From d1a55cf2e273cdc231e5617dc025622e28286522 Mon Sep 17 00:00:00 2001 From: crazywhalecc Date: Sun, 30 Jun 2024 00:55:43 +0800 Subject: [PATCH] Add extension swow for Windows --- config/ext.json | 2 -- src/SPC/builder/extension/swow.php | 2 +- src/globals/test-extensions.php | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/config/ext.json b/config/ext.json index 9e0c3f3ee..5b2e8eb81 100644 --- a/config/ext.json +++ b/config/ext.json @@ -733,7 +733,6 @@ }, "swow": { "support": { - "Windows": "wip", "BSD": "wip" }, "notes": true, @@ -932,7 +931,6 @@ }, "zip": { "support": { - "Windows": "wip", "BSD": "wip" }, "type": "builtin", diff --git a/src/SPC/builder/extension/swow.php b/src/SPC/builder/extension/swow.php index 3b2f91d9e..27576635c 100644 --- a/src/SPC/builder/extension/swow.php +++ b/src/SPC/builder/extension/swow.php @@ -18,7 +18,7 @@ public function validate(): void } } - public function getUnixConfigureArg(): string + public function getConfigureArg(): string { $arg = '--enable-swow'; $arg .= $this->builder->getLib('openssl') ? ' --enable-swow-ssl' : ' --disable-swow-ssl'; diff --git a/src/globals/test-extensions.php b/src/globals/test-extensions.php index ff3993c07..5b2c50073 100644 --- a/src/globals/test-extensions.php +++ b/src/globals/test-extensions.php @@ -20,7 +20,7 @@ // If you want to test your added extensions and libs, add below (comma separated, example `bcmath,openssl`). $extensions = match (PHP_OS_FAMILY) { 'Linux', 'Darwin' => 'sockets', - 'Windows' => 'mbstring,pdo_sqlite,mbregex,bz2,sqlsrv,pdo_sqlsrv,yaml,zip,rar,apcu', + 'Windows' => 'mbstring,pdo_sqlite,mbregex,bz2,sqlsrv,pdo_sqlsrv,yaml,zip,rar,apcu,swow', }; // If you want to test lib-suggests feature with extension, add them below (comma separated, example `libwebp,libavif`).