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

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

7 8 9 10 11
    cpp.defines: base.concat([
        "QTCREATOR_UTILS_LIB",
        "QTC_REL_TOOLS_PATH=\"" + FileInfo.relativePath(project.ide_bin_path,
                                                        project.ide_libexec_path) + "\""
    ])
Joerg Bornemann's avatar
Joerg Bornemann committed
12 13

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

31
    Depends { name: "Qt"; submodules: ["gui", "network", "qml"] }
Joerg Bornemann's avatar
Joerg Bornemann committed
32 33 34
    Depends { name: "app_version_header" }

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

230 231 232 233 234 235 236 237 238 239
    Group {
        name: "Theme"
        prefix: "theme/"
        files: [
            "theme.cpp",
            "theme.h",
            "theme_p.h",
        ]
    }

240
    Group {
241
        name: "Tooltip"
242 243 244 245 246 247 248 249 250 251 252
        prefix: "tooltip/"
        files: [
            "effects.h",
            "reuse.h",
            "tips.cpp",
            "tips.h",
            "tooltip.cpp",
            "tooltip.h",
        ]
    }

Joerg Bornemann's avatar
Joerg Bornemann committed
253
    Group {
254
        name: "WindowsUtils"
Joerg Bornemann's avatar
Joerg Bornemann committed
255
        condition: qbs.targetOS.contains("windows")
Joerg Bornemann's avatar
Joerg Bornemann committed
256 257 258 259 260 261
        files: [
            "consoleprocess_win.cpp",
        ]
    }

    Group {
262
        name: "ConsoleProcess_unix"
Joerg Bornemann's avatar
Joerg Bornemann committed
263
        condition: qbs.targetOS.contains("unix")
Joerg Bornemann's avatar
Joerg Bornemann committed
264 265 266 267 268
        files: [
            "consoleprocess_unix.cpp",
        ]
    }

Eike Ziller's avatar
Eike Ziller committed
269 270 271 272
    Group {
        name: "FileUtils_osx"
        condition: qbs.targetOS.contains("osx")
        files: [
Eike Ziller's avatar
Eike Ziller committed
273
            "fileutils_mac.h", "fileutils_mac.mm",
Eike Ziller's avatar
Eike Ziller committed
274 275 276
        ]
    }

Eike Ziller's avatar
Eike Ziller committed
277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299
    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",
        ]
    }

300
    Export {
301
        Depends { name: "Qt"; submodules: ["concurrent", "widgets" ] }
Joerg Bornemann's avatar
Joerg Bornemann committed
302
    }
Joerg Bornemann's avatar
Joerg Bornemann committed
303 304
}