mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-03 14:55:39 +08:00
37 lines
729 B
PHP
37 lines
729 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace SPC\builder\macos\library;
|
|
|
|
use SPC\builder\BuilderBase;
|
|
use SPC\builder\LibraryBase;
|
|
use SPC\builder\macos\MacOSBuilder;
|
|
use SPC\builder\traits\UnixLibraryTrait;
|
|
use SPC\store\Config;
|
|
|
|
abstract class MacOSLibraryBase extends LibraryBase
|
|
{
|
|
use UnixLibraryTrait;
|
|
|
|
protected array $headers;
|
|
|
|
public function __construct(protected MacOSBuilder $builder)
|
|
{
|
|
parent::__construct();
|
|
}
|
|
|
|
public function getBuilder(): BuilderBase
|
|
{
|
|
return $this->builder;
|
|
}
|
|
|
|
/**
|
|
* 获取当前 lib 库依赖的 macOS framework
|
|
*/
|
|
public function getFrameworks(): array
|
|
{
|
|
return Config::getLib(static::NAME, 'frameworks', []);
|
|
}
|
|
}
|