Skip to content

Commit

Permalink
cryptopp
Browse files Browse the repository at this point in the history
  • Loading branch information
debris committed Apr 13, 2015
1 parent 4877c75 commit b94f52e
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 0 deletions.
11 changes: 11 additions & 0 deletions build_cryptopp.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
REM clone cryptopp
if not exist build\cryptopp git clone -q https://github.com/debris/cryptopp build\cryptopp
cd build\cryptopp\win
git checkout -qf 5e1491aed4264cbb847ef493cd0e6cfff7f052bb

REM build cryptopp
%MSBuild% LibLevelDB.sln /property:Configuration=%CONFIGURATION% /property:Platform=%PLATFORM% /verbosity:minimal

REM cryptopp built
cd ..\..\..

20 changes: 20 additions & 0 deletions bundle_cryptopp.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
REM packaging cryptopp
if not exist package\cryptopp mkdir package\cryptopp
if not exist package\cryptopp\lib mkdir package\cryptopp\lib
if not exist package\cryptopp\include mkdir package\cryptopp\include

cd package\cryptopp

if %PLATFORM% == Win32 (
if %CONFIGURATION% == Release cmake -E copy ..\..\build\cryptopp\win\Release\LibCryptopPP.lib lib\cryptopp.lib
if %CONFIGURATION% == Debug cmake -E copy ..\..\build\cryptopp\win\Debug\LibCryptopPP.lib lib\cryptoppd.lib
)

if %PLATFORM% == x64 (
if %CONFIGURATION% == Release cmake -E copy ..\..\build\cryptopp\win\x64\Release\LibCryptopPP.lib lib\cryptopp_x64.lib
if %CONFIGURATION% == Debug cmake -E copy ..\..\build\cryptopp\win\x64\Debug\LibCryptopPP.lib lib\cryptoppd_x64.lib
)

cmake -E copy_directory ..\..\build\cryptopp\include include
cd ..\..

10 changes: 10 additions & 0 deletions install_cryptopp.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
REM installing cryptopp
cmake -E copy_directory package\cryptopp install

REM zipping cryptopp
cd package
if exist cryptopp-5.6.2 cmake -E remove_directory cryptopp-5.6.2
cmake -E rename cryptopp cryptopp-5.6.2
tar -zcvf cryptopp-5.6.2.tar.gz cryptopp-5.6.2
cd ..

6 changes: 6 additions & 0 deletions main.bat
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ set PLATFORM=x64 & set CONFIGURATION=Debug & call build_leveldb.bat & ca
set PLATFORM=x64 & set CONFIGURATION=Release & call build_leveldb.bat & call bundle_leveldb.bat goto :error
call install_leveldb.bat || goto :error

set PLATFORM=Win32 & set CONFIGURATION=Debug & call build_cryptopp.bat & call bundle_cryptopp.bat goto :error
set PLATFORM=Win32 & set CONFIGURATION=Release & call build_cryptopp.bat & call bundle_cryptopp.bat goto :error
set PLATFORM=x64 & set CONFIGURATION=Debug & call build_cryptopp.bat & call bundle_cryptopp.bat goto :error
set PLATFORM=x64 & set CONFIGURATION=Release & call build_cryptopp.bat & call bundle_cryptopp.bat goto :error
call install_cryptopp.bat || goto :error

goto :EOF

:error
Expand Down

0 comments on commit b94f52e

Please sign in to comment.