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

203
    Group {
204
        name: "Tooltip"
205 206 207 208 209 210 211 212 213 214 215 216 217
        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
218
    Group {
219
        name: "WindowsUtils"
Joerg Bornemann's avatar
Joerg Bornemann committed
220
        condition: qbs.targetOS.contains("windows")
Joerg Bornemann's avatar
Joerg Bornemann committed
221 222 223 224 225 226
        files: [
            "consoleprocess_win.cpp",
        ]
    }

    Group {
227
        name: "ConsoleProcess_unix"
Joerg Bornemann's avatar
Joerg Bornemann committed
228
        condition: qbs.targetOS.contains("unix")
Joerg Bornemann's avatar
Joerg Bornemann committed
229 230 231 232 233
        files: [
            "consoleprocess_unix.cpp",
        ]
    }

234
    Export {
235
        Depends { name: "Qt"; submodules: ["concurrent", "widgets" ] }
Joerg Bornemann's avatar
Joerg Bornemann committed
236
    }
Joerg Bornemann's avatar
Joerg Bornemann committed
237 238
}