| 1 | :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
|---|
| 2 | ::
|
|---|
| 3 | :: Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|---|
| 4 | :: Contact: Qt Software Information (qt-info@nokia.com)
|
|---|
| 5 | ::
|
|---|
| 6 | :: This file is part of the tools applications of the Qt Toolkit.
|
|---|
| 7 | ::
|
|---|
| 8 | :: $QT_BEGIN_LICENSE:LGPL$
|
|---|
| 9 | :: Commercial Usage
|
|---|
| 10 | :: Licensees holding valid Qt Commercial licenses may use this file in
|
|---|
| 11 | :: accordance with the Qt Commercial License Agreement provided with the
|
|---|
| 12 | :: Software or, alternatively, in accordance with the terms contained in
|
|---|
| 13 | :: a written agreement between you and Nokia.
|
|---|
| 14 | ::
|
|---|
| 15 | :: GNU Lesser General Public License Usage
|
|---|
| 16 | :: Alternatively, this file may be used under the terms of the GNU Lesser
|
|---|
| 17 | :: General Public License version 2.1 as published by the Free Software
|
|---|
| 18 | :: Foundation and appearing in the file LICENSE.LGPL included in the
|
|---|
| 19 | :: packaging of this file. Please review the following information to
|
|---|
| 20 | :: ensure the GNU Lesser General Public License version 2.1 requirements
|
|---|
| 21 | :: will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
|---|
| 22 | ::
|
|---|
| 23 | :: In addition, as a special exception, Nokia gives you certain
|
|---|
| 24 | :: additional rights. These rights are described in the Nokia Qt LGPL
|
|---|
| 25 | :: Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
|
|---|
| 26 | :: package.
|
|---|
| 27 | ::
|
|---|
| 28 | :: GNU General Public License Usage
|
|---|
| 29 | :: Alternatively, this file may be used under the terms of the GNU
|
|---|
| 30 | :: General Public License version 3.0 as published by the Free Software
|
|---|
| 31 | :: Foundation and appearing in the file LICENSE.GPL included in the
|
|---|
| 32 | :: packaging of this file. Please review the following information to
|
|---|
| 33 | :: ensure the GNU General Public License version 3.0 requirements will be
|
|---|
| 34 | :: met: http://www.gnu.org/copyleft/gpl.html.
|
|---|
| 35 | ::
|
|---|
| 36 | :: If you are unsure which license is appropriate for your use, please
|
|---|
| 37 | :: contact the sales department at qt-sales@nokia.com.
|
|---|
| 38 | :: $QT_END_LICENSE$
|
|---|
| 39 | ::
|
|---|
| 40 | :: This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
|---|
| 41 | :: WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
|---|
| 42 | ::
|
|---|
| 43 | :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
|---|
| 44 | call :%1 %2
|
|---|
| 45 | goto END
|
|---|
| 46 |
|
|---|
| 47 | :setglobals
|
|---|
| 48 | set IWMAKE_PARSESECTION=1
|
|---|
| 49 | set IWMAKE_MINGWPATH=c:\MinGW\bin
|
|---|
| 50 | set IWMAKE_STARTDIR=%CD%
|
|---|
| 51 | set IWMAKE_NSISCONF=%IWMAKE_SCRIPTDIR%\nsis\config.nsh
|
|---|
| 52 | set IWMAKE_ROOT=c:\package
|
|---|
| 53 | set IWMAKE_OUTDIR=%IWMAKE_ROOT%
|
|---|
| 54 | set IWMAKE_SRCDIR=%IWMAKE_ROOT%
|
|---|
| 55 | set IWMAKE_EXTRACTDEST=%IWMAKE_ROOT%
|
|---|
| 56 | set IWMAKE_NSISPATH=%PROGRAMFILES%\NSIS
|
|---|
| 57 | call %IWMAKE_SCRIPTDIR%\batch\log.bat fileAbs "%IWMAKE_STARTDIR%\log.txt"
|
|---|
| 58 | goto :eof
|
|---|
| 59 |
|
|---|
| 60 | :signPath
|
|---|
| 61 | set IWMAKE_SIGNPATH=%~1
|
|---|
| 62 | goto :eof
|
|---|
| 63 |
|
|---|
| 64 | :wgetPath
|
|---|
| 65 | set IWMAKE_WGET=%~1
|
|---|
| 66 | goto :eof
|
|---|
| 67 |
|
|---|
| 68 | :wgetDir
|
|---|
| 69 | set IWMAKE_WGET=%IWMAKE_ROOT%\%~1
|
|---|
| 70 | goto :eof
|
|---|
| 71 |
|
|---|
| 72 | :NSISPath
|
|---|
| 73 | set IWMAKE_NSISPATH=%~1
|
|---|
| 74 | goto :eof
|
|---|
| 75 |
|
|---|
| 76 | :PerlPath
|
|---|
| 77 | set IWMAKE_PERLPATH=%~1
|
|---|
| 78 | goto :eof
|
|---|
| 79 |
|
|---|
| 80 | :MinGWPath
|
|---|
| 81 | set IWMAKE_MINGWPATH=%~1
|
|---|
| 82 | goto :eof
|
|---|
| 83 |
|
|---|
| 84 | :unzipApp
|
|---|
| 85 | set IWMAKE_UNZIPAPP=%~1
|
|---|
| 86 | goto :eof
|
|---|
| 87 |
|
|---|
| 88 | :releaseLocation
|
|---|
| 89 | set IWMAKE_WGETUSER=
|
|---|
| 90 | set IWMAKE_WGETPASS=
|
|---|
| 91 | for /F "tokens=1,2*" %%m in ("%~1") do set IWMAKE_TMP=%%~m& if not "%%~n"=="" set IWMAKE_TMP2=%%~n& if not "%%~o"=="" set IWMAKE_TMP3=%%~o
|
|---|
| 92 | if not "%IWMAKE_TMP2%"=="" set IWMAKE_WGETUSER=--http-user=%IWMAKE_TMP2%
|
|---|
| 93 | if not "%IWMAKE_TMP3%"=="" set IWMAKE_WGETPASS=--http-passwd=%IWMAKE_TMP3%
|
|---|
| 94 | set IWMAKE_RELEASELOCATION=%IWMAKE_TMP%
|
|---|
| 95 | goto :eof
|
|---|
| 96 |
|
|---|
| 97 | :removeglobals
|
|---|
| 98 | if not "%IWMAKE_OLD_PATH%"=="" call %IWMAKE_SCRIPTDIR%\batch\build.bat finish
|
|---|
| 99 | set IWMAKE_RELEASELOCATION=
|
|---|
| 100 | set IWMAKE_NSISPATH=
|
|---|
| 101 | set IWMAKE_SECTION=
|
|---|
| 102 | set IWMAKE_WGET=
|
|---|
| 103 | set IWMAKE_WGETUSER=
|
|---|
| 104 | set IWMAKE_WGETPASS=
|
|---|
| 105 | set IWMAKE_UNZIPAPP=
|
|---|
| 106 | set IWMAKE_MINGWPATH=
|
|---|
| 107 | set IWMAKE_MAKE=
|
|---|
| 108 | set IWMAKE_PERLPATH=
|
|---|
| 109 | set IWMAKE_STARTDIR=
|
|---|
| 110 | set IWMAKE_SCRIPTDIR=
|
|---|
| 111 | set IWMAKE_NSISCONF=
|
|---|
| 112 | set IWMAKE_RESULT=
|
|---|
| 113 | set IWMAKE_TMP=
|
|---|
| 114 | set IWMAKE_TMP2=
|
|---|
| 115 | set IWMAKE_TMP3=
|
|---|
| 116 | set IWMAKE_STATUS=
|
|---|
| 117 | set IWMAKE_LOGFILE=
|
|---|
| 118 | set IWMAKE_BUILD=
|
|---|
| 119 | set IWMAKE_ROOT=
|
|---|
| 120 | set IWMAKE_OUTDIR=
|
|---|
| 121 | set IWMAKE_EXTERNAL=
|
|---|
| 122 | set IWMAKE_OLD_PATH=
|
|---|
| 123 | set IWMAKE_OLD_QMAKESPEC=
|
|---|
| 124 | set IWMAKE_OLD_QTDIR=
|
|---|
| 125 | set IWMAKE_OLD_INCLUDE=
|
|---|
| 126 | set IWMAKE_OLD_LIB=
|
|---|
| 127 | set IWMAKE_COMPILER=
|
|---|
| 128 | set IWMAKE_SRCDIR=
|
|---|
| 129 | set IWMAKE_EXTRACTSRC=
|
|---|
| 130 | set IWMAKE_EXTRACTDEST=
|
|---|
| 131 | set IWMAKE_PARSESECTION=
|
|---|
| 132 | set IWMAKE_OUTPUT_FILE=
|
|---|
| 133 | set IWMAKE_SIGNPATH=
|
|---|
| 134 | goto :eof
|
|---|
| 135 |
|
|---|
| 136 | :root
|
|---|
| 137 | set IWMAKE_ROOT=%~1
|
|---|
| 138 | goto :eof
|
|---|
| 139 |
|
|---|
| 140 | :extroot
|
|---|
| 141 | set IWMAKE_EXTERNAL=%~1
|
|---|
| 142 | goto :eof
|
|---|
| 143 |
|
|---|
| 144 | :END
|
|---|