File tree 3 files changed +5
-5
lines changed
extension/BuildPhpExtension/private
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ Function Add-Extension {
42
42
$bat_content += " nmake /nologo 2>&1"
43
43
$bat_content += " exit %errorlevel%"
44
44
Set-Content - Encoding " ASCII" - Path $Extension -task.bat - Value $bat_content
45
- $builder = " $currentDirectory \php-sdk\phpsdk-$ ( $Config .vs_version ) - $ ( $Config .Arch ) .bat"
45
+ $builder = " $currentDirectory \php-sdk\phpsdk-starter .bat"
46
46
$task = (Get-Item - Path " ." - Verbose).FullName + " \$Extension -task.bat"
47
47
$suffix = " php_" + (@ (
48
48
$Config.name ,
@@ -52,7 +52,7 @@ Function Add-Extension {
52
52
$Config.vs_version ,
53
53
$Config.arch
54
54
) -join " -" )
55
- & $builder - t $task | Tee-Object - FilePath " build-$suffix .txt"
55
+ & $builder - c $Config .vs_version - a $Config .Arch - t $task | Tee-Object - FilePath " build-$suffix .txt"
56
56
$includePath = " $currentDirectory \php-dev\include"
57
57
New-Item - Path $includePath \ext - Name $Extension - ItemType " directory" | Out-Null
58
58
Get-ChildItem - Path (Get-Location ).Path - Recurse - Include ' *.h' , ' *.c' | Copy-Item - Destination " $includePath \ext\$Extension "
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ Function Invoke-Build {
24
24
$bat_content += " exit %errorlevel%"
25
25
Set-Content - Encoding " ASCII" - Path task.bat - Value $bat_content
26
26
27
- $builder = " php-sdk\phpsdk-$ ( $Config .vs_version ) - $ ( $Config .Arch ) .bat"
27
+ $builder = " php-sdk\phpsdk-starter .bat"
28
28
$task = (Get-Item - Path " ." - Verbose).FullName + ' \task.bat'
29
29
$ref = $Config.ref
30
30
if ($env: ARTIFACT_NAMING_SCHEME -eq ' pecl' ) {
@@ -38,7 +38,7 @@ Function Invoke-Build {
38
38
$Config.vs_version ,
39
39
$Config.arch
40
40
) -join " -" )
41
- & $builder - s $Config.vs_toolset - t $task | Tee-Object - FilePath " build-$suffix .txt"
41
+ & $builder - c $Config .vs_version - a $Config .Arch - s $Config.vs_toolset - t $task | Tee-Object - FilePath " build-$suffix .txt"
42
42
Set-GAGroup end
43
43
Add-BuildLog tick $Config.name " Extension $ ( $Config.name ) built successfully"
44
44
} catch {
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ function Invoke-PhpBuild {
53
53
54
54
$task = " $PSScriptRoot \..\runner\task-$Ts .bat"
55
55
56
- & " $buildDirectory \php-sdk\phpsdk-$VsVersion - $Arch .bat " - t $task
56
+ & " $buildDirectory \php-sdk\phpsdk-starter.bat " - c $VsVersion - a $Arch - t $task
57
57
if (-not $? ) {
58
58
throw " build failed with errorlevel $LastExitCode "
59
59
}
You can’t perform that action at this time.
0 commit comments