utils-lib.pri 7.76 KB
Newer Older
Marco Bubke's avatar
Marco Bubke committed
1
shared {
2
    DEFINES += UTILS_LIBRARY
3
4
5
} else {
    DEFINES += QTCREATOR_UTILS_STATIC_LIB
}
6

7
8
9
10
11
12
13
14
15
!win32:{
    isEmpty(IDE_LIBEXEC_PATH) | isEmpty(IDE_BIN_PATH): {
        warning("using utils-lib.pri without IDE_LIBEXEC_PATH or IDE_BIN_PATH results in empty QTC_REL_TOOLS_PATH")
        DEFINES += QTC_REL_TOOLS_PATH=$$shell_quote(\"\")
    } else {
        DEFINES += QTC_REL_TOOLS_PATH=$$shell_quote(\"$$relative_path($$IDE_LIBEXEC_PATH, $$IDE_BIN_PATH)\")
    }
}

Tim Jenssen's avatar
Tim Jenssen committed
16
QT += widgets gui network qml
17

18
19
CONFIG += exceptions # used by portlist.cpp, textfileformat.cpp, and ssh/*

20
21
22
23
win32: LIBS += -luser32 -lshell32
# PortsGatherer
win32: LIBS += -liphlpapi -lws2_32

24
25
26
SOURCES += \
    $$PWD/benchmarker.cpp \
    $$PWD/environment.cpp \
27
    $$PWD/environmentmodel.cpp \
28
    $$PWD/environmentdialog.cpp \
Oswald Buddenhagen's avatar
Oswald Buddenhagen committed
29
    $$PWD/qtcprocess.cpp \
30
    $$PWD/reloadpromptutils.cpp \
31
    $$PWD/settingsaccessor.cpp \
Tobias Hunger's avatar
Tobias Hunger committed
32
    $$PWD/shellcommand.cpp \
33
    $$PWD/shellcommandpage.cpp \
34
    $$PWD/settingsselector.cpp \
35
    $$PWD/stringutils.cpp \
36
    $$PWD/templateengine.cpp \
37
38
    $$PWD/temporarydirectory.cpp \
    $$PWD/temporaryfile.cpp \
39
40
    $$PWD/textfieldcheckbox.cpp \
    $$PWD/textfieldcombobox.cpp \
41
42
43
44
    $$PWD/filesearch.cpp \
    $$PWD/pathchooser.cpp \
    $$PWD/pathlisteditor.cpp \
    $$PWD/wizard.cpp \
45
    $$PWD/wizardpage.cpp \
46
    $$PWD/filewizardpage.cpp \
47
    $$PWD/filesystemwatcher.cpp \
48
49
50
51
52
53
54
55
56
    $$PWD/projectintropage.cpp \
    $$PWD/filenamevalidatinglineedit.cpp \
    $$PWD/codegeneration.cpp \
    $$PWD/newclasswidget.cpp \
    $$PWD/classnamevalidatinglineedit.cpp \
    $$PWD/fancylineedit.cpp \
    $$PWD/qtcolorbutton.cpp \
    $$PWD/savedaction.cpp \
    $$PWD/synchronousprocess.cpp \
57
    $$PWD/savefile.cpp \
58
    $$PWD/fileutils.cpp \
59
    $$PWD/textfileformat.cpp \
60
61
62
    $$PWD/consoleprocess.cpp \
    $$PWD/uncommentselection.cpp \
    $$PWD/parameteraction.cpp \
63
    $$PWD/headerviewstretcher.cpp \
64
65
66
67
68
69
70
71
72
73
    $$PWD/checkablemessagebox.cpp \
    $$PWD/styledbar.cpp \
    $$PWD/stylehelper.cpp \
    $$PWD/fancymainwindow.cpp \
    $$PWD/detailsbutton.cpp \
    $$PWD/detailswidget.cpp \
    $$PWD/changeset.cpp \
    $$PWD/faketooltip.cpp \
    $$PWD/htmldocextractor.cpp \
    $$PWD/navigationtreeview.cpp \
74
    $$PWD/crumblepath.cpp \
75
    $$PWD/historycompleter.cpp \
76
    $$PWD/buildablehelperlibrary.cpp \
77
    $$PWD/annotateditemdelegate.cpp \
78
    $$PWD/fileinprojectfinder.cpp \
79
    $$PWD/statuslabel.cpp \
80
    $$PWD/outputformatter.cpp \
81
    $$PWD/flowlayout.cpp \
Jarek Kobus's avatar
Jarek Kobus committed
82
    $$PWD/networkaccessmanager.cpp \
83
    $$PWD/persistentsettings.cpp \
Leandro Melo's avatar
Leandro Melo committed
84
    $$PWD/completingtextedit.cpp \
Kai Koehne's avatar
Kai Koehne committed
85
    $$PWD/json.cpp \
Kai Koehne's avatar
Kai Koehne committed
86
    $$PWD/portlist.cpp \
87
    $$PWD/processhandle.cpp \
88
    $$PWD/appmainwindow.cpp \
89
    $$PWD/basetreeview.cpp \
90
    $$PWD/qtcassert.cpp \
91
    $$PWD/elfreader.cpp \
92
93
    $$PWD/proxyaction.cpp \
    $$PWD/elidinglabel.cpp \
94
    $$PWD/hostosinfo.cpp \
95
96
    $$PWD/tooltip/tooltip.cpp \
    $$PWD/tooltip/tips.cpp \
97
    $$PWD/unixutils.cpp \
Orgad Shaneh's avatar
Orgad Shaneh committed
98
    $$PWD/ansiescapecodehandler.cpp \
99
    $$PWD/execmenu.cpp \
hjk's avatar
hjk committed
100
    $$PWD/completinglineedit.cpp \
101
    $$PWD/winutils.cpp \
Daniel Teske's avatar
Daniel Teske committed
102
    $$PWD/itemviews.cpp \
hjk's avatar
hjk committed
103
    $$PWD/treemodel.cpp \
Kai Koehne's avatar
Kai Koehne committed
104
    $$PWD/treeviewcombobox.cpp \
105
    $$PWD/proxycredentialsdialog.cpp \
106
    $$PWD/macroexpander.cpp \
107
    $$PWD/theme/theme.cpp \
108
    $$PWD/progressindicator.cpp \
109
    $$PWD/fadingindicator.cpp \
110
    $$PWD/overridecursor.cpp \
111
    $$PWD/categorysortfiltermodel.cpp \
112
    $$PWD/dropsupport.cpp \
hjk's avatar
hjk committed
113
    $$PWD/icon.cpp \
114
    $$PWD/port.cpp \
115
    $$PWD/runextensions.cpp \
116
    $$PWD/utilsicons.cpp \
117
    $$PWD/guard.cpp \
118
    $$PWD/highlightingitemdelegate.cpp \
119
    $$PWD/fuzzymatcher.cpp \
120
    $$PWD/textutils.cpp \
121
    $$PWD/url.cpp \
Eike Ziller's avatar
Eike Ziller committed
122
123
    $$PWD/filecrumblabel.cpp \
    $$PWD/fixedsizeclicklabel.cpp
124

hjk's avatar
hjk committed
125
win32:SOURCES += $$PWD/consoleprocess_win.cpp
126
127
else:SOURCES += $$PWD/consoleprocess_unix.cpp

128
HEADERS += \
129
    $$PWD/benchmarker.h \
130
    $$PWD/environment.h \
131
    $$PWD/environmentmodel.h \
132
    $$PWD/environmentdialog.h \
Oswald Buddenhagen's avatar
Oswald Buddenhagen committed
133
    $$PWD/qtcprocess.h \
134
    $$PWD/utils_global.h \
135
    $$PWD/reloadpromptutils.h \
136
    $$PWD/settingsaccessor.h \
137
    $$PWD/settingsselector.h \
Tobias Hunger's avatar
Tobias Hunger committed
138
    $$PWD/shellcommand.h \
139
    $$PWD/shellcommandpage.h \
140
    $$PWD/stringutils.h \
141
    $$PWD/templateengine.h \
142
143
    $$PWD/temporarydirectory.h \
    $$PWD/temporaryfile.h \
144
145
    $$PWD/textfieldcheckbox.h \
    $$PWD/textfieldcombobox.h \
146
147
148
149
150
    $$PWD/filesearch.h \
    $$PWD/listutils.h \
    $$PWD/pathchooser.h \
    $$PWD/pathlisteditor.h \
    $$PWD/wizard.h \
151
    $$PWD/wizardpage.h \
152
    $$PWD/filewizardpage.h \
153
    $$PWD/filesystemwatcher.h \
154
155
156
157
158
159
160
161
162
    $$PWD/projectintropage.h \
    $$PWD/filenamevalidatinglineedit.h \
    $$PWD/codegeneration.h \
    $$PWD/newclasswidget.h \
    $$PWD/classnamevalidatinglineedit.h \
    $$PWD/fancylineedit.h \
    $$PWD/qtcolorbutton.h \
    $$PWD/savedaction.h \
    $$PWD/consoleprocess.h \
163
    $$PWD/consoleprocess_p.h \
164
    $$PWD/synchronousprocess.h \
165
    $$PWD/savefile.h \
166
    $$PWD/fileutils.h \
167
    $$PWD/textfileformat.h \
168
169
    $$PWD/uncommentselection.h \
    $$PWD/parameteraction.h \
170
    $$PWD/headerviewstretcher.h \
171
172
173
174
175
176
177
178
179
180
181
    $$PWD/checkablemessagebox.h \
    $$PWD/qtcassert.h \
    $$PWD/styledbar.h \
    $$PWD/stylehelper.h \
    $$PWD/fancymainwindow.h \
    $$PWD/detailsbutton.h \
    $$PWD/detailswidget.h \
    $$PWD/changeset.h \
    $$PWD/faketooltip.h \
    $$PWD/htmldocextractor.h \
    $$PWD/navigationtreeview.h \
182
    $$PWD/crumblepath.h \
183
    $$PWD/historycompleter.h \
184
    $$PWD/buildablehelperlibrary.h \
185
    $$PWD/annotateditemdelegate.h \
186
    $$PWD/fileinprojectfinder.h \
con's avatar
con committed
187
188
    $$PWD/statuslabel.h \
    $$PWD/outputformatter.h \
189
    $$PWD/outputformat.h \
190
    $$PWD/flowlayout.h \
Jarek Kobus's avatar
Jarek Kobus committed
191
    $$PWD/networkaccessmanager.h \
192
    $$PWD/persistentsettings.h \
Leandro Melo's avatar
Leandro Melo committed
193
    $$PWD/completingtextedit.h \
194
    $$PWD/json.h \
Kai Koehne's avatar
Kai Koehne committed
195
    $$PWD/runextensions.h \
Kai Koehne's avatar
Kai Koehne committed
196
    $$PWD/portlist.h \
197
    $$PWD/processhandle.h \
198
    $$PWD/appmainwindow.h \
199
    $$PWD/basetreeview.h \
200
    $$PWD/elfreader.h \
201
    $$PWD/proxyaction.h \
202
    $$PWD/hostosinfo.h \
203
    $$PWD/osspecificaspects.h \
204
205
206
207
208
    $$PWD/elidinglabel.h \
    $$PWD/tooltip/tooltip.h \
    $$PWD/tooltip/tips.h \
    $$PWD/tooltip/reuse.h \
    $$PWD/tooltip/effects.h \
Thomas Hartmann's avatar
Thomas Hartmann committed
209
    $$PWD/unixutils.h \
Orgad Shaneh's avatar
Orgad Shaneh committed
210
    $$PWD/ansiescapecodehandler.h \
211
    $$PWD/execmenu.h \
212
    $$PWD/completinglineedit.h \
213
    $$PWD/winutils.h \
Daniel Teske's avatar
Daniel Teske committed
214
    $$PWD/itemviews.h \
hjk's avatar
hjk committed
215
    $$PWD/treemodel.h \
216
    $$PWD/treeviewcombobox.h \
217
    $$PWD/scopedswap.h \
218
    $$PWD/algorithm.h \
Kai Koehne's avatar
Kai Koehne committed
219
    $$PWD/QtConcurrentTools \
220
    $$PWD/proxycredentialsdialog.h \
221
222
    $$PWD/macroexpander.h \
    $$PWD/theme/theme.h \
223
    $$PWD/theme/theme_p.h \
224
    $$PWD/progressindicator.h \
225
    $$PWD/fadingindicator.h \
226
    $$PWD/executeondestruction.h \
227
    $$PWD/overridecursor.h \
228
    $$PWD/categorysortfiltermodel.h \
229
230
    $$PWD/dropsupport.h \
    $$PWD/utilsicons.h \
hjk's avatar
hjk committed
231
    $$PWD/icon.h \
232
    $$PWD/port.h \
233
    $$PWD/functiontraits.h \
234
    $$PWD/mapreduce.h \
235
    $$PWD/objectpool.h \
Marco Bubke's avatar
Marco Bubke committed
236
237
238
239
240
241
    $$PWD/declarationmacros.h \
    $$PWD/smallstring.h \
    $$PWD/smallstringiterator.h \
    $$PWD/smallstringliteral.h \
    $$PWD/smallstringmemory.h \
    $$PWD/smallstringvector.h \
Marco Bubke's avatar
Marco Bubke committed
242
    $$PWD/smallstringlayout.h \
243
    $$PWD/sizedarray.h \
244
    $$PWD/smallstringio.h \
245
    $$PWD/guard.h \
246
    $$PWD/asconst.h \
247
248
    $$PWD/smallstringfwd.h \
    $$PWD/optional.h \
249
    $$PWD/../3rdparty/optional/optional.hpp \
250
    $$PWD/qtcfallthrough.h \
251
    $$PWD/highlightingitemdelegate.h \
252
    $$PWD/fuzzymatcher.h \
253
    $$PWD/textutils.h \
254
    $$PWD/predicates.h \
255
    $$PWD/url.h \
256
    $$PWD/filecrumblabel.h \
257
    $$PWD/linecolumn.h \
Eike Ziller's avatar
Eike Ziller committed
258
259
    $$PWD/link.h \
    $$PWD/fixedsizeclicklabel.h
260

261
262
FORMS += $$PWD/filewizardpage.ui \
    $$PWD/projectintropage.ui \
Kai Koehne's avatar
Kai Koehne committed
263
264
    $$PWD/newclasswidget.ui \
    $$PWD/proxycredentialsdialog.ui
265

266
RESOURCES += $$PWD/utils.qrc
Eike Ziller's avatar
Eike Ziller committed
267
268

osx {
269
    HEADERS += \
Eike Ziller's avatar
Eike Ziller committed
270
        $$PWD/fileutils_mac.h
Eike Ziller's avatar
Eike Ziller committed
271
    OBJECTIVE_SOURCES += \
272
273
274
        $$PWD/fileutils_mac.mm \
        $$PWD/processhandle_mac.mm
    LIBS += -framework Foundation -framework AppKit
Eike Ziller's avatar
Eike Ziller committed
275
}
Eike Ziller's avatar
Eike Ziller committed
276
277

include(mimetypes/mimetypes.pri)