mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 21:04:52 +08:00
29 lines
586 B
PHP
29 lines
586 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace SPC\builder\extension;
|
|
|
|
use SPC\builder\Extension;
|
|
use SPC\exception\RuntimeException;
|
|
use SPC\store\FileSystem;
|
|
use SPC\util\CustomExt;
|
|
|
|
#[CustomExt('glfw')]
|
|
class glfw extends Extension
|
|
{
|
|
/**
|
|
* @throws RuntimeException
|
|
*/
|
|
public function patchBeforeBuildconf(): bool
|
|
{
|
|
FileSystem::copyDir(SOURCE_PATH . '/ext-glfw', SOURCE_PATH . '/php-src/ext/glfw');
|
|
return true;
|
|
}
|
|
|
|
public function getUnixConfigureArg(): string
|
|
{
|
|
return '--enable-glfw --with-glfw-dir=' . BUILD_ROOT_PATH;
|
|
}
|
|
}
|