build_jsoncpp.bat 692 B

123456789101112131415161718192021
  1. REM clone jsoncpp
  2. if not exist build\jsoncpp git clone -q https://github.com/debris/jsoncpp build\jsoncpp
  3. cd build\jsoncpp
  4. git checkout -qf 24c0054c10e62e8359c0f96372dfa183de90f93c
  5. REM create jsoncpp build dirs
  6. if %PLATFORM% == Win32 if not exist build mkdir build
  7. if %PLATFORM% == Win32 cd build
  8. if %PLATFORM% == x64 if not exist build64 mkdir build64
  9. if %PLATFORM% == x64 cd build64
  10. REM run jsoncpp cmake
  11. if %PLATFORM% == Win32 cmake ..
  12. if %PLATFORM% == x64 cmake -G "Visual Studio 14 2015 Win64" ..
  13. REM build jsoncpp
  14. %MSBuild% jsoncpp.sln /property:Configuration=%CONFIGURATION% /property:Platform=%PLATFORM% /target:jsoncpp_lib_static /verbosity:minimal
  15. REM jsoncpp built
  16. cd ..\..\..