gen.bat 464 B

1234567891011121314151617181920212223
  1. set qmake=C:\Qt\Qt5.13.2\5.13.2\mingw73_64\bin\qmake.exe
  2. set make=C:/Qt/Qt5.13.2/Tools/mingw730_64/bin/mingw32-make
  3. set shdir=%cd%
  4. cd ..
  5. cd ..
  6. set modulename=%2
  7. set rootdir=%cd%
  8. set prodir=%rootdir%\%1\%2
  9. cd %prodir%
  10. set profile=%2.pro
  11. %qmake% %profile%
  12. %make% -f Makefile.Release -j8
  13. cd release
  14. copy %modulename%.exe %rootdir%\bin
  15. cd ..
  16. del .qmake.stash
  17. del Makefile
  18. del Makefile.Debug
  19. del Makefile.Release
  20. del %2%_resource.rc
  21. rd debug
  22. rd /s /q release
  23. cd %shdir%