File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed
extension/BuildPhpExtension/private Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -24,12 +24,18 @@ Function Add-Extension {
24
24
# TODO: Replace fetching the extension using the new extension tool
25
25
Invoke-WebRequest - Uri " https://pecl.php.net/get/$Extension " - OutFile " $Extension .tgz"
26
26
$currentDirectory = (Get-Location ).Path
27
- Expand-Archive " $Extension .tgz" - DestinationPath $currentDirectory
27
+ & tar - xzf " $Extension .tgz" - C $currentDirectory
28
28
Set-Location " $Extension -*"
29
- & phpize
30
- .\configure.bat -- with- php- build= ..\..\deps $Config.options -- with- prefix= $Prefix
31
- & nmake
32
- & nmake install
29
+ $bat_content = @ ()
30
+ $bat_content += " "
31
+ $bat_content += " call phpize 2>&1"
32
+ $bat_content += " call configure --with-php-build=`" ..\deps`" $ ( $Config.options ) --with-prefix=$Prefix 2>&1"
33
+ $bat_content += " nmake /nologo 2>&1"
34
+ $bat_content += " exit %errorlevel%"
35
+ Set-Content - Encoding " ASCII" - Path $Extension -task.bat - Value $bat_content
36
+ $builder = " $currentDirectory \php-sdk\phpsdk-$ ( $Config.vs_version ) -$ ( $Config.Arch ) .bat"
37
+ $task = (Get-Item - Path " ." - Verbose).FullName + " \$Extension -task.bat"
38
+ & $builder - t $task
33
39
Set-Location $currentDirectory
34
40
}
35
41
end {
You can’t perform that action at this time.
0 commit comments