mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-05 07:45:39 +08:00
44 lines
904 B
PHP
44 lines
904 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
declare(strict_types=1);
|
||
|
|
|
||
|
|
namespace StaticPHP\Util;
|
||
|
|
|
||
|
|
trait GlobalPathTrait
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* Get the build root path for the package.
|
||
|
|
*
|
||
|
|
* TODO: Can be changed to support per-package build root path in the future.
|
||
|
|
*/
|
||
|
|
public function getBuildRootPath(): string
|
||
|
|
{
|
||
|
|
return BUILD_ROOT_PATH;
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Get the include directory for the package.
|
||
|
|
*
|
||
|
|
* TODO: Can be changed to support per-package include directory in the future.
|
||
|
|
*/
|
||
|
|
public function getIncludeDir(): string
|
||
|
|
{
|
||
|
|
return BUILD_INCLUDE_PATH;
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Get the library directory for the package.
|
||
|
|
*
|
||
|
|
* TODO: Can be changed to support per-package library directory in the future.
|
||
|
|
*/
|
||
|
|
public function getLibDir(): string
|
||
|
|
{
|
||
|
|
return BUILD_LIB_PATH;
|
||
|
|
}
|
||
|
|
|
||
|
|
public function getBinDir(): string
|
||
|
|
{
|
||
|
|
return BUILD_BIN_PATH;
|
||
|
|
}
|
||
|
|
}
|