summaryrefslogtreecommitdiffstats
path: root/util/scripts/win-binary/config/vs2003-eval.conf
blob: d139fc90ddf3feb84c8e80dd15e3a825f9320075 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
#extracts the package to buildDir
extract     dest               "build_vs2003_evaluation_________________PADDING_________________"
Section EXTRACT
extract     extUnpack          "qt-win-commercial-src-%QT_VERSION%.zip"
extract     extPatch           "qt-win-evalpatches-src-%QT_VERSION%.zip"
#delete line with "activeqt" in examples.pro file (don't build this)
delete      line               "build_vs2003_evaluation_________________PADDING_________________\examples\examples.pro"  "activeqt"
SectionEnd

Section GETFILES
copy        extsync            debugext
SectionEnd

#build the binaries
build       begin              vs2003    "build_vs2003_evaluation_________________PADDING_________________"

Section CONFIGURE
build       configure          "-confirm-license -plugin-sql-sqlite -plugin-sql-odbc -qt-libpng -qt-libjpeg -openssl -D QT_EVAL"
SectionEnd

Section BUILD
build       bin                sub-src
build       binInDir           "tools"
build       binInDir           "demos"                          release
build       binInDir           "examples"                       release
build		dbPlugins
SectionEnd

build       finish

# organize release files
Section ORGANIZE
delete      dir                "release_vs2003_evaluation"

copy        dest               "release_vs2003_evaluation"
copy        src                "build_vs2003_evaluation_________________PADDING_________________"

# extract everything once more
extract     dest               "release_vs2003_evaluation"
extract     unpack             "qt-win-commercial-src-%QT_VERSION%.zip"

# create header files
copy        syncqt

delete      destDir            "src"
delete      destDir            "tools"
delete      destDir            "qmake"

# phrasebooks & porting .xml file
copy        files              "tools\linguist\phrasebooks\*.qph"         "phrasebooks\"
copy        files              "tools\porting\src\*.xml"                  ""

# copying program database files
copy        files              "lib\*.pdb"             "bin\"
copy        files              "src\winmain\*.pdb"     "src\winmain\"

# qconfig.h
copy        files              "src\corelib\global\qconfig.h"             "include\Qt\"

# qconfig.pri
copy        file               "mkspecs\qconfig.pri"

# .qmake.cache
copy        file               ".qmake.cache"

# default mkspec
copy        files              "mkspecs\default\*"     "mkspecs\default\"

# copy all binary files
copy        all                "*.lib"
copy        all                "*.exe"
copy        all                "*.dll"

# .prl files
copy        files              "lib\*.prl"     "lib\"

# assistant help files
copy        all                "*.qch"

# remove unused stuff
delete      files              "lib\*.dll"
delete      file               "configure.exe"

# copy some activeqt stuff needed to compile examples
copy        file               "src\activeqt\control\qaxserver.rc"
copy        file               "src\activeqt\control\qaxserver.ico"
copy        file               "src\activeqt\control\qaxserver.def"
SectionEnd

Section NSIS
# general installer options
installer   begin              "Qt Evaluation"
installer   version            "%QT_VERSION%"
installer   output             "c:\iwmake\qt-win-eval-%QT_VERSION%-vs2003.exe"
installer   startmenu          "Qt by Nokia v%QT_VERSION% (Eval. VS2003)"

installer   enable             component_page
installer   enable             directory_page
installer   enable             startmenu_page

installer   instdir            msvc     0     "Qt v%QT_VERSION%:"

installer   runfunction        "Run Examples and Demos"
installer   readmefunction     "Show Documentation"

# license checking
installer   module             licensecheck
installer   defineDir          licensecheck    licenseDir   "release_vs2003_evaluation"
installer   define             licensecheck    productlist  "UnsupportedEvaluation|SupportedEvaluation|FullSourceEvaluation"

installer   module             evaluation
installer   module             registeruiext

# msvc options
installer   module             msvc
installer   src                msvc     "release_vs2003_evaluation"
installer   makeFileList       msvc     "release_vs2003_evaluation"
installer   buildDir           msvc     "build_vs2003_evaluation_________________PADDING_________________"
installer   define             msvc     vs2003

# compile the package
installer   compile
installer   sign
SectionEnd