build_miniupnpc.bat 718 B

123456789101112131415161718192021
  1. REM clone miniupnpc
  2. if not exist build\miniupnpc git clone -q https://github.com/debris/miniupnp build\miniupnpc
  3. cd build\miniupnpc\miniupnpc
  4. git checkout -qf 5459ab79cb5ba8f78e76daf698b70bc76ffef6f1
  5. REM create miniupnpc build dirs
  6. if %PLATFORM% == Win32 if not exist build mkdir build
  7. if %PLATFORM% == Win32 cd build
  8. if %PLATFORM% == x64 if not exist build64 mkdir build64
  9. if %PLATFORM% == x64 cd build64
  10. REM run miniupnpc cmake
  11. if %PLATFORM% == Win32 cmake ..
  12. if %PLATFORM% == x64 cmake -G "Visual Studio 14 2015 Win64" ..
  13. REM build miniupnpc
  14. %MSBuild% miniupnpc.sln /property:Configuration=%CONFIGURATION% /property:Platform=%PLATFORM% /target:upnpc-static /verbosity:minimal
  15. REM miniupnpc built
  16. cd ..\..\..\..