@@ -21,7 +21,7 @@ Function Add-Extension {
2121 begin {
2222 }
2323 process {
24- # TODO: Replace fetching the extension using the new extension tool
24+ Set-GAGroup start
2525 Invoke-WebRequest - Uri " https://pecl.php.net/get/$Extension " - OutFile " $Extension .tgz"
2626 $currentDirectory = (Get-Location ).Path
2727 & tar - xzf " $Extension .tgz" - C $currentDirectory
@@ -38,7 +38,7 @@ Function Add-Extension {
3838 $bat_content = @ ()
3939 $bat_content += " "
4040 $bat_content += " call phpize 2>&1"
41- $bat_content += " call configure --with-php-build=`" ..\deps`" $ ( $Config.options ) --with-prefix=$Prefix 2>&1"
41+ $bat_content += " call configure --with-php-build=`" ..\deps`" $ ( $Config.options ) --with-mp= `" disable `" --with- prefix=$Prefix 2>&1"
4242 $bat_content += " nmake /nologo 2>&1"
4343 $bat_content += " exit %errorlevel%"
4444 Set-Content - Encoding " ASCII" - Path $Extension -task.bat - Value $bat_content
@@ -52,14 +52,16 @@ Function Add-Extension {
5252 $Config.vs_version ,
5353 $Config.arch
5454 ) -join " -" )
55- & $builder - c $Config.vs_version - a $Config.Arch - t $task | Tee-Object - FilePath " build-$suffix .txt"
55+ & $builder - c $Config.vs_version - a $Config.Arch - s $Config.vs_toolset - t $task | Tee-Object - FilePath " build-$suffix .txt"
56+ Write-Host (Get-Content " build-$suffix .txt" - Raw)
5657 $includePath = " $currentDirectory \php-dev\include"
5758 New-Item - Path $includePath \ext - Name $Extension - ItemType " directory" | Out-Null
5859 Get-ChildItem - Path (Get-Location ).Path - Recurse - Include ' *.h' , ' *.c' | Copy-Item - Destination " $includePath \ext\$Extension "
5960 Copy-Item - Path " $extensionBuildDirectory \*.dll" - Destination " $currentDirectory \php-bin\ext" - Force
6061 Copy-Item - Path " $extensionBuildDirectory \*.lib" - Destination " $currentDirectory \php-dev\lib" - Force
6162 Add-Content - Path " $currentDirectory \php-bin\php.ini" - Value " extension=$Extension "
6263 Set-Location $currentDirectory
64+ Set-GAGroup end
6365 }
6466 end {
6567 }
0 commit comments