Skip to content

Commit

Permalink
Add Include file to Binary drop. Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeyo26 committed Jul 12, 2016
1 parent 2714764 commit 024e0ed
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Tools/make_binary_drop_windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,16 @@ If ($buildConfig -ne "Release")
# Set Paths
$basePath = "BinaryDrops\ToZip"
$baseDropPath = Join-Path $basePath -ChildPath cntk
$baseIncludePath = Join-Path $basePath -ChildPath Include
$zipFile = "BinaryDrops\BinaryDrops.zip"
$buildPath = "x64\Release"
If ($targetConfig -eq "CPU")
{
$buildPath = "x64\Release_CpuOnly"
}
$includePath = "Source\Common\Include"
# TBD To be redone either via white-list or via array
$includeFile = Join-Path $includePath -ChildPath EvalDll.lib
$sharePath = Join-Path $sharePath -ChildPath $targetConfig


Expand All @@ -71,7 +75,8 @@ If (Test-Path $baseDropPath\cntk\UnitTests)
}
Remove-Item $baseDropPath\cntk\*test*.exe
Remove-Item $baseDropPath\cntk\*.pdb
Remove-Item $baseDropPath\cntk\*.lib
# Keep EvalDll.lib
Remove-Item $baseDropPath\cntk\*.lib -exclude EvalDll.lib
Remove-Item $baseDropPath\cntk\*.exp
Remove-Item $baseDropPath\cntk\*.metagen
# Remove specific items
Expand All @@ -96,6 +101,10 @@ If (Test-Path $baseDropPath\cntk\CommandEval.exe)
Remove-Item $baseDropPath\cntk\CommandEval.exe
}

# Copy Include
Write-Verbose "Copying Include files ..."
Copy-Item $includeFile -Destination $baseIncludePath

# Copy Examples
Write-Verbose "Copying Examples ..."
Copy-Item Examples -Recurse -Destination $baseDropPath\Examples
Expand Down

0 comments on commit 024e0ed

Please sign in to comment.