mirror of
https://github.com/php-win-ext/php-windows-builder.git
synced 2026-03-26 01:52:10 +01:00
30 lines
721 B
PowerShell
30 lines
721 B
PowerShell
function Add-BuildRequirements {
|
|
<#
|
|
.SYNOPSIS
|
|
Get the PHP source code.
|
|
.PARAMETER PhpVersion
|
|
PHP Version
|
|
.PARAMETER Arch
|
|
PHP Architecture
|
|
#>
|
|
[OutputType()]
|
|
param (
|
|
[Parameter(Mandatory = $true, Position=0, HelpMessage='PHP Version')]
|
|
[ValidateNotNull()]
|
|
[ValidateLength(1, [int]::MaxValue)]
|
|
[string] $PhpVersion,
|
|
[Parameter(Mandatory = $true, Position=1, HelpMessage='PHP Architecture')]
|
|
[ValidateNotNull()]
|
|
[ValidateSet('x86', 'x64')]
|
|
[string] $Arch
|
|
)
|
|
begin {
|
|
}
|
|
process {
|
|
Get-OciSdk -Arch $Arch
|
|
Get-PhpSdk
|
|
Get-PhpSrc -PhpVersion $PhpVersion
|
|
}
|
|
end {
|
|
}
|
|
} |