configure.bat 895 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. @echo off
  2. rem
  3. rem "Main"
  4. rem
  5. if not "%1"=="" (
  6. if not "%1"=="-library" (
  7. call :PrintUsage
  8. goto EOF
  9. )
  10. )
  11. if exist config.pri. del config.pri
  12. if "%1"=="-library" (
  13. echo Configuring to build this component as a dynamic library.
  14. echo SOLUTIONS_LIBRARY = yes > config.pri
  15. )
  16. echo .
  17. echo This component is now configured.
  18. echo .
  19. echo To build the component library (if requested) and example(s),
  20. echo run qmake and your make or nmake command.
  21. echo .
  22. echo To remove or reconfigure, run make (nmake) distclean.
  23. echo .
  24. :PrintUsage
  25. echo Usage: configure.bat [-library]
  26. echo .
  27. echo -library: Build the component as a dynamic library (DLL). Default is to
  28. echo include the component source directly in the application.
  29. echo A DLL may be preferable for technical or licensing (LGPL) reasons.
  30. echo .
  31. goto EOF
  32. :EOF