mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 12:54:52 +08:00
31 lines
1.2 KiB
PHP
31 lines
1.2 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace SPC\builder\extension;
|
|
|
|
use SPC\builder\Extension;
|
|
use SPC\util\CustomExt;
|
|
|
|
#[CustomExt('enchant')]
|
|
class enchant extends Extension
|
|
{
|
|
public function getUnixConfigureArg(bool $shared = false): string
|
|
{
|
|
$glibs = [
|
|
'/Users/jerry/project/git-project/static-php-cli/buildroot/lib/libgio-2.0.a',
|
|
'/Users/jerry/project/git-project/static-php-cli/buildroot/lib/libglib-2.0.a',
|
|
'/Users/jerry/project/git-project/static-php-cli/buildroot/lib/libgmodule-2.0.a',
|
|
'/Users/jerry/project/git-project/static-php-cli/buildroot/lib/libgobject-2.0.a',
|
|
'/Users/jerry/project/git-project/static-php-cli/buildroot/lib/libgthread-2.0.a',
|
|
'/Users/jerry/project/git-project/static-php-cli/buildroot/lib/libintl.a',
|
|
];
|
|
$arg = '--with-enchant="' . BUILD_ROOT_PATH . '"';
|
|
$arg .= ' ENCHANT2_CFLAGS=-I"' . BUILD_INCLUDE_PATH . '/enchant-2"';
|
|
$arg .= ' ENCHANT2_LIBS="' . $this->getLibFilesString() . '"';
|
|
$arg .= ' GLIB_CFLAGS=-I"' . BUILD_INCLUDE_PATH . '"';
|
|
$arg .= ' GLIB_LIBS="' . implode(' ', $glibs) . '"';
|
|
return $arg;
|
|
}
|
|
}
|