-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild-dependencies.cmd
More file actions
33 lines (22 loc) · 834 Bytes
/
build-dependencies.cmd
File metadata and controls
33 lines (22 loc) · 834 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
SETLOCAL
SET BaseDir=%~dp0
SET FrameworkVersion=v4.0.30319
SET FrameworkDir=%SystemRoot%\Microsoft.NET\Framework
SET LibsDir=%BaseDir%Libs\
SET Flavor=Release
IF [%1] NEQ [] (SET Flavor=%~1)
RMDIR /S /Q "%LibsDir%NativeBinaries"
DEL "%LibsDir%LibGit2Sharp.*"
DEL "%LibsDir%CopyNativeDependencies.targets"
DEL "%LibsDir%Voron.*"
PUSHD "%BaseDir%libgit2sharp"
"%FrameworkDir%\%FrameworkVersion%\msbuild.exe" "CI\build.msbuild" /target:Build /property:Configuration=%Flavor%
XCOPY ".\LibGit2Sharp\bin\%Flavor%\*.*" "%LibsDir%" /S /Y
XCOPY ".\LibGit2Sharp\CopyNativeDependencies.targets" "%LibsDir%" /S /Y
POPD
PUSHD "%BaseDir%raven.voron"
"%FrameworkDir%\%FrameworkVersion%\msbuild.exe" "Voron\Voron.csproj" /property:Configuration=%Flavor%
XCOPY ".\Voron\bin\%Flavor%\*.*" "%LibsDir%" /S /Y
POPD
ENDLOCAL
EXIT /B %ERRORLEVEL%