mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 21:04:52 +08:00
27 lines
642 B
PHP
27 lines
642 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
declare(strict_types=1);
|
||
|
|
|
||
|
|
namespace SPC\builder\macos\library;
|
||
|
|
|
||
|
|
class sqlite extends MacOSLibraryBase
|
||
|
|
{
|
||
|
|
public const NAME = 'sqlite';
|
||
|
|
|
||
|
|
protected function build()
|
||
|
|
{
|
||
|
|
[,,$destdir] = SEPARATED_PATH;
|
||
|
|
|
||
|
|
f_passthru(
|
||
|
|
$this->builder->set_x . ' && ' .
|
||
|
|
"cd {$this->source_dir} && " .
|
||
|
|
"{$this->builder->configure_env} ./configure " .
|
||
|
|
'--enable-static --disable-shared ' .
|
||
|
|
'--prefix= && ' . // use prefix=/
|
||
|
|
'make clean && ' .
|
||
|
|
"make -j{$this->builder->concurrency} && " .
|
||
|
|
'make install DESTDIR=' . $destdir
|
||
|
|
);
|
||
|
|
}
|
||
|
|
}
|