utils.qbs 5.59 KB
Newer Older
Joerg Bornemann's avatar
Joerg Bornemann committed
1
import qbs.base 1.0
2
import "../QtcLibrary.qbs" as 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", "QT_NO_CAST_FROM_ASCII"])
Joerg Bornemann's avatar
Joerg Bornemann committed
8 9 10

    Properties {
        condition: qbs.targetOS == "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 {
Yuchen Deng's avatar
Yuchen Deng committed
18
        condition: qbs.targetOS == "linux"
19 20
        cpp.dynamicLibraries: ["X11"]
    }
Joerg Bornemann's avatar
Joerg Bornemann committed
21 22

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

    Group {
        condition: qbs.targetOS == "windows"
        files: [
            "consoleprocess_win.cpp",
            "winutils.cpp",
            "winutils.h",
        ]
    }

    Group {
        condition: qbs.targetOS == "linux" || qbs.targetOS == "mac"
        files: [
            "consoleprocess_unix.cpp",
        ]
    }

    Group {
        condition: qbs.targetOS == "linux"
        files: [
Orgad Shaneh's avatar
Orgad Shaneh committed
198
            "unixutils.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
199 200 201
            "unixutils.h",
        ]
    }
Joerg Bornemann's avatar
Joerg Bornemann committed
202 203

    ProductModule {
204
        Depends { name: "Qt"; submodules: ["concurrent", "widgets" ] }
Joerg Bornemann's avatar
Joerg Bornemann committed
205
    }
Joerg Bornemann's avatar
Joerg Bornemann committed
206 207
}