build_curl.bat 651 B

123456789101112131415161718192021
  1. REM clone curl
  2. if not exist build\curl git clone -q https://github.com/debris/curl build\curl
  3. cd build\curl
  4. git checkout -qf 139141f8d73eb5820a64b100485572a263f4156b
  5. REM create curl 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 curl cmake
  11. if %PLATFORM% == Win32 cmake ..
  12. if %PLATFORM% == x64 cmake -G "Visual Studio 14 2015 Win64" ..
  13. REM build curl
  14. %MSBuild% CURL.sln /property:Configuration=%CONFIGURATION% /property:Platform=%PLATFORM% /target:libcurl /verbosity:minimal
  15. REM curl built
  16. cd ..\..\..