utils.qbs 6.06 KB
Newer Older
Joerg Bornemann's avatar
Joerg Bornemann committed
1
import qbs.base 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 14 15
        cpp.dynamicLibraries: [
            "user32",
            "iphlpapi",
            "ws2_32"
        ]
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"]
    }
Joerg Bornemann's avatar
Joerg Bornemann committed
21

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

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

190
    Group {
191
        name: "Tooltip"
192 193 194 195 196 197 198 199 200 201 202 203 204
        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
205
    Group {
206
        name: "WindowsUtils"
Joerg Bornemann's avatar
Joerg Bornemann committed
207
        condition: qbs.targetOS.contains("windows")
Joerg Bornemann's avatar
Joerg Bornemann committed
208 209 210 211 212 213 214 215
        files: [
            "consoleprocess_win.cpp",
            "winutils.cpp",
            "winutils.h",
        ]
    }

    Group {
216
        name: "ConsoleProcess_unix"
Joerg Bornemann's avatar
Joerg Bornemann committed
217
        condition: qbs.targetOS.contains("unix")
Joerg Bornemann's avatar
Joerg Bornemann committed
218 219 220 221 222
        files: [
            "consoleprocess_unix.cpp",
        ]
    }

223
    Export {
224
        Depends { name: "Qt"; submodules: ["concurrent", "widgets" ] }
Joerg Bornemann's avatar
Joerg Bornemann committed
225
    }
Joerg Bornemann's avatar
Joerg Bornemann committed
226 227
}