blob: aa069d5aeaaf03675d81cf9be21e97bc50c55efd [file] [log] [blame] [edit]
# Copy the source code of the C library into `rust/ittapi-sys/c-library`. This is a workaround for
# Windows developers that may not be able to use POSIX symlinks. Also see:
# https://github.com/git-for-windows/git/wiki/Symbolic-Links.
$cLibrary = $MyInvocation.MyCommand.Path | Split-Path -Parent | Split-Path -Parent | Split-Path -Parent
$linkLocation = Join-Path -Path $cLibrary -ChildPath "rust" | Join-Path -ChildPath "ittapi-sys" | Join-Path -ChildPath "c-library"
Remove-Item $linkLocation -Force -Recurse
robocopy $cLibrary $linkLocation /e /xd ".git" "build" "rust"