Add cmake executor and default library path var wrapper

This commit is contained in:
crazywhalecc
2025-06-09 00:16:18 +08:00
parent a7e48a8d3b
commit 521af84797
3 changed files with 217 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
<?php
declare(strict_types=1);
namespace SPC\builder\unix\executor;
use SPC\builder\freebsd\library\BSDLibraryBase;
use SPC\builder\LibraryBase;
use SPC\builder\linux\library\LinuxLibraryBase;
use SPC\builder\macos\library\MacOSLibraryBase;
abstract class Executor
{
public function __construct(protected BSDLibraryBase|LinuxLibraryBase|MacOSLibraryBase $library) {}
public static function create(LibraryBase $library): static
{
return new static($library);
}
abstract public function build(): void;
}