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

hjk's avatar
hjk committed
118
win32:SOURCES += $$PWD/consoleprocess_win.cpp
119 120
else:SOURCES += $$PWD/consoleprocess_unix.cpp

121 122
HEADERS += \
    $$PWD/environment.h \
123
    $$PWD/environmentmodel.h \
124
    $$PWD/environmentdialog.h \
Oswald Buddenhagen's avatar
Oswald Buddenhagen committed
125
    $$PWD/qtcprocess.h \
126
    $$PWD/utils_global.h \
127
    $$PWD/reloadpromptutils.h \
128
    $$PWD/settingsselector.h \
Tobias Hunger's avatar
Tobias Hunger committed
129
    $$PWD/shellcommand.h \
130
    $$PWD/shellcommandpage.h \
131
    $$PWD/stringutils.h \
132
    $$PWD/templateengine.h \
133 134
    $$PWD/temporarydirectory.h \
    $$PWD/temporaryfile.h \
135 136
    $$PWD/textfieldcheckbox.h \
    $$PWD/textfieldcombobox.h \
137 138 139 140 141
    $$PWD/filesearch.h \
    $$PWD/listutils.h \
    $$PWD/pathchooser.h \
    $$PWD/pathlisteditor.h \
    $$PWD/wizard.h \
142
    $$PWD/wizardpage.h \
143
    $$PWD/filewizardpage.h \
144
    $$PWD/filesystemwatcher.h \
145 146 147 148 149 150 151 152 153 154
    $$PWD/projectintropage.h \
    $$PWD/filenamevalidatinglineedit.h \
    $$PWD/codegeneration.h \
    $$PWD/newclasswidget.h \
    $$PWD/classnamevalidatinglineedit.h \
    $$PWD/linecolumnlabel.h \
    $$PWD/fancylineedit.h \
    $$PWD/qtcolorbutton.h \
    $$PWD/savedaction.h \
    $$PWD/consoleprocess.h \
155
    $$PWD/consoleprocess_p.h \
156
    $$PWD/synchronousprocess.h \
157
    $$PWD/savefile.h \
158
    $$PWD/fileutils.h \
159
    $$PWD/textfileformat.h \
160 161
    $$PWD/uncommentselection.h \
    $$PWD/parameteraction.h \
162
    $$PWD/headerviewstretcher.h \
163 164 165 166 167 168 169 170 171 172 173
    $$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 \
174
    $$PWD/crumblepath.h \
175
    $$PWD/historycompleter.h \
176
    $$PWD/buildablehelperlibrary.h \
177
    $$PWD/annotateditemdelegate.h \
178
    $$PWD/fileinprojectfinder.h \
con's avatar
con committed
179 180
    $$PWD/statuslabel.h \
    $$PWD/outputformatter.h \
181
    $$PWD/outputformat.h \
182
    $$PWD/flowlayout.h \
Jarek Kobus's avatar
Jarek Kobus committed
183
    $$PWD/networkaccessmanager.h \
184
    $$PWD/persistentsettings.h \
Leandro Melo's avatar
Leandro Melo committed
185
    $$PWD/completingtextedit.h \
186
    $$PWD/json.h \
Kai Koehne's avatar
Kai Koehne committed
187
    $$PWD/runextensions.h \
Kai Koehne's avatar
Kai Koehne committed
188
    $$PWD/portlist.h \
189
    $$PWD/processhandle.h \
190
    $$PWD/appmainwindow.h \
191
    $$PWD/basetreeview.h \
192
    $$PWD/elfreader.h \
193 194
    $$PWD/bracematcher.h \
    $$PWD/proxyaction.h \
195
    $$PWD/hostosinfo.h \
196
    $$PWD/osspecificaspects.h \
197 198 199 200 201
    $$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
202
    $$PWD/unixutils.h \
Orgad Shaneh's avatar
Orgad Shaneh committed
203
    $$PWD/ansiescapecodehandler.h \
204
    $$PWD/execmenu.h \
205
    $$PWD/completinglineedit.h \
206
    $$PWD/winutils.h \
Daniel Teske's avatar
Daniel Teske committed
207
    $$PWD/itemviews.h \
hjk's avatar
hjk committed
208
    $$PWD/treemodel.h \
209
    $$PWD/treeviewcombobox.h \
210
    $$PWD/scopedswap.h \
211
    $$PWD/algorithm.h \
Kai Koehne's avatar
Kai Koehne committed
212
    $$PWD/QtConcurrentTools \
213
    $$PWD/proxycredentialsdialog.h \
214 215
    $$PWD/macroexpander.h \
    $$PWD/theme/theme.h \
216
    $$PWD/theme/theme_p.h \
217
    $$PWD/progressindicator.h \
218
    $$PWD/fadingindicator.h \
219
    $$PWD/executeondestruction.h \
220
    $$PWD/overridecursor.h \
221
    $$PWD/categorysortfiltermodel.h \
222 223
    $$PWD/dropsupport.h \
    $$PWD/utilsicons.h \
hjk's avatar
hjk committed
224
    $$PWD/icon.h \
225
    $$PWD/port.h \
226
    $$PWD/functiontraits.h \
227
    $$PWD/mapreduce.h \
228
    $$PWD/objectpool.h \
Marco Bubke's avatar
Marco Bubke committed
229 230 231 232 233 234
    $$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
235
    $$PWD/smallstringlayout.h \
236
    $$PWD/sizedarray.h \
237
    $$PWD/smallstringio.h \
238
    $$PWD/guard.h \
239
    $$PWD/asconst.h \
240 241 242
    $$PWD/smallstringfwd.h \
    $$PWD/optional.h \
    $$PWD/../3rdparty/optional/optional.hpp
243

244 245
FORMS += $$PWD/filewizardpage.ui \
    $$PWD/projectintropage.ui \
Kai Koehne's avatar
Kai Koehne committed
246 247
    $$PWD/newclasswidget.ui \
    $$PWD/proxycredentialsdialog.ui
248

249
RESOURCES += $$PWD/utils.qrc
Eike Ziller's avatar
Eike Ziller committed
250 251

osx {
252
    HEADERS += \
Eike Ziller's avatar
Eike Ziller committed
253
        $$PWD/fileutils_mac.h
Eike Ziller's avatar
Eike Ziller committed
254 255 256 257
    OBJECTIVE_SOURCES += \
        $$PWD/fileutils_mac.mm
    LIBS += -framework Foundation
}
Eike Ziller's avatar
Eike Ziller committed
258 259

include(mimetypes/mimetypes.pri)