Move arg-type def in config

This commit is contained in:
crazywhalecc 2026-03-08 14:01:29 +08:00
parent 88af4a719f
commit 19d6d669c0
No known key found for this signature in database
GPG Key ID: 1F4BDD59391F2680
2 changed files with 2 additions and 8 deletions

View File

@ -3,3 +3,5 @@ ext-glfw:
artifact: glfw
depends:
- glfw
php-extension:
arg-type@unix: '--enable-glfw --with-glfw-dir=@build_root_path@'

View File

@ -6,7 +6,6 @@ namespace Package\Extension;
use Package\Target\php;
use StaticPHP\Attribute\Package\BeforeStage;
use StaticPHP\Attribute\Package\CustomPhpConfigureArg;
use StaticPHP\Attribute\Package\Extension;
use StaticPHP\Attribute\PatchDescription;
use StaticPHP\Package\PhpExtensionPackage;
@ -49,11 +48,4 @@ class glfw extends PhpExtensionPackage
putenv('SPC_CMD_VAR_PHP_MAKE_EXTRA_LDFLAGS=' . $extra_ldflags);
}
}
#[CustomPhpConfigureArg('Darwin')]
#[CustomPhpConfigureArg('Linux')]
public function getUnixConfigureArg(bool $shared = false): string
{
return '--enable-glfw --with-glfw-dir=' . BUILD_ROOT_PATH;
}
}