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

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

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

    Properties {
Joerg Bornemann's avatar
Joerg Bornemann committed
9
        condition: qbs.targetOS.contains("windows")
Yuchen Deng's avatar
Yuchen Deng committed
10 11 12
        cpp.dynamicLibraries: [
            "user32",
            "iphlpapi",
Christian Kandeler's avatar
Christian Kandeler committed
13 14
            "ws2_32",
            "shell32",
Yuchen Deng's avatar
Yuchen Deng committed
15
        ]
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
    Depends { name: "app_version_header" }

    files: [
26
        "QtConcurrentTools",
27
        "algorithm.h",
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",
98 99
        "itemviews.cpp",
        "itemviews.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
100 101 102 103 104 105 106
        "iwelcomepage.cpp",
        "iwelcomepage.h",
        "json.cpp",
        "json.h",
        "linecolumnlabel.cpp",
        "linecolumnlabel.h",
        "listutils.h",
107 108
        "macroexpander.cpp",
        "macroexpander.h",
Marco Bubke's avatar
Marco Bubke committed
109 110
        "messagebox.cpp",
        "messagebox.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
111
        "multitask.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
112 113
        "navigationtreeview.cpp",
        "navigationtreeview.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
114
        "networkaccessmanager.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
115 116 117
        "networkaccessmanager.h",
        "newclasswidget.cpp",
        "newclasswidget.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
118
        "newclasswidget.ui",
119
        "osspecificaspects.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
120 121 122 123 124 125 126
        "outputformat.h",
        "outputformatter.cpp",
        "outputformatter.h",
        "parameteraction.cpp",
        "parameteraction.h",
        "pathchooser.cpp",
        "pathchooser.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
127
        "pathlisteditor.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
128
        "pathlisteditor.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
129 130 131 132
        "persistentsettings.cpp",
        "persistentsettings.h",
        "portlist.cpp",
        "portlist.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
133 134
        "projectintropage.cpp",
        "projectintropage.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
135
        "projectintropage.ui",
Joerg Bornemann's avatar
Joerg Bornemann committed
136 137
        "projectnamevalidatinglineedit.cpp",
        "projectnamevalidatinglineedit.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
138
        "proxyaction.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
139
        "proxyaction.h",
Kai Koehne's avatar
Kai Koehne committed
140 141 142
        "proxycredentialsdialog.cpp",
        "proxycredentialsdialog.h",
        "proxycredentialsdialog.ui",
143
        "qtcassert.cpp",
Orgad Shaneh's avatar
Orgad Shaneh committed
144
        "qtcassert.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
145 146
        "qtcolorbutton.cpp",
        "qtcolorbutton.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
147
        "qtcprocess.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
148 149 150
        "qtcprocess.h",
        "reloadpromptutils.cpp",
        "reloadpromptutils.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
151 152
        "runextensions.h",
        "savedaction.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
153 154 155
        "savedaction.h",
        "savefile.cpp",
        "savefile.h",
156
        "scopedswap.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
157
        "settingsselector.cpp",
Orgad Shaneh's avatar
Orgad Shaneh committed
158
        "settingsselector.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
159
        "settingsutils.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
160 161
        "sleep.cpp",
        "sleep.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
162 163 164 165 166 167
        "statuslabel.cpp",
        "statuslabel.h",
        "stringutils.cpp",
        "stringutils.h",
        "styledbar.cpp",
        "styledbar.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
168
        "stylehelper.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
169 170 171
        "stylehelper.h",
        "synchronousprocess.cpp",
        "synchronousprocess.h",
Kai Koehne's avatar
Kai Koehne committed
172 173
        "tcpportsgatherer.cpp",
        "tcpportsgatherer.h",
BogDan Vatra's avatar
BogDan Vatra committed
174 175 176 177
        "textfieldcheckbox.cpp",
        "textfieldcheckbox.h",
        "textfieldcombobox.cpp",
        "textfieldcombobox.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
178 179
        "textfileformat.cpp",
        "textfileformat.h",
hjk's avatar
hjk committed
180 181
        "treemodel.cpp",
        "treemodel.h",
Daniel Teske's avatar
Daniel Teske committed
182 183
        "treeviewcombobox.cpp",
        "treeviewcombobox.h",
184 185
        "headerviewstretcher.cpp",
        "headerviewstretcher.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
186 187
        "uncommentselection.cpp",
        "uncommentselection.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
188 189
        "unixutils.cpp",
        "unixutils.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
190
        "utils.qrc",
Joerg Bornemann's avatar
Joerg Bornemann committed
191
        "utils_global.h",
hjk's avatar
hjk committed
192 193
        "winutils.cpp",
        "winutils.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
194 195
        "wizard.cpp",
        "wizard.h",
196 197
        "wizardpage.cpp",
        "wizardpage.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
198 199 200 201 202 203 204 205 206 207
        "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",
    ]

208 209 210 211 212 213 214 215 216 217
    Group {
        name: "Theme"
        prefix: "theme/"
        files: [
            "theme.cpp",
            "theme.h",
            "theme_p.h",
        ]
    }

218
    Group {
219
        name: "Tooltip"
220 221 222 223 224 225 226 227 228 229 230 231 232
        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
233
    Group {
234
        name: "WindowsUtils"
Joerg Bornemann's avatar
Joerg Bornemann committed
235
        condition: qbs.targetOS.contains("windows")
Joerg Bornemann's avatar
Joerg Bornemann committed
236 237 238 239 240 241
        files: [
            "consoleprocess_win.cpp",
        ]
    }

    Group {
242
        name: "ConsoleProcess_unix"
Joerg Bornemann's avatar
Joerg Bornemann committed
243
        condition: qbs.targetOS.contains("unix")
Joerg Bornemann's avatar
Joerg Bornemann committed
244 245 246 247 248
        files: [
            "consoleprocess_unix.cpp",
        ]
    }

249
    Export {
250
        Depends { name: "Qt"; submodules: ["concurrent", "widgets" ] }
Joerg Bornemann's avatar
Joerg Bornemann committed
251
    }
Joerg Bornemann's avatar
Joerg Bornemann committed
252 253
}