utils.qbs 7.89 KB
Newer Older
1
import qbs 1.0
Joerg Bornemann's avatar
Joerg Bornemann committed
2

3 4
QtcLibrary {
    name: "Utils"
Joerg Bornemann's avatar
Joerg Bornemann committed
5

6
    cpp.defines: base.concat("QTCREATOR_UTILS_LIB")
Joerg Bornemann's avatar
Joerg Bornemann committed
7 8

    Properties {
Joerg Bornemann's avatar
Joerg Bornemann committed
9
        condition: qbs.targetOS.contains("windows")
Yuchen Deng's avatar
Yuchen Deng committed
10 11 12
        cpp.dynamicLibraries: [
            "user32",
            "iphlpapi",
Christian Kandeler's avatar
Christian Kandeler committed
13 14
            "ws2_32",
            "shell32",
Yuchen Deng's avatar
Yuchen Deng committed
15
        ]
Joerg Bornemann's avatar
Joerg Bornemann committed
16
    }
17
    Properties {
Joerg Bornemann's avatar
Joerg Bornemann committed
18
        condition: qbs.targetOS.contains("unix") && !qbs.targetOS.contains("osx")
19 20
        cpp.dynamicLibraries: ["X11"]
    }
Eike Ziller's avatar
Eike Ziller committed
21 22 23 24
    Properties {
        condition: qbs.targetOS.contains("osx")
        cpp.frameworks: ["Foundation"]
    }
Joerg Bornemann's avatar
Joerg Bornemann committed
25

Yuchen Deng's avatar
Yuchen Deng committed
26
    Depends { name: "Qt"; submodules: ["widgets", "network", "script", "concurrent"] }
Joerg Bornemann's avatar
Joerg Bornemann committed
27 28 29
    Depends { name: "app_version_header" }

    files: [
30
        "QtConcurrentTools",
31
        "algorithm.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
32 33
        "annotateditemdelegate.cpp",
        "annotateditemdelegate.h",
34 35
        "ansiescapecodehandler.cpp",
        "ansiescapecodehandler.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
36 37
        "appmainwindow.cpp",
        "appmainwindow.h",
Aurindam Jana's avatar
Aurindam Jana committed
38 39
        "basetreeview.cpp",
        "basetreeview.h",
40 41
        "bracematcher.cpp",
        "bracematcher.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
42
        "buildablehelperlibrary.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
43
        "buildablehelperlibrary.h",
44 45
        "categorysortfiltermodel.cpp",
        "categorysortfiltermodel.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
46 47
        "changeset.cpp",
        "changeset.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
48 49
        "checkablemessagebox.cpp",
        "checkablemessagebox.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
50 51 52 53
        "classnamevalidatinglineedit.cpp",
        "classnamevalidatinglineedit.h",
        "codegeneration.cpp",
        "codegeneration.h",
54 55
        "completinglineedit.cpp",
        "completinglineedit.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
56 57 58 59 60
        "completingtextedit.cpp",
        "completingtextedit.h",
        "consoleprocess.cpp",
        "consoleprocess.h",
        "consoleprocess_p.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
61
        "crumblepath.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
62 63 64 65 66
        "crumblepath.h",
        "detailsbutton.cpp",
        "detailsbutton.h",
        "detailswidget.cpp",
        "detailswidget.h",
67 68
        "dropsupport.cpp",
        "dropsupport.h",
69 70
        "elfreader.cpp",
        "elfreader.h",
Christian Kandeler's avatar
Christian Kandeler committed
71 72
        "elidinglabel.cpp",
        "elidinglabel.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
73
        "environment.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
74 75 76
        "environment.h",
        "environmentmodel.cpp",
        "environmentmodel.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
77 78
        "execmenu.cpp",
        "execmenu.h",
79
        "executeondestruction.h",
80 81
        "fadingindicator.cpp",
        "fadingindicator.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
82 83 84 85 86 87 88 89
        "faketooltip.cpp",
        "faketooltip.h",
        "fancylineedit.cpp",
        "fancylineedit.h",
        "fancymainwindow.cpp",
        "fancymainwindow.h",
        "fileinprojectfinder.cpp",
        "fileinprojectfinder.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
90
        "filenamevalidatinglineedit.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
91 92 93 94 95
        "filenamevalidatinglineedit.h",
        "filesearch.cpp",
        "filesearch.h",
        "filesystemwatcher.cpp",
        "filesystemwatcher.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
96
        "fileutils.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
97 98 99
        "fileutils.h",
        "filewizardpage.cpp",
        "filewizardpage.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
100
        "filewizardpage.ui",
Joerg Bornemann's avatar
Joerg Bornemann committed
101 102
        "flowlayout.cpp",
        "flowlayout.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
103
        "historycompleter.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
104
        "historycompleter.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
105
        "hostosinfo.h",
Christian Kandeler's avatar
Christian Kandeler committed
106
        "hostosinfo.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
107 108
        "htmldocextractor.cpp",
        "htmldocextractor.h",
109 110
        "itemviews.cpp",
        "itemviews.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
111 112 113 114 115
        "json.cpp",
        "json.h",
        "linecolumnlabel.cpp",
        "linecolumnlabel.h",
        "listutils.h",
116 117
        "macroexpander.cpp",
        "macroexpander.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
118
        "multitask.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
119 120
        "navigationtreeview.cpp",
        "navigationtreeview.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
121
        "networkaccessmanager.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
122 123 124
        "networkaccessmanager.h",
        "newclasswidget.cpp",
        "newclasswidget.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
125
        "newclasswidget.ui",
126
        "osspecificaspects.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
127 128 129
        "outputformat.h",
        "outputformatter.cpp",
        "outputformatter.h",
130 131
        "overridecursor.cpp",
        "overridecursor.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
132 133 134 135
        "parameteraction.cpp",
        "parameteraction.h",
        "pathchooser.cpp",
        "pathchooser.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
136
        "pathlisteditor.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
137
        "pathlisteditor.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
138 139 140 141
        "persistentsettings.cpp",
        "persistentsettings.h",
        "portlist.cpp",
        "portlist.h",
142 143
        "progressindicator.cpp",
        "progressindicator.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
144 145
        "projectintropage.cpp",
        "projectintropage.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
146 147
        "projectintropage.ui",
        "proxyaction.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
148
        "proxyaction.h",
Kai Koehne's avatar
Kai Koehne committed
149 150 151
        "proxycredentialsdialog.cpp",
        "proxycredentialsdialog.h",
        "proxycredentialsdialog.ui",
152
        "qtcassert.cpp",
Orgad Shaneh's avatar
Orgad Shaneh committed
153
        "qtcassert.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
154 155
        "qtcolorbutton.cpp",
        "qtcolorbutton.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
156
        "qtcprocess.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
157 158 159
        "qtcprocess.h",
        "reloadpromptutils.cpp",
        "reloadpromptutils.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
160 161
        "runextensions.h",
        "savedaction.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
162 163 164
        "savedaction.h",
        "savefile.cpp",
        "savefile.h",
165
        "scopedswap.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
166
        "settingsselector.cpp",
Orgad Shaneh's avatar
Orgad Shaneh committed
167
        "settingsselector.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
168
        "settingsutils.h",
Tobias Hunger's avatar
Tobias Hunger committed
169 170
        "shellcommand.cpp",
        "shellcommand.h",
171 172
        "shellcommandpage.cpp",
        "shellcommandpage.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
173 174
        "sleep.cpp",
        "sleep.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
175 176 177 178 179 180
        "statuslabel.cpp",
        "statuslabel.h",
        "stringutils.cpp",
        "stringutils.h",
        "styledbar.cpp",
        "styledbar.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
181
        "stylehelper.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
182 183 184
        "stylehelper.h",
        "synchronousprocess.cpp",
        "synchronousprocess.h",
Kai Koehne's avatar
Kai Koehne committed
185 186
        "tcpportsgatherer.cpp",
        "tcpportsgatherer.h",
BogDan Vatra's avatar
BogDan Vatra committed
187 188 189 190
        "textfieldcheckbox.cpp",
        "textfieldcheckbox.h",
        "textfieldcombobox.cpp",
        "textfieldcombobox.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
191 192
        "textfileformat.cpp",
        "textfileformat.h",
hjk's avatar
hjk committed
193 194
        "treemodel.cpp",
        "treemodel.h",
Daniel Teske's avatar
Daniel Teske committed
195 196
        "treeviewcombobox.cpp",
        "treeviewcombobox.h",
197 198
        "headerviewstretcher.cpp",
        "headerviewstretcher.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
199 200
        "uncommentselection.cpp",
        "uncommentselection.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
201 202
        "unixutils.cpp",
        "unixutils.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
203
        "utils.qrc",
Joerg Bornemann's avatar
Joerg Bornemann committed
204
        "utils_global.h",
hjk's avatar
hjk committed
205 206
        "winutils.cpp",
        "winutils.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
207 208
        "wizard.cpp",
        "wizard.h",
209 210
        "wizardpage.cpp",
        "wizardpage.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
211 212 213 214 215 216 217
        "images/arrow.png",
        "images/crumblepath-segment-end.png",
        "images/crumblepath-segment-hover-end.png",
        "images/crumblepath-segment-hover.png",
        "images/crumblepath-segment-selected-end.png",
        "images/crumblepath-segment-selected.png",
        "images/crumblepath-segment.png",
218 219 220 221
        "images/progressindicator_big.png",
        "images/progressindicator_big@2x.png",
        "images/progressindicator_small.png",
        "images/progressindicator_small@2x.png",
Joerg Bornemann's avatar
Joerg Bornemann committed
222 223 224
        "images/triangle_vert.png",
    ]

225 226 227 228 229 230 231 232 233 234
    Group {
        name: "Theme"
        prefix: "theme/"
        files: [
            "theme.cpp",
            "theme.h",
            "theme_p.h",
        ]
    }

235
    Group {
236
        name: "Tooltip"
237 238 239 240 241 242 243 244 245 246 247
        prefix: "tooltip/"
        files: [
            "effects.h",
            "reuse.h",
            "tips.cpp",
            "tips.h",
            "tooltip.cpp",
            "tooltip.h",
        ]
    }

Joerg Bornemann's avatar
Joerg Bornemann committed
248
    Group {
249
        name: "WindowsUtils"
Joerg Bornemann's avatar
Joerg Bornemann committed
250
        condition: qbs.targetOS.contains("windows")
Joerg Bornemann's avatar
Joerg Bornemann committed
251 252 253 254 255 256
        files: [
            "consoleprocess_win.cpp",
        ]
    }

    Group {
257
        name: "ConsoleProcess_unix"
Joerg Bornemann's avatar
Joerg Bornemann committed
258
        condition: qbs.targetOS.contains("unix")
Joerg Bornemann's avatar
Joerg Bornemann committed
259 260 261 262 263
        files: [
            "consoleprocess_unix.cpp",
        ]
    }

Eike Ziller's avatar
Eike Ziller committed
264 265 266 267 268 269 270 271
    Group {
        name: "FileUtils_osx"
        condition: qbs.targetOS.contains("osx")
        files: [
            "fileutils_mac.mm",
        ]
    }

Eike Ziller's avatar
Eike Ziller committed
272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294
    Group {
        name: "MimeTypes"
        prefix: "mimetypes/"
        files: [
            "mimedatabase.cpp",
            "mimedatabase.h",
            "mimedatabase_p.h",
            "mimeglobpattern.cpp",
            "mimeglobpattern_p.h",
            "mimemagicrule.cpp",
            "mimemagicrule_p.h",
            "mimemagicrulematcher.cpp",
            "mimemagicrulematcher_p.h",
            "mimeprovider.cpp",
            "mimeprovider_p.h",
            "mimetype.cpp",
            "mimetype.h",
            "mimetype_p.h",
            "mimetypeparser.cpp",
            "mimetypeparser_p.h",
        ]
    }

295
    Export {
296
        Depends { name: "Qt"; submodules: ["concurrent", "widgets" ] }
Joerg Bornemann's avatar
Joerg Bornemann committed
297
    }
Joerg Bornemann's avatar
Joerg Bornemann committed
298 299
}