bundle_curl.bat 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. REM packaging curl
  2. if not exist package\curl mkdir package\curl
  3. if not exist package\curl\%PLATFORM% mkdir package\curl\%PLATFORM%
  4. if not exist package\curl\%PLATFORM%\lib mkdir package\curl\%PLATFORM%\lib
  5. if not exist package\curl\%PLATFORM%\bin mkdir package\curl\%PLATFORM%\bin
  6. if not exist package\curl\%PLATFORM%\include mkdir package\curl\%PLATFORM%\include
  7. if not exist package\curl\%PLATFORM%\include\curl mkdir package\curl\%PLATFORM%\include\curl
  8. cd package\curl\%PLATFORM%
  9. if %PLATFORM% == Win32 (
  10. if %CONFIGURATION% == Release (
  11. cmake -E copy ..\..\..\build\curl\build\lib\Release\libcurl.dll bin\libcurl.dll
  12. cmake -E copy ..\..\..\build\curl\build\lib\Release\libcurl_imp.exp lib\libcurl.exp
  13. cmake -E copy ..\..\..\build\curl\build\lib\Release\libcurl_imp.lib lib\libcurl.lib
  14. )
  15. if %CONFIGURATION% == Debug (
  16. cmake -E copy ..\..\..\build\curl\build\lib\Debug\libcurl.dll bin\libcurld.dll
  17. cmake -E copy ..\..\..\build\curl\build\lib\Debug\libcurl.ilk lib\libcurld.ilk
  18. cmake -E copy ..\..\..\build\curl\build\lib\Debug\libcurl.pdb lib\libcurld.pdb
  19. cmake -E copy ..\..\..\build\curl\build\lib\Debug\libcurl_imp.exp lib\libcurld.exp
  20. cmake -E copy ..\..\..\build\curl\build\lib\Debug\libcurl_imp.lib lib\libcurld.lib
  21. )
  22. cmake -E copy ..\..\..\build\curl\build\include\curl\curlbuild.h include\curl\curlbuild.h
  23. )
  24. if %PLATFORM% == x64 (
  25. if %CONFIGURATION% == Release (
  26. cmake -E copy ..\..\..\build\curl\build64\lib\Release\libcurl.dll bin\libcurl.dll
  27. cmake -E copy ..\..\..\build\curl\build64\lib\Release\libcurl_imp.exp lib\libcurl.exp
  28. cmake -E copy ..\..\..\build\curl\build64\lib\Release\libcurl_imp.lib lib\libcurl.lib
  29. )
  30. if %CONFIGURATION% == Debug (
  31. cmake -E copy ..\..\..\build\curl\build64\lib\Debug\libcurl.dll bin\libcurld.dll
  32. cmake -E copy ..\..\..\build\curl\build64\lib\Debug\libcurl.ilk lib\libcurld.ilk
  33. cmake -E copy ..\..\..\build\curl\build64\lib\Debug\libcurl.pdb lib\libcurld.pdb
  34. cmake -E copy ..\..\..\build\curl\build64\lib\Debug\libcurl_imp.exp lib\libcurld.exp
  35. cmake -E copy ..\..\..\build\curl\build64\lib\Debug\libcurl_imp.lib lib\libcurld.lib
  36. )
  37. cmake -E copy ..\..\..\build\curl\build64\include\curl\curlbuild.h include\curl\curlbuild.h
  38. )
  39. cmake -E copy_directory ..\..\..\build\curl\include\curl include\curl
  40. cd ..\..\..