bundle_miniupnpc.bat 1.1 KB

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