bundle_leveldb.bat 933 B

123456789101112131415161718192021
  1. REM packaging leveldb
  2. if not exist package\leveldb mkdir package\leveldb
  3. if not exist package\leveldb\%PLATFORM% mkdir package\leveldb\%PLATFORM%
  4. if not exist package\leveldb\%PLATFORM%lib\ mkdir package\leveldb\%PLATFORM%\lib
  5. if not exist package\leveldb\%PLATFORM%\include mkdir package\leveldb\%PLATFORM%\include
  6. cd package\leveldb\%PLATFORM%
  7. if %PLATFORM% == Win32 (
  8. if %CONFIGURATION% == Release cmake -E copy ..\..\..\build\leveldb\win\Release\LibLevelDB.lib lib\leveldb.lib
  9. if %CONFIGURATION% == Debug cmake -E copy ..\..\..\build\leveldb\win\Debug\LibLevelDB.lib lib\leveldbd.lib
  10. )
  11. if %PLATFORM% == x64 (
  12. if %CONFIGURATION% == Release cmake -E copy ..\..\..\build\leveldb\win\x64\Release\LevelDB64.lib lib\leveldb.lib
  13. if %CONFIGURATION% == Debug cmake -E copy ..\..\..\build\leveldb\win\x64\Debug\LevelDB64.lib lib\leveldbd.lib
  14. )
  15. cmake -E copy_directory ..\..\..\build\leveldb\include include
  16. cd ..\..\..