mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-19 13:24:51 +08:00
27 lines
600 B
PHP
27 lines
600 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace SPC\builder\macos\library;
|
|
|
|
use SPC\util\executor\UnixCMakeExecutor;
|
|
|
|
class glfw extends MacOSLibraryBase
|
|
{
|
|
public const NAME = 'glfw';
|
|
|
|
protected function build(): void
|
|
{
|
|
UnixCMakeExecutor::create($this)
|
|
->setBuildDir("{$this->source_dir}/vendor/glfw")
|
|
->setReset(false)
|
|
->addConfigureArgs(
|
|
'-DGLFW_BUILD_EXAMPLES=OFF',
|
|
'-DGLFW_BUILD_TESTS=OFF',
|
|
)
|
|
->build('.');
|
|
// patch pkgconf
|
|
$this->patchPkgconfPrefix(['glfw3.pc']);
|
|
}
|
|
}
|