Skip to content

Commit cfc5e06

Browse files
committed
Add headers for extension dependencies
1 parent e30bd4b commit cfc5e06

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

extension/BuildPhpExtension/private/Add-Extension.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ Function Add-Extension {
3636
$builder = "$currentDirectory\php-sdk\phpsdk-$($Config.vs_version)-$($Config.Arch).bat"
3737
$task = (Get-Item -Path "." -Verbose).FullName + "\$Extension-task.bat"
3838
& $builder -t $task
39+
$includePath = "$currentDirectory\php-dev\include"
40+
New-Item -Path $includePath\ext -Name $Extension -ItemType "directory" | Out-Null
41+
Copy-Item "*.h" -Destination "$includePath\ext\$Extension" -Recurse
3942
Set-Location $currentDirectory
4043
}
4144
end {

0 commit comments

Comments
 (0)