Add extension maxminddb support for macOS and Linux (#975)

This commit is contained in:
Jerry Ma
2025-11-26 15:32:26 +08:00
committed by GitHub
parent f24cbcf909
commit 5d1043334d
9 changed files with 120 additions and 9 deletions

View File

@@ -0,0 +1,20 @@
<?php
declare(strict_types=1);
namespace SPC\builder\unix\library;
use SPC\util\executor\UnixCMakeExecutor;
trait libmaxminddb
{
protected function build(): void
{
UnixCMakeExecutor::create($this)
->addConfigureArgs(
'-DBUILD_TESTING=OFF',
'-DMAXMINDDB_BUILD_BINARIES=OFF',
)
->build();
}
}