mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 12:54:52 +08:00
Add librabbitmq
This commit is contained in:
parent
bd11533865
commit
f2d389d89a
12
config/pkg/lib/librabbitmq.yml
Normal file
12
config/pkg/lib/librabbitmq.yml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
librabbitmq:
|
||||||
|
type: library
|
||||||
|
artifact:
|
||||||
|
source:
|
||||||
|
type: ghtar
|
||||||
|
repo: alanxz/rabbitmq-c
|
||||||
|
prefer-stable: true
|
||||||
|
metadata:
|
||||||
|
license-files: [LICENSE]
|
||||||
|
license: MIT
|
||||||
|
depends:
|
||||||
|
- openssl
|
||||||
21
src/Package/Library/librabbitmq.php
Normal file
21
src/Package/Library/librabbitmq.php
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace Package\Library;
|
||||||
|
|
||||||
|
use StaticPHP\Attribute\Package\BuildFor;
|
||||||
|
use StaticPHP\Attribute\Package\Library;
|
||||||
|
use StaticPHP\Package\LibraryPackage;
|
||||||
|
use StaticPHP\Runtime\Executor\UnixCMakeExecutor;
|
||||||
|
|
||||||
|
#[Library('librabbitmq')]
|
||||||
|
class librabbitmq extends LibraryPackage
|
||||||
|
{
|
||||||
|
#[BuildFor('Darwin')]
|
||||||
|
#[BuildFor('Linux')]
|
||||||
|
public function buildUnix(): void
|
||||||
|
{
|
||||||
|
UnixCMakeExecutor::create($this)->addConfigureArgs('-DBUILD_STATIC_LIBS=ON')->build();
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user