summaryrefslogtreecommitdiffstats
path: root/util/install/win/win.pro
blob: 470fa03516363ccbd170d2dc4ebb9fb7e67def30 (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
125
126
127
128
129
130
131
132
133
134
135
136
TEMPLATE	= app
CONFIG		+= windows qt

HEADERS		= globalinformation.h \
		  setupwizardimpl.h \
		  environment.h \
		  shell.h \
		  resource.h \
		  dialogs/folderdlgimpl.h \
		  pages/pages.h \
		  pages/sidedecorationimpl.h

SOURCES		= main.cpp \
		  globalinformation.cpp \
		  setupwizardimpl.cpp \
		  setupwizardimpl_config.cpp \
		  environment.cpp \
		  shell.cpp \
		  resource.cpp \
		  dialogs/folderdlgimpl.cpp \
		  pages/pages.cpp \
		  pages/sidedecorationimpl.cpp

INTERFACES	= dialogs/folderdlg.ui \
		  pages/buildpage.ui \
		  pages/configpage.ui \
		  pages/finishpage.ui \
		  pages/folderspage.ui \
		  pages/licenseagreementpage.ui \
		  pages/licensepage.ui \
		  pages/optionspage.ui \
		  pages/progresspage.ui \
		  pages/sidedecoration.ui \
		  pages/winintropage.ui

win32 {
    SOURCES += archive.cpp
    HEADERS += archive.h
}

TARGET		= install
DESTDIR		= ../../../dist/win
INCLUDEPATH	+= $$QT_SOURCE_TREE/src/3rdparty $$QT_SOURCE_TREE/util/install/archive

win32:RC_FILE	= install.rc

# Comment out one of the following lines to build the installer for:
#
#  - a Qt/Windows evaluation version (eval),
#  - a Qt/Windows evaluation version that can be burned on CD and
#    distributed on tradeshows (eval-cd)
#  - the QSA evaluation version (qsa)
#  - educational version (edu)
#  - non-commercial version (noncommercial)
#
#CONFIG += eval
#CONFIG += eval-cd
#CONFIG += qsa
#CONFIG += edu
#CONFIG += noncommercial


unix:LIBS		+= -L$$QT_BUILD_TREE/util/install/archive -larq
win32:LIBS		+= ../archive/arq.lib
INCLUDEPATH		+= ../keygen

# We have the following dependencies on config:
#
#  qsa           -> eval
#  eval-cd       -> eval
#  eval          -> (none)
#  edu           -> (none)
#  noncommercial -> (none)
#
# For the code this means that the following defines are defined:
#
# eval         : EVAL
# eval-cd      : EVAL, EVAL_CD
# qsa          : EVAL, QSA
# edu          : EDU
# noncommercial: NON_COMMERCIAL
#

qsa {
    CONFIG += eval
    DEFINES		+= QSA
}

eval-cd {
    CONFIG += eval
    DEFINES		+= EVAL_CD
}

eval {
    !exists($(QTEVAL)/src) {
	error(You must set the QTEVAL environment variable to the directory where you checked out //depot/qteval/main in order to be able to build the evaluation version of install.)
    }
    DEFINES		+= EVAL
    qsa {
	win32:RC_FILE	= install-qsa.rc
    } else {
	win32:RC_FILE	= install-eval.rc
    }
    mac:RC_FILE = ../../../tools/designer/app/designer.icns
    SOURCES		+= $(QTEVAL)/src/check-and-patch.cpp
    INCLUDEPATH		+= $(QTEVAL)/src
    DESTDIR		= ../../../bin
}

edu {
    !exists($(QTEVAL)/src) {
	error(You must set the QTEVAL environment variable to the directory where you checked out //depot/qteval/main in order to be able to build the evaluation version of install.)
    }
    DEFINES		+= EDU
    win32:RC_FILE	= install-edu.rc
    SOURCES		+= $(QTEVAL)/src/check-and-patch.cpp
    INCLUDEPATH		+= $(QTEVAL)/src
    DESTDIR		= ../../../bin
}

noncommercial {
    !exists($(QTEVAL)/src) {
	error(You must set the QTEVAL environment variable to the directory where you checked out //depot/qteval/main in order to be able to build the evaluation version of install.)
    }
    DEFINES		+= NON_COMMERCIAL
    win32:RC_FILE	= install-noncommercial.rc
    SOURCES		+= $(QTEVAL)/src/check-and-patch.cpp
    INCLUDEPATH		+= $(QTEVAL)/src
    DESTDIR		= ../../../bin
}

mystaticconfig {
    QMAKE_LIBS_QT =
    QMAKE_LIBS_QT_THREAD =
    LIBS += ../../../lib/libqt-mt.a -lz -framework Carbon
}