mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-19 13:24:51 +08:00
27 lines
601 B
PHP
27 lines
601 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\UnixCMakeExecutor;
|
||
|
|
|
||
|
|
#[Library('libmaxminddb')]
|
||
|
|
class libmaxminddb
|
||
|
|
{
|
||
|
|
#[BuildFor('Darwin')]
|
||
|
|
#[BuildFor('Linux')]
|
||
|
|
public function buildUnix(LibraryPackage $lib): void
|
||
|
|
{
|
||
|
|
UnixCMakeExecutor::create($lib)
|
||
|
|
->addConfigureArgs(
|
||
|
|
'-DBUILD_TESTING=OFF',
|
||
|
|
'-DMAXMINDDB_BUILD_BINARIES=OFF',
|
||
|
|
)
|
||
|
|
->build();
|
||
|
|
}
|
||
|
|
}
|