mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-02 14:25:41 +08:00
Add ext-zstd for Windows
This commit is contained in:
@@ -11,5 +11,8 @@ ext-zstd:
|
||||
license: MIT
|
||||
depends:
|
||||
- zstd
|
||||
suggests:
|
||||
- ext-apcu
|
||||
php-extension:
|
||||
arg-type: '--enable-zstd --with-libzstd=@build_root_path@'
|
||||
arg-type@windows: '--enable-zstd'
|
||||
|
||||
@@ -18,4 +18,4 @@ zstd:
|
||||
static-libs@unix:
|
||||
- libzstd.a
|
||||
static-libs@windows:
|
||||
- zstd_static.lib
|
||||
- zstd.lib
|
||||
|
||||
@@ -9,6 +9,7 @@ use StaticPHP\Attribute\Package\Library;
|
||||
use StaticPHP\Package\LibraryPackage;
|
||||
use StaticPHP\Runtime\Executor\UnixCMakeExecutor;
|
||||
use StaticPHP\Runtime\Executor\WindowsCMakeExecutor;
|
||||
use StaticPHP\Util\FileSystem;
|
||||
|
||||
#[Library('zstd')]
|
||||
class zstd
|
||||
@@ -24,6 +25,7 @@ class zstd
|
||||
'-DZSTD_BUILD_SHARED=OFF',
|
||||
)
|
||||
->build();
|
||||
FileSystem::copy($package->getLibDir() . '\zstd_static.lib', $package->getLibDir() . '/zstd.lib');
|
||||
}
|
||||
|
||||
#[BuildFor('Linux')]
|
||||
|
||||
Reference in New Issue
Block a user