2024-04-12 15:53:38 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
namespace SPC\builder\extension;
|
|
|
|
|
|
|
|
|
|
use SPC\builder\Extension;
|
|
|
|
|
use SPC\util\CustomExt;
|
|
|
|
|
|
|
|
|
|
#[CustomExt('dba')]
|
|
|
|
|
class dba extends Extension
|
|
|
|
|
{
|
2025-03-27 11:12:19 +07:00
|
|
|
public function getUnixConfigureArg(bool $shared = false): string
|
2024-04-12 15:53:38 +08:00
|
|
|
{
|
2025-05-21 13:19:51 +07:00
|
|
|
$qdbm = $this->builder->getLib('qdbm') ? (' --with-qdbm=' . ($shared ? 'shared,' : '') . BUILD_ROOT_PATH) : '';
|
2025-05-21 14:10:56 +07:00
|
|
|
return '--enable-dba' . ($shared ? '=shared' : '') . $qdbm;
|
2024-04-12 15:53:38 +08:00
|
|
|
}
|
|
|
|
|
|
2025-05-21 12:01:00 +07:00
|
|
|
public function getWindowsConfigureArg(bool $shared = false): string
|
2024-04-12 15:53:38 +08:00
|
|
|
{
|
|
|
|
|
$qdbm = $this->builder->getLib('qdbm') ? ' --with-qdbm' : '';
|
|
|
|
|
return '--with-dba' . $qdbm;
|
|
|
|
|
}
|
|
|
|
|
}
|