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

216 217 218 219 220 221 222 223 224 225
    Group {
        name: "Theme"
        prefix: "theme/"
        files: [
            "theme.cpp",
            "theme.h",
            "theme_p.h",
        ]
    }

226
    Group {
227
        name: "Tooltip"
228 229 230 231 232 233 234 235 236 237 238
        prefix: "tooltip/"
        files: [
            "effects.h",
            "reuse.h",
            "tips.cpp",
            "tips.h",
            "tooltip.cpp",
            "tooltip.h",
        ]
    }

Joerg Bornemann's avatar
Joerg Bornemann committed
239
    Group {
240
        name: "WindowsUtils"
Joerg Bornemann's avatar
Joerg Bornemann committed
241
        condition: qbs.targetOS.contains("windows")
Joerg Bornemann's avatar
Joerg Bornemann committed
242 243 244 245 246 247
        files: [
            "consoleprocess_win.cpp",
        ]
    }

    Group {
248
        name: "ConsoleProcess_unix"
Joerg Bornemann's avatar
Joerg Bornemann committed
249
        condition: qbs.targetOS.contains("unix")
Joerg Bornemann's avatar
Joerg Bornemann committed
250 251 252 253 254
        files: [
            "consoleprocess_unix.cpp",
        ]
    }

Eike Ziller's avatar
Eike Ziller committed
255 256 257 258 259 260 261 262
    Group {
        name: "FileUtils_osx"
        condition: qbs.targetOS.contains("osx")
        files: [
            "fileutils_mac.mm",
        ]
    }

Eike Ziller's avatar
Eike Ziller committed
263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285
    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",
        ]
    }

286
    Export {
287
        Depends { name: "Qt"; submodules: ["concurrent", "widgets" ] }
Joerg Bornemann's avatar
Joerg Bornemann committed
288
    }
Joerg Bornemann's avatar
Joerg Bornemann committed
289 290
}