genlib.bat 516 B

12345678910111213141516171819202122232425
  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. echo %profile%
  12. %qmake% %profile%
  13. %make% -f Makefile.Release -j8
  14. cd release
  15. copy lib%modulename%.a %rootdir%\bin
  16. copy %modulename%.dll %rootdir%\bin
  17. cd ..
  18. del .qmake.stash
  19. del Makefile
  20. del Makefile.Debug
  21. del Makefile.Release
  22. del %2%_resource.rc
  23. rd debug
  24. rd /s /q release
  25. cd %shdir%