mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-02 22:35:43 +08:00
Add libaom
This commit is contained in:
@@ -10,3 +10,5 @@ libaom:
|
||||
lang: cpp
|
||||
static-libs@unix:
|
||||
- libaom.a
|
||||
static-libs@windows:
|
||||
- aom.lib
|
||||
|
||||
@@ -8,12 +8,28 @@ use StaticPHP\Attribute\Package\BuildFor;
|
||||
use StaticPHP\Attribute\Package\Library;
|
||||
use StaticPHP\Package\LibraryPackage;
|
||||
use StaticPHP\Runtime\Executor\UnixCMakeExecutor;
|
||||
use StaticPHP\Runtime\Executor\WindowsCMakeExecutor;
|
||||
use StaticPHP\Toolchain\Interface\ToolchainInterface;
|
||||
use StaticPHP\Toolchain\ZigToolchain;
|
||||
|
||||
#[Library('libaom')]
|
||||
class libaom extends LibraryPackage
|
||||
{
|
||||
#[BuildFor('Windows')]
|
||||
public function buildWin(): void
|
||||
{
|
||||
WindowsCMakeExecutor::create($this)
|
||||
->setBuildDir("{$this->getSourceDir()}/builddir")
|
||||
->addConfigureArgs(
|
||||
'-DAOM_TARGET_CPU=generic',
|
||||
'-DENABLE_TESTS=OFF',
|
||||
'-DENABLE_EXAMPLES=OFF',
|
||||
'-DENABLE_TOOLS=OFF',
|
||||
'-DENABLE_DOCS=OFF',
|
||||
)
|
||||
->build();
|
||||
}
|
||||
|
||||
#[BuildFor('Darwin')]
|
||||
#[BuildFor('Linux')]
|
||||
public function buildUnix(ToolchainInterface $toolchain): void
|
||||
|
||||
Reference in New Issue
Block a user