utils.qbs 6.11 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 27 28
    Depends { name: "app_version_header" }

    files: [
        "annotateditemdelegate.cpp",
        "annotateditemdelegate.h",
29 30
        "ansiescapecodehandler.cpp",
        "ansiescapecodehandler.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
31 32
        "appmainwindow.cpp",
        "appmainwindow.h",
Aurindam Jana's avatar
Aurindam Jana committed
33 34
        "basetreeview.cpp",
        "basetreeview.h",
35 36
        "bracematcher.cpp",
        "bracematcher.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
37
        "buildablehelperlibrary.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
38 39 40
        "buildablehelperlibrary.h",
        "changeset.cpp",
        "changeset.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
41 42
        "checkablemessagebox.cpp",
        "checkablemessagebox.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
43 44 45 46
        "classnamevalidatinglineedit.cpp",
        "classnamevalidatinglineedit.h",
        "codegeneration.cpp",
        "codegeneration.h",
47 48
        "completinglineedit.cpp",
        "completinglineedit.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
49 50 51 52 53
        "completingtextedit.cpp",
        "completingtextedit.h",
        "consoleprocess.cpp",
        "consoleprocess.h",
        "consoleprocess_p.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
54
        "crumblepath.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
55 56 57 58 59
        "crumblepath.h",
        "detailsbutton.cpp",
        "detailsbutton.h",
        "detailswidget.cpp",
        "detailswidget.h",
60 61
        "elfreader.cpp",
        "elfreader.h",
Christian Kandeler's avatar
Christian Kandeler committed
62 63
        "elidinglabel.cpp",
        "elidinglabel.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
64
        "environment.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
65 66 67
        "environment.h",
        "environmentmodel.cpp",
        "environmentmodel.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
68 69
        "execmenu.cpp",
        "execmenu.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
70 71 72 73 74 75 76 77
        "faketooltip.cpp",
        "faketooltip.h",
        "fancylineedit.cpp",
        "fancylineedit.h",
        "fancymainwindow.cpp",
        "fancymainwindow.h",
        "fileinprojectfinder.cpp",
        "fileinprojectfinder.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
78
        "filenamevalidatinglineedit.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
79 80 81 82 83
        "filenamevalidatinglineedit.h",
        "filesearch.cpp",
        "filesearch.h",
        "filesystemwatcher.cpp",
        "filesystemwatcher.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
84
        "fileutils.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
85 86 87 88 89
        "fileutils.h",
        "filewizarddialog.cpp",
        "filewizarddialog.h",
        "filewizardpage.cpp",
        "filewizardpage.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
90
        "filewizardpage.ui",
Joerg Bornemann's avatar
Joerg Bornemann committed
91 92
        "flowlayout.cpp",
        "flowlayout.h",
93 94
        "function.cpp",
        "function.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
95
        "historycompleter.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
96
        "historycompleter.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
97
        "hostosinfo.h",
Christian Kandeler's avatar
Christian Kandeler committed
98
        "hostosinfo.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
99 100
        "htmldocextractor.cpp",
        "htmldocextractor.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
101
        "ipaddresslineedit.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
102
        "ipaddresslineedit.h",
103 104
        "itemviews.cpp",
        "itemviews.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
105 106 107 108 109 110 111
        "iwelcomepage.cpp",
        "iwelcomepage.h",
        "json.cpp",
        "json.h",
        "linecolumnlabel.cpp",
        "linecolumnlabel.h",
        "listutils.h",
112
        "logging.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",
Joerg Bornemann's avatar
Joerg Bornemann committed
135 136
        "projectintropage.cpp",
        "projectintropage.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
137
        "projectintropage.ui",
Joerg Bornemann's avatar
Joerg Bornemann committed
138 139
        "projectnamevalidatinglineedit.cpp",
        "projectnamevalidatinglineedit.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
140
        "proxyaction.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
141
        "proxyaction.h",
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 155
        "savedaction.h",
        "savefile.cpp",
        "savefile.h",
        "settingsselector.cpp",
Orgad Shaneh's avatar
Orgad Shaneh committed
156
        "settingsselector.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
157
        "settingsutils.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
158 159
        "sleep.cpp",
        "sleep.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
160 161 162 163 164 165
        "statuslabel.cpp",
        "statuslabel.h",
        "stringutils.cpp",
        "stringutils.h",
        "styledbar.cpp",
        "styledbar.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
166
        "stylehelper.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
167 168 169
        "stylehelper.h",
        "synchronousprocess.cpp",
        "synchronousprocess.h",
Kai Koehne's avatar
Kai Koehne committed
170 171
        "tcpportsgatherer.cpp",
        "tcpportsgatherer.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
172 173
        "textfileformat.cpp",
        "textfileformat.h",
174 175
        "headerviewstretcher.cpp",
        "headerviewstretcher.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
176 177
        "uncommentselection.cpp",
        "uncommentselection.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
178 179
        "unixutils.cpp",
        "unixutils.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
180
        "utils.qrc",
Joerg Bornemann's avatar
Joerg Bornemann committed
181
        "utils_global.h",
hjk's avatar
hjk committed
182 183
        "winutils.cpp",
        "winutils.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
184 185 186 187 188 189 190 191 192 193 194 195
        "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",
    ]

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

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

227
    Export {
228
        Depends { name: "Qt"; submodules: ["concurrent", "widgets" ] }
Joerg Bornemann's avatar
Joerg Bornemann committed
229
    }
Joerg Bornemann's avatar
Joerg Bornemann committed
230 231
}