bundle_cryptopp.bat 1.0 KB

123456789101112131415161718192021222324
  1. REM packaging cryptopp
  2. if not exist package\cryptopp mkdir package\cryptopp
  3. if not exist package\cryptopp\%PLATFORM% mkdir package\cryptopp\%PLATFORM%
  4. if not exist package\cryptopp\%PLATFORM%\lib mkdir package\cryptopp\%PLATFORM%\lib
  5. if not exist package\cryptopp\%PLATFORM%\include mkdir package\cryptopp\%PLATFORM%\include
  6. if not exist package\cryptopp\%PLATFORM%\include\cryptopp mkdir package\cryptopp\%PLATFORM%\include\cryptopp
  7. cd package\cryptopp\%PLATFORM%
  8. if %PLATFORM% == Win32 (
  9. if %CONFIGURATION% == Release cmake -E copy ..\..\..\build\cryptopp\win\Release\LibCryptoPP.lib lib\cryptopp.lib
  10. if %CONFIGURATION% == Debug cmake -E copy ..\..\..\build\cryptopp\win\Debug\LibCryptoPP.lib lib\cryptoppd.lib
  11. )
  12. if %PLATFORM% == x64 (
  13. if %CONFIGURATION% == Release cmake -E copy ..\..\..\build\cryptopp\win\x64\Release\LibCryptoPP.lib lib\cryptopp.lib
  14. if %CONFIGURATION% == Debug cmake -E copy ..\..\..\build\cryptopp\win\x64\Debug\LibCryptoPP.lib lib\cryptoppd.lib
  15. )
  16. xcopy ..\..\..\build\cryptopp\*.h include\cryptopp /sy
  17. cd ..\..\..