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 | #extracts the package to buildDir
|
---|
45 |
|
---|
46 | #extract dest "build_mingw_opensource"
|
---|
47 | #Section EXTRACT
|
---|
48 | #extract extUnpack "qt-win-opensource-src-4.5.1.zip"
|
---|
49 | #SectionEnd
|
---|
50 |
|
---|
51 | #build the binaries
|
---|
52 | #build begin mingw "build_mingw_opensource"
|
---|
53 |
|
---|
54 | #Section CONFIGURE
|
---|
55 | #build configure "-confirm-license -release -plugin-sql-sqlite -qt-libpng -qt-libjpeg"
|
---|
56 | #SectionEnd
|
---|
57 |
|
---|
58 | #Section BUILD
|
---|
59 | #build bin
|
---|
60 | #SectionEnd
|
---|
61 |
|
---|
62 | #build finish
|
---|
63 |
|
---|
64 | # organize release files
|
---|
65 | #Section ORGANIZE
|
---|
66 | #delete dir "release_mingw_opensource"
|
---|
67 |
|
---|
68 | #copy dest "release_mingw_opensource"
|
---|
69 | #copy src "build_mingw_opensource"
|
---|
70 |
|
---|
71 | # extract everything once more
|
---|
72 | #extract dest "release_mingw_opensource"
|
---|
73 | #extract unpack "qt-win-opensource-src-4.4.3.zip"
|
---|
74 |
|
---|
75 | # qconfig.h
|
---|
76 | #copy file "src\corelib\global\qconfig.h"
|
---|
77 | #copy file "include\QtCore\qconfig.h"
|
---|
78 | #copy file "include\Qt\qconfig.h"
|
---|
79 |
|
---|
80 | # qconfig.pri
|
---|
81 | #copy file "mkspecs\qconfig.pri"
|
---|
82 |
|
---|
83 | # .qmake.cache
|
---|
84 | #copy file ".qmake.cache"
|
---|
85 |
|
---|
86 | # default mkspec
|
---|
87 | #copy files "mkspecs\default\*" "mkspecs\default\"
|
---|
88 |
|
---|
89 | # copy all binary files
|
---|
90 | #copy all "*.a"
|
---|
91 | #copy all "*.exe"
|
---|
92 | #copy all "*.dll"
|
---|
93 |
|
---|
94 | # .prl files
|
---|
95 | #copy files "lib\*.prl" "lib\"
|
---|
96 |
|
---|
97 | # remove unused stuff
|
---|
98 | #delete files "lib\*.dll"
|
---|
99 |
|
---|
100 | # copy InetLoad license info
|
---|
101 | #copy files "..\INetLoad\Readme.txt" "src\3rdparty\InetLoad\"
|
---|
102 |
|
---|
103 | #SectionEnd
|
---|
104 |
|
---|
105 | Section NSIS
|
---|
106 | # general installer options
|
---|
107 | installer begin "Qt OpenSource"
|
---|
108 | installer version "4.4.3"
|
---|
109 | installer output "c:\iwmake\qt-win-opensource-4.4.3-mingw.exe"
|
---|
110 | installer startmenu "Qt by Nokia v4.4.3 (OpenSource)"
|
---|
111 | installer enable component_page
|
---|
112 | installer enable directory_page
|
---|
113 | installer enable startmenu_page
|
---|
114 | installer instdir mingw 0 "Qt Installation Directory"
|
---|
115 | installer licenseFile "%IWMAKE_ROOT%\release_mingw_opensource\LICENSE.GPL"
|
---|
116 | #installer licenseFile "%IWMAKE_ROOT%\release_mingw_opensource\LICENSE.PREVIEW.OPENSOURCE"
|
---|
117 |
|
---|
118 | installer runfunction "Run Examples and Demos"
|
---|
119 | installer readmefunction "Show Documentation"
|
---|
120 |
|
---|
121 | installer module registeruiext
|
---|
122 | installer module opensource
|
---|
123 |
|
---|
124 | # mingw options
|
---|
125 | installer module mingw
|
---|
126 | installer src mingw "release_mingw_opensource"
|
---|
127 | installer makeFileList mingw "release_mingw_opensource"
|
---|
128 | installer buildDir mingw "build_mingw_opensource"
|
---|
129 | installer enable nodirlengthcheck
|
---|
130 |
|
---|
131 | # public generatable package
|
---|
132 | installer openpackage
|
---|
133 |
|
---|
134 | SectionEnd
|
---|
135 |
|
---|
136 | # compile the package
|
---|
137 | Section NSIS_COMPILE
|
---|
138 | installer compile
|
---|
139 | SectionEnd
|
---|