utils.qbs 5.92 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

Christian Kandeler's avatar
Christian Kandeler committed
7
    cpp.defines: base.concat(["QTCREATOR_UTILS_LIB"])
Yuchen Deng's avatar
Yuchen Deng committed
8 9 10
    cpp.includePaths: [
        ".",
        "..",
Joerg Bornemann's avatar
Joerg Bornemann committed
11 12 13 14 15 16
        "../..",
        buildDirectory
    ]

    Properties {
        condition: qbs.targetOS == "windows"
Yuchen Deng's avatar
Yuchen Deng committed
17 18 19 20 21
        cpp.dynamicLibraries: [
            "user32",
            "iphlpapi",
            "ws2_32"
        ]
Joerg Bornemann's avatar
Joerg Bornemann committed
22
    }
23
    Properties {
Yuchen Deng's avatar
Yuchen Deng committed
24
        condition: qbs.targetOS == "linux"
25 26
        cpp.dynamicLibraries: ["X11"]
    }
Joerg Bornemann's avatar
Joerg Bornemann committed
27 28

    Depends { name: "cpp" }
Yuchen Deng's avatar
Yuchen Deng committed
29
    Depends { name: "Qt"; submodules: ["widgets", "network", "script", "concurrent"] }
Joerg Bornemann's avatar
Joerg Bornemann committed
30 31 32 33 34
    Depends { name: "app_version_header" }

    files: [
        "annotateditemdelegate.cpp",
        "annotateditemdelegate.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
35 36
        "appmainwindow.cpp",
        "appmainwindow.h",
Aurindam Jana's avatar
Aurindam Jana committed
37 38
        "basetreeview.cpp",
        "basetreeview.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
39 40
        "basevalidatinglineedit.cpp",
        "basevalidatinglineedit.h",
41 42
        "bracematcher.cpp",
        "bracematcher.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
43
        "buildablehelperlibrary.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
44 45 46
        "buildablehelperlibrary.h",
        "changeset.cpp",
        "changeset.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
47 48
        "checkablemessagebox.cpp",
        "checkablemessagebox.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
49 50 51 52 53 54 55 56 57
        "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
58
        "crumblepath.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
59 60 61 62 63
        "crumblepath.h",
        "detailsbutton.cpp",
        "detailsbutton.h",
        "detailswidget.cpp",
        "detailswidget.h",
64 65
        "elfreader.cpp",
        "elfreader.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
66
        "environment.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
67 68 69 70 71 72 73 74 75 76 77
        "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
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 93 94
        "filterlineedit.cpp",
        "filterlineedit.h",
        "flowlayout.cpp",
        "flowlayout.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",
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",
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",
137
        "qtcassert.cpp",
Orgad Shaneh's avatar
Orgad Shaneh committed
138
        "qtcassert.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
139 140
        "qtcolorbutton.cpp",
        "qtcolorbutton.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
141
        "qtcprocess.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
142 143 144
        "qtcprocess.h",
        "reloadpromptutils.cpp",
        "reloadpromptutils.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
145 146
        "runextensions.h",
        "savedaction.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
147 148 149 150
        "savedaction.h",
        "savefile.cpp",
        "savefile.h",
        "settingsselector.cpp",
Orgad Shaneh's avatar
Orgad Shaneh committed
151
        "settingsselector.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
152 153 154 155 156 157 158
        "settingsutils.h",
        "statuslabel.cpp",
        "statuslabel.h",
        "stringutils.cpp",
        "stringutils.h",
        "styledbar.cpp",
        "styledbar.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
159
        "stylehelper.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
160 161 162 163 164 165 166 167
        "stylehelper.h",
        "submiteditorwidget.cpp",
        "submiteditorwidget.h",
        "submiteditorwidget.ui",
        "submitfieldwidget.cpp",
        "submitfieldwidget.h",
        "synchronousprocess.cpp",
        "synchronousprocess.h",
Kai Koehne's avatar
Kai Koehne committed
168 169
        "tcpportsgatherer.cpp",
        "tcpportsgatherer.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
170 171 172 173 174 175
        "textfileformat.cpp",
        "textfileformat.h",
        "treewidgetcolumnstretcher.cpp",
        "treewidgetcolumnstretcher.h",
        "uncommentselection.cpp",
        "uncommentselection.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 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209
        "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/removesubmitfield.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
210
            "unixutils.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
211 212 213
            "unixutils.h",
        ]
    }
Joerg Bornemann's avatar
Joerg Bornemann committed
214 215

    ProductModule {
Orgad Shaneh's avatar
Orgad Shaneh committed
216
        Depends { name: "cpp" }
217
        Depends { name: "Qt"; submodules: ["concurrent", "widgets" ] }
Orgad Shaneh's avatar
Orgad Shaneh committed
218
        cpp.includePaths: [".."]
Joerg Bornemann's avatar
Joerg Bornemann committed
219
    }
Joerg Bornemann's avatar
Joerg Bornemann committed
220 221
}