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