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

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

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

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

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

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

199
    Group {
200
        name: "Tooltip"
201 202 203 204 205 206 207 208 209 210 211 212 213
        prefix: "tooltip/"
        files: [
            "effects.h",
            "reuse.h",
            "tipcontents.cpp",
            "tipcontents.h",
            "tips.cpp",
            "tips.h",
            "tooltip.cpp",
            "tooltip.h",
        ]
    }

Joerg Bornemann's avatar
Joerg Bornemann committed
214
    Group {
215
        name: "WindowsUtils"
Joerg Bornemann's avatar
Joerg Bornemann committed
216
        condition: qbs.targetOS.contains("windows")
Joerg Bornemann's avatar
Joerg Bornemann committed
217 218 219 220 221 222
        files: [
            "consoleprocess_win.cpp",
        ]
    }

    Group {
223
        name: "ConsoleProcess_unix"
Joerg Bornemann's avatar
Joerg Bornemann committed
224
        condition: qbs.targetOS.contains("unix")
Joerg Bornemann's avatar
Joerg Bornemann committed
225 226 227 228 229
        files: [
            "consoleprocess_unix.cpp",
        ]
    }

230
    Export {
231
        Depends { name: "Qt"; submodules: ["concurrent", "widgets" ] }
Joerg Bornemann's avatar
Joerg Bornemann committed
232
    }
Joerg Bornemann's avatar
Joerg Bornemann committed
233 234
}