build_jsonrpccpp.bat 1.0 KB

1234567891011121314151617181920212223
  1. set MAINDIR="%cd%"
  2. REM clone jsonrpccpp
  3. if not exist build\jsonrpccpp git clone -q https://github.com/debris/libjson-rpc-cpp build\jsonrpccpp
  4. cd build\jsonrpccpp
  5. git checkout -qf fb5cde7cb677fd14f916cda04b28f45461bfc9e2
  6. REM create jsonrpccpp build dirs
  7. if %PLATFORM% == Win32 if not exist build mkdir build
  8. if %PLATFORM% == Win32 cd build
  9. if %PLATFORM% == x64 if not exist build64 mkdir build64
  10. if %PLATFORM% == x64 cd build64
  11. REM run jsonrpccpp cmake
  12. if %PLATFORM% == Win32 cmake -DCMAKE_PREFIX_PATH="%MAINDIR%\install\Win32" -DCOMPILE_STUBGEN=NO -DCOMPILE_TESTS=NO ..
  13. if %PLATFORM% == x64 cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_PREFIX_PATH="%MAINDIR%\install\x64" -DCOMPILE_STUBGEN=NO -DCOMPILE_TESTS=NO ..
  14. REM build jsonrpccpp
  15. %MSBuild% libjson-rpc-cpp.sln /property:Configuration=%CONFIGURATION% /property:Platform=%PLATFORM% /target:jsonrpcclientStatic /verbosity:minimal
  16. %MSBuild% libjson-rpc-cpp.sln /property:Configuration=%CONFIGURATION% /property:Platform=%PLATFORM% /target:jsonrpcserverStatic /verbosity:minimal
  17. REM jsonrpcpp built
  18. cd ..\..\..