forked from KomodoPlatform/komodo-defi-framework
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmarketmaker_build_depends.cmd
35 lines (29 loc) · 1.62 KB
/
marketmaker_build_depends.cmd
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
34
35
@echo off
rem Download and build the Windows marketmaker dependencies.
if exist "c:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvars64.bat" (
call "c:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
)
@REM set up the environment, https://www.appveyor.com/docs/lang/cpp/#visual-studio-2017
if exist "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat" (
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
)
rem MSBuild /help
echo.
echo Decker will automatically download and build all needed *.dll and *.lib for you ;)
mkdir marketmaker_depends
mkdir x64
rem TODO: Download automatically from build.rs.
rem NB: "marketmaker_depends" is cached between the AppVeyor builds!
rem --- pthreads ---
:compile_pthreads
if not exist marketmaker_depends\pthreadVC2.dll (
rem NB: This library depends on `msvcr100.dll`.
rem In the future we should probably get rid of it entirely, by starting all threads from Rust.
curl ftp://sourceware.org/pub/pthreads-win32/prebuilt-dll-2-9-1-release/dll/x64/pthreadVC2.dll -o marketmaker_depends/pthreadVC2.dll
curl ftp://sourceware.org/pub/pthreads-win32/prebuilt-dll-2-9-1-release/lib/x64/pthreadVC2.lib -o marketmaker_depends/pthreadVC2.lib
)
copy marketmaker_depends\pthreadVC2.dll x64\pthreadVC2.dll
copy marketmaker_depends\pthreadVC2.lib x64\pthreadVC2.lib
rem Show what we've got here, in case we'd want to clear the cached folder, etc.
echo marketmaker_build_depends] dir marketmaker_depends
dir marketmaker_depends