Browse Source

Do not rebuild win dependencies if they are already built.

pass-iguana-arg
Artem Pikulin 7 years ago
parent
commit
d36d385726
  1. 16
      marketmaker_build_depends.cmd

16
marketmaker_build_depends.cmd

@ -36,24 +36,27 @@ exit
rem MSBuild /help rem MSBuild /help
echo. echo.
echo Decker will automatically download and build all needed *.dll and *.lib for you ;) echo Decker will automatically download and build all needed *.dll and *.lib for you ;)
timeout /t 5 /nobreak
mkdir marketmaker_depends mkdir marketmaker_depends
mkdir x64\Release mkdir x64\Release
rem --- pthreads --- rem --- pthreads ---
:compile_pthreads :compile_pthreads
if not exist marketmaker_depends\pthread-win32\bin\x64_MSVC2015.Release\pthread_lib.lib (
cd marketmaker_depends cd marketmaker_depends
git clone https://github.com/DeckerSU/pthread-win32 git clone https://github.com/DeckerSU/pthread-win32
cd pthread-win32 cd pthread-win32
MSBuild pthread.2015.sln /t:Rebuild /p:Configuration=Release /p:Platform=Win32 MSBuild pthread.2015.sln /t:Rebuild /p:Configuration=Release /p:Platform=Win32
MSBuild pthread.2015.sln /t:Rebuild /p:Configuration=Release /p:Platform=x64 MSBuild pthread.2015.sln /t:Rebuild /p:Configuration=Release /p:Platform=x64
cd ../.. cd ../..
)
copy marketmaker_depends\pthread-win32\bin\x64_MSVC2015.Release\pthread_lib.lib OSlibs\win\x64\pthread_lib.lib copy marketmaker_depends\pthread-win32\bin\x64_MSVC2015.Release\pthread_lib.lib OSlibs\win\x64\pthread_lib.lib
rem --- nanomsg --- rem --- nanomsg ---
:compile_nanomsg :compile_nanomsg
if not exist marketmaker_depends\nanomsg\build_msvc_2015_win64\Release\nanomsg.lib (
if not exist marketmaker_depends\nanomsg\build_msvc_2015_win64\Release\nanomsg.exp (
if not exist marketmaker_depends\nanomsg\build_msvc_2015_win64\Release\nanomsg.dll (
cd marketmaker_depends cd marketmaker_depends
git clone https://github.com/nanomsg/nanomsg git clone https://github.com/nanomsg/nanomsg
cd nanomsg cd nanomsg
@ -63,12 +66,18 @@ cd build_msvc_2015_win64
cmake -G "Visual Studio 14 2015 Win64" .. cmake -G "Visual Studio 14 2015 Win64" ..
cmake --build . --config Release --target nanomsg cmake --build . --config Release --target nanomsg
cd ../../.. cd ../../..
)
)
)
copy marketmaker_depends\nanomsg\build_msvc_2015_win64\Release\nanomsg.lib OSlibs\win\x64\release\nanomsg.lib copy marketmaker_depends\nanomsg\build_msvc_2015_win64\Release\nanomsg.lib OSlibs\win\x64\release\nanomsg.lib
copy marketmaker_depends\nanomsg\build_msvc_2015_win64\Release\nanomsg.exp OSlibs\win\x64\release\nanomsg.exp copy marketmaker_depends\nanomsg\build_msvc_2015_win64\Release\nanomsg.exp OSlibs\win\x64\release\nanomsg.exp
copy marketmaker_depends\nanomsg\build_msvc_2015_win64\Release\nanomsg.dll x64\Release\nanomsg.dll copy marketmaker_depends\nanomsg\build_msvc_2015_win64\Release\nanomsg.dll x64\Release\nanomsg.dll
rem --- curl --- rem --- curl ---
:compile_curl :compile_curl
if not exist marketmaker_depends\curl\build_msvc_2015_win64\lib\Release\libcurl_imp.lib (
if not exist marketmaker_depends\curl\build_msvc_2015_win64\lib\Release\libcurl_imp.exp (
if not exist marketmaker_depends\curl\build_msvc_2015_win64\lib\Release\libcurl.dll (
cd marketmaker_depends cd marketmaker_depends
git clone https://github.com/curl/curl git clone https://github.com/curl/curl
cd curl cd curl
@ -84,6 +93,9 @@ rem cmake --build . --config Release
rem cmake --build . --config Release --target libcurl rem cmake --build . --config Release --target libcurl
cd ../../.. cd ../../..
)
)
)
copy marketmaker_depends\curl\build_msvc_2015_win64\lib\Release\libcurl_imp.lib OSlibs\win\x64\release\libcurl.lib copy marketmaker_depends\curl\build_msvc_2015_win64\lib\Release\libcurl_imp.lib OSlibs\win\x64\release\libcurl.lib
copy marketmaker_depends\curl\build_msvc_2015_win64\lib\Release\libcurl_imp.exp OSlibs\win\x64\release\libcurl.exp copy marketmaker_depends\curl\build_msvc_2015_win64\lib\Release\libcurl_imp.exp OSlibs\win\x64\release\libcurl.exp
copy marketmaker_depends\curl\build_msvc_2015_win64\lib\Release\libcurl.dll x64\Release\libcurl.dll copy marketmaker_depends\curl\build_msvc_2015_win64\lib\Release\libcurl.dll x64\Release\libcurl.dll
Loading…
Cancel
Save