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