utils.qbs 7.84 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
        "elfreader.cpp",
        "elfreader.h",
Christian Kandeler's avatar
Christian Kandeler committed
69 70
        "elidinglabel.cpp",
        "elidinglabel.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
71
        "environment.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
72 73 74
        "environment.h",
        "environmentmodel.cpp",
        "environmentmodel.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
75 76
        "execmenu.cpp",
        "execmenu.h",
77
        "executeondestruction.h",
78 79
        "fadingindicator.cpp",
        "fadingindicator.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
80 81 82 83 84 85 86 87
        "faketooltip.cpp",
        "faketooltip.h",
        "fancylineedit.cpp",
        "fancylineedit.h",
        "fancymainwindow.cpp",
        "fancymainwindow.h",
        "fileinprojectfinder.cpp",
        "fileinprojectfinder.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
88
        "filenamevalidatinglineedit.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
89 90 91 92 93
        "filenamevalidatinglineedit.h",
        "filesearch.cpp",
        "filesearch.h",
        "filesystemwatcher.cpp",
        "filesystemwatcher.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
94
        "fileutils.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
95 96 97
        "fileutils.h",
        "filewizardpage.cpp",
        "filewizardpage.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
98
        "filewizardpage.ui",
Joerg Bornemann's avatar
Joerg Bornemann committed
99 100
        "flowlayout.cpp",
        "flowlayout.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
101
        "historycompleter.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
102
        "historycompleter.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
103
        "hostosinfo.h",
Christian Kandeler's avatar
Christian Kandeler committed
104
        "hostosinfo.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
105 106
        "htmldocextractor.cpp",
        "htmldocextractor.h",
107 108
        "itemviews.cpp",
        "itemviews.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
109 110 111 112 113
        "json.cpp",
        "json.h",
        "linecolumnlabel.cpp",
        "linecolumnlabel.h",
        "listutils.h",
114 115
        "macroexpander.cpp",
        "macroexpander.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
116
        "multitask.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
117 118
        "navigationtreeview.cpp",
        "navigationtreeview.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
119
        "networkaccessmanager.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
120 121 122
        "networkaccessmanager.h",
        "newclasswidget.cpp",
        "newclasswidget.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
123
        "newclasswidget.ui",
124
        "osspecificaspects.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
125 126 127
        "outputformat.h",
        "outputformatter.cpp",
        "outputformatter.h",
128 129
        "overridecursor.cpp",
        "overridecursor.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
130 131 132 133
        "parameteraction.cpp",
        "parameteraction.h",
        "pathchooser.cpp",
        "pathchooser.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
134
        "pathlisteditor.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
135
        "pathlisteditor.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
136 137 138 139
        "persistentsettings.cpp",
        "persistentsettings.h",
        "portlist.cpp",
        "portlist.h",
140 141
        "progressindicator.cpp",
        "progressindicator.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
142 143
        "projectintropage.cpp",
        "projectintropage.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
144 145
        "projectintropage.ui",
        "proxyaction.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
146
        "proxyaction.h",
Kai Koehne's avatar
Kai Koehne committed
147 148 149
        "proxycredentialsdialog.cpp",
        "proxycredentialsdialog.h",
        "proxycredentialsdialog.ui",
150
        "qtcassert.cpp",
Orgad Shaneh's avatar
Orgad Shaneh committed
151
        "qtcassert.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
152 153
        "qtcolorbutton.cpp",
        "qtcolorbutton.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
154
        "qtcprocess.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
155 156 157
        "qtcprocess.h",
        "reloadpromptutils.cpp",
        "reloadpromptutils.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
158 159
        "runextensions.h",
        "savedaction.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
160 161 162
        "savedaction.h",
        "savefile.cpp",
        "savefile.h",
163
        "scopedswap.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
164
        "settingsselector.cpp",
Orgad Shaneh's avatar
Orgad Shaneh committed
165
        "settingsselector.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
166
        "settingsutils.h",
Tobias Hunger's avatar
Tobias Hunger committed
167 168
        "shellcommand.cpp",
        "shellcommand.h",
169 170
        "shellcommandpage.cpp",
        "shellcommandpage.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
171 172
        "sleep.cpp",
        "sleep.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
173 174 175 176 177 178
        "statuslabel.cpp",
        "statuslabel.h",
        "stringutils.cpp",
        "stringutils.h",
        "styledbar.cpp",
        "styledbar.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
179
        "stylehelper.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
180 181 182
        "stylehelper.h",
        "synchronousprocess.cpp",
        "synchronousprocess.h",
Kai Koehne's avatar
Kai Koehne committed
183 184
        "tcpportsgatherer.cpp",
        "tcpportsgatherer.h",
BogDan Vatra's avatar
BogDan Vatra committed
185 186 187 188
        "textfieldcheckbox.cpp",
        "textfieldcheckbox.h",
        "textfieldcombobox.cpp",
        "textfieldcombobox.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
189 190
        "textfileformat.cpp",
        "textfileformat.h",
hjk's avatar
hjk committed
191 192
        "treemodel.cpp",
        "treemodel.h",
Daniel Teske's avatar
Daniel Teske committed
193 194
        "treeviewcombobox.cpp",
        "treeviewcombobox.h",
195 196
        "headerviewstretcher.cpp",
        "headerviewstretcher.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
197 198
        "uncommentselection.cpp",
        "uncommentselection.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
199 200
        "unixutils.cpp",
        "unixutils.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
201
        "utils.qrc",
Joerg Bornemann's avatar
Joerg Bornemann committed
202
        "utils_global.h",
hjk's avatar
hjk committed
203 204
        "winutils.cpp",
        "winutils.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
205 206
        "wizard.cpp",
        "wizard.h",
207 208
        "wizardpage.cpp",
        "wizardpage.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
209 210 211 212 213 214 215
        "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",
216 217 218 219
        "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
220 221 222
        "images/triangle_vert.png",
    ]

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

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

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

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

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

Eike Ziller's avatar
Eike Ziller committed
270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292
    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",
        ]
    }

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