bundle_jsoncpp.bat 1.1 KB

123456789101112131415161718192021222324
  1. REM packaging jsoncpp
  2. if not exist package\jsoncpp mkdir package\jsoncpp
  3. if not exist package\jsoncpp\%PLATFORM% mkdir package\jsoncpp\%PLATFORM%
  4. if not exist package\jsoncpp\%PLATFORM%\lib mkdir package\jsoncpp\%PLATFORM%\lib
  5. if not exist package\jsoncpp\%PLATFORM%\include mkdir package\jsoncpp\%PLATFORM%\include
  6. if not exist package\jsoncpp\%PLATFORM%\include\json mkdir package\jsoncpp\%PLATFORM%\include\json
  7. cd package\jsoncpp\%PLATFORM%
  8. if %PLATFORM% == Win32 (
  9. if %CONFIGURATION% == Release cmake -E copy ..\..\..\build\jsoncpp\build\src\lib_json\Release\jsoncpp.lib lib\jsoncpp.lib
  10. if %CONFIGURATION% == Debug cmake -E copy ..\..\..\build\jsoncpp\build\src\lib_json\Debug\jsoncpp.lib lib\jsoncppd.lib
  11. )
  12. if %PLATFORM% == x64 (
  13. if %CONFIGURATION% == Release cmake -E copy ..\..\..\build\jsoncpp\build64\src\lib_json\Release\jsoncpp.lib lib\jsoncpp.lib
  14. if %CONFIGURATION% == Debug cmake -E copy ..\..\..\build\jsoncpp\build64\src\lib_json\Debug\jsoncpp.lib lib\jsoncppd.lib
  15. )
  16. cmake -E copy_directory ..\..\..\build\jsoncpp\include\json include\json
  17. cd ..\..\..