source: tspsg/src/3rdparty/qttoolbardialog-2.2_1-opensource/configure.bat @ 0007f69c46

0.1.3.145-beta1-symbian0.1.4.170-beta2-bb10appveyorimgbotreadme
Last change on this file since 0007f69c46 was 94cd045fad, checked in by Oleksii Serdiuk, 15 years ago

+ Started adding a toolbar customization with the ude of QtToolbarDialog? (http://qt.nokia.com/products/appdev/add-on-products/catalog/4/Widgets/qttoolbardialog/).

  • Property mode set to 100644
File size: 3.2 KB
RevLine 
[94cd045fad]1@echo off
2
3rem
4rem "Main"
5rem
6
7if not "%1"=="" (
8    if not "%1"=="-library" (
9        call :PrintUsage
10        goto EOF
11    )
12)
13
14rem only ask to accept the license text once
15if exist .licenseAccepted goto HandleArgs
16
17rem determine if free or commercial package
18set edition=commercial
19if exist LICENSE.LGPL. set edition=free
20
21if %edition%==free (
22    call :HandleFree
23) else (
24    call :RegionLoop
25    call :Comm
26)
27echo .
28
29if not exist .licenseAccepted (
30    echo You are not licensed to use this software.
31    goto EOF
32)
33
34:HandleArgs
35if exist config.pri. del config.pri
36if "%1"=="-library" (
37    echo Configuring to build this component as a dynamic library.
38    echo SOLUTIONS_LIBRARY = yes > config.pri
39)
40
41echo .
42echo This component is now configured.
43echo .
44echo To build the component library (if requested) and example(s),
45echo run qmake and your make or nmake command.
46echo .
47echo To remove or reconfigure, run make (nmake) distclean.
48echo .
49
50goto EOF
51
52rem
53rem "License acceptance loops"
54rem
55
56:RegionLoop
57    echo .
58    echo Please choose your region.
59    echo .
60    echo Type 1 for North or South America.
61    echo Type 2 for anywhere outside North and South America.
62    echo .
63    set /p region=Select:
64    if %region%==1 (
65        set licenseFile=LICENSE.US
66        goto EOF
67    )
68    if %region%==2 (
69        set licenseFile=LICENSE.NO
70        goto EOF
71    )
72goto RegionLoop
73
74:HandleFree
75    echo .
76    echo You are licensed to use this software under the terms of
77    echo the GNU General Public License (GPL) version 3, or
78    echo the GNU Lesser General Public License (LGPL) version 2.1
79    echo with certain additional extra rights as specified in the
80    echo Nokia Qt LGPL Exception version 1.1.
81    echo .
82    echo Type 'G' to view the GNU General Public License (GPL) version 3
83    echo Type 'L' to view the GNU Lesser General Public License (LGPL) version 2.1
84    echo Type 'E' to view the Nokia Qt LGPL Exception version 1.1.
85    echo Type 'yes' to accept this license offer.
86    echo Type 'no' to decline this license offer.
87    echo .
88    set /p answer=Do you accept the terms of this license?
89
90    if %answer%==no goto EOF
91    if %answer%==yes (
92         echo license accepted > .licenseAccepted
93         goto EOF
94    )
95    if %answer%==g more LICENSE.GPL3
96    if %answer%==G more LICENSE.GPL3
97    if %answer%==l more LICENSE.LGPL
98    if %answer%==L more LICENSE.LGPL
99    if %answer%==e more LGPL_EXCEPTION.txt
100    if %answer%==E more LGPL_EXCEPTION.txt
101goto HandleFree
102
103:Comm
104    echo .
105    echo License Agreement
106    echo .
107    echo Type '?' to view the Qt Solutions Commercial License.
108    echo Type 'yes' to accept this license offer.
109    echo Type 'no' to decline this license offer.
110    echo .
111    set /p answer=Do you accept the terms of this license?
112
113    if %answer%==no goto EOF
114    if %answer%==yes (
115         echo license accepted > .licenseAccepted
116         copy %licenseFile% LICENSE
117         del LICENSE.US
118         del LICENSE.NO
119         goto EOF
120    )
121    if %answer%==? more %licenseFile%
122goto Comm
123
124:PrintUsage
125echo Usage: configure.bat [-library]
126echo .
127echo -library: Build the component as a dynamic library (DLL). Default is to
128echo           include the component source directly in the application.
129echo           A DLL may be preferable for technical or licensing (LGPL) reasons.
130echo .
131goto EOF
132
133
134:EOF
Note: See TracBrowser for help on using the repository browser.