mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-05 07:45:39 +08:00
23 lines
509 B
PHP
23 lines
509 B
PHP
|
|
<?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\UnixAutoconfExecutor;
|
||
|
|
|
||
|
|
#[Library('sqlite')]
|
||
|
|
class sqlite
|
||
|
|
{
|
||
|
|
#[BuildFor('Darwin')]
|
||
|
|
#[BuildFor('Linux')]
|
||
|
|
public function buildUnix(LibraryPackage $lib): void
|
||
|
|
{
|
||
|
|
UnixAutoconfExecutor::create($lib)->configure()->make();
|
||
|
|
$lib->patchPkgconfPrefix(['sqlite3.pc']);
|
||
|
|
}
|
||
|
|
}
|