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

Joerg Bornemann's avatar
Joerg Bornemann committed
7
    cpp.defines: ["QTCREATOR_UTILS_LIB"]
Joerg Bornemann's avatar
Joerg Bornemann committed
8 9 10 11 12 13 14 15 16
    cpp.includePaths: [ ".", "..",
        "../..",
        "../3rdparty/botan/build",
        "ssh",
        buildDirectory
    ]

    Properties {
        condition: qbs.targetOS == "windows"
17
        cpp.dynamicLibraries: ["user32", "iphlpapi", "ws2_32"]
Joerg Bornemann's avatar
Joerg Bornemann committed
18 19 20
    }

    Depends { name: "cpp" }
Joerg Bornemann's avatar
Joerg Bornemann committed
21
    Depends { name: "Qt"; submodules: ['widgets', 'network', 'script', 'concurrent'] }
22
    Depends { name: "Botan" }
Joerg Bornemann's avatar
Joerg Bornemann committed
23 24 25 26 27 28 29 30 31
    Depends { name: "app_version_header" }

    files: [
        "filewizardpage.ui",
        "newclasswidget.ui",
        "projectintropage.ui",
        "utils.qrc",
        "annotateditemdelegate.cpp",
        "annotateditemdelegate.h",
Aurindam Jana's avatar
Aurindam Jana committed
32 33
        "basetreeview.cpp",
        "basetreeview.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
        "basevalidatinglineedit.cpp",
        "basevalidatinglineedit.h",
        "buildablehelperlibrary.h",
        "changeset.cpp",
        "changeset.h",
        "classnamevalidatinglineedit.cpp",
        "classnamevalidatinglineedit.h",
        "codegeneration.cpp",
        "codegeneration.h",
        "completingtextedit.cpp",
        "completingtextedit.h",
        "consoleprocess.cpp",
        "consoleprocess.h",
        "consoleprocess_p.h",
        "crumblepath.h",
        "detailsbutton.cpp",
        "detailsbutton.h",
        "detailswidget.cpp",
        "detailswidget.h",
        "environment.h",
        "environmentmodel.cpp",
        "environmentmodel.h",
        "faketooltip.cpp",
        "faketooltip.h",
        "fancylineedit.cpp",
        "fancylineedit.h",
        "fancymainwindow.cpp",
        "fancymainwindow.h",
62 63
        "appmainwindow.h",
        "appmainwindow.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109
        "fileinprojectfinder.cpp",
        "fileinprojectfinder.h",
        "filenamevalidatinglineedit.h",
        "filesearch.cpp",
        "filesearch.h",
        "filesystemwatcher.cpp",
        "filesystemwatcher.h",
        "fileutils.h",
        "filewizarddialog.cpp",
        "filewizarddialog.h",
        "filewizardpage.cpp",
        "filewizardpage.h",
        "filterlineedit.cpp",
        "filterlineedit.h",
        "flowlayout.cpp",
        "flowlayout.h",
        "historycompleter.h",
        "htmldocextractor.cpp",
        "htmldocextractor.h",
        "ipaddresslineedit.h",
        "iwelcomepage.cpp",
        "iwelcomepage.h",
        "json.cpp",
        "json.h",
        "linecolumnlabel.cpp",
        "linecolumnlabel.h",
        "listutils.h",
        "navigationtreeview.cpp",
        "navigationtreeview.h",
        "networkaccessmanager.h",
        "newclasswidget.cpp",
        "newclasswidget.h",
        "outputformat.h",
        "outputformatter.cpp",
        "outputformatter.h",
        "parameteraction.cpp",
        "parameteraction.h",
        "pathchooser.cpp",
        "pathchooser.h",
        "pathlisteditor.h",
        "projectintropage.cpp",
        "projectintropage.h",
        "projectnamevalidatinglineedit.cpp",
        "projectnamevalidatinglineedit.h",
        "proxyaction.h",
        "qtcassert.h",
110
        "qtcassert.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134
        "qtcolorbutton.cpp",
        "qtcolorbutton.h",
        "qtcprocess.h",
        "reloadpromptutils.cpp",
        "reloadpromptutils.h",
        "savedaction.h",
        "savefile.cpp",
        "savefile.h",
        "settingsselector.cpp",
        "settingsutils.h",
        "statuslabel.cpp",
        "statuslabel.h",
        "stringutils.cpp",
        "stringutils.h",
        "styledbar.cpp",
        "styledbar.h",
        "stylehelper.h",
        "submiteditorwidget.cpp",
        "submiteditorwidget.h",
        "submiteditorwidget.ui",
        "submitfieldwidget.cpp",
        "submitfieldwidget.h",
        "synchronousprocess.cpp",
        "synchronousprocess.h",
Kai Koehne's avatar
Kai Koehne committed
135 136
        "tcpportsgatherer.cpp",
        "tcpportsgatherer.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159
        "textfileformat.cpp",
        "textfileformat.h",
        "treewidgetcolumnstretcher.cpp",
        "treewidgetcolumnstretcher.h",
        "uncommentselection.cpp",
        "uncommentselection.h",
        "utils_global.h",
        "wizard.cpp",
        "wizard.h",
        "persistentsettings.h",
        "settingsselector.h",
        "buildablehelperlibrary.cpp",
        "checkablemessagebox.cpp",
        "checkablemessagebox.h",
        "crumblepath.cpp",
        "environment.cpp",
        "filenamevalidatinglineedit.cpp",
        "fileutils.cpp",
        "historycompleter.cpp",
        "ipaddresslineedit.cpp",
        "networkaccessmanager.cpp",
        "pathlisteditor.cpp",
        "persistentsettings.cpp",
Kai Koehne's avatar
Kai Koehne committed
160 161
        "portlist.cpp",
        "portlist.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
162 163 164 165 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 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226
        "proxyaction.cpp",
        "qtcprocess.cpp",
        "savedaction.cpp",
        "stylehelper.cpp",
        "multitask.h",
        "runextensions.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",
        "ssh/sftpchannel.h",
        "ssh/sftpchannel_p.h",
        "ssh/sftpdefs.cpp",
        "ssh/sftpdefs.h",
        "ssh/sftpincomingpacket.cpp",
        "ssh/sftpincomingpacket_p.h",
        "ssh/sftpoperation.cpp",
        "ssh/sftpoperation_p.h",
        "ssh/sftpoutgoingpacket.cpp",
        "ssh/sftpoutgoingpacket_p.h",
        "ssh/sftppacket.cpp",
        "ssh/sftppacket_p.h",
        "ssh/sshbotanconversions_p.h",
        "ssh/sshcapabilities_p.h",
        "ssh/sshchannel.cpp",
        "ssh/sshchannel_p.h",
        "ssh/sshchannelmanager.cpp",
        "ssh/sshchannelmanager_p.h",
        "ssh/sshconnection.h",
        "ssh/sshconnection_p.h",
        "ssh/sshconnectionmanager.cpp",
        "ssh/sshconnectionmanager.h",
        "ssh/sshcryptofacility.cpp",
        "ssh/sshcryptofacility_p.h",
        "ssh/ssherrors.h",
        "ssh/sshexception_p.h",
        "ssh/sshincomingpacket_p.h",
        "ssh/sshkeyexchange.cpp",
        "ssh/sshkeyexchange_p.h",
        "ssh/sshkeypasswordretriever_p.h",
        "ssh/sshoutgoingpacket.cpp",
        "ssh/sshoutgoingpacket_p.h",
        "ssh/sshpacket.cpp",
        "ssh/sshpacket_p.h",
        "ssh/sshpacketparser.cpp",
        "ssh/sshpacketparser_p.h",
        "ssh/sshpseudoterminal.h",
        "ssh/sshremoteprocess.cpp",
        "ssh/sshremoteprocess.h",
        "ssh/sshremoteprocess_p.h",
        "ssh/sshremoteprocessrunner.cpp",
        "ssh/sshremoteprocessrunner.h",
        "ssh/sshsendfacility.cpp",
        "ssh/sshsendfacility_p.h",
        "ssh/sshkeypasswordretriever.cpp",
        "ssh/sftpchannel.cpp",
        "ssh/sshcapabilities.cpp",
        "ssh/sshconnection.cpp",
        "ssh/sshincomingpacket.cpp",
        "ssh/sshkeygenerator.cpp",
227 228 229 230
        "ssh/sshkeygenerator.h",
        "ssh/sshkeycreationdialog.cpp",
        "ssh/sshkeycreationdialog.h",
        "ssh/sshkeycreationdialog.ui"
Joerg Bornemann's avatar
Joerg Bornemann committed
231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256
    ]

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

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

    Group {
        condition: qbs.targetOS == "linux"
        files: [
            "unixutils.h",
            "unixutils.cpp"
        ]
    }
Joerg Bornemann's avatar
Joerg Bornemann committed
257 258

    ProductModule {
259
        Depends { name: "Qt"; submodules: ["concurrent", "widgets", "network"] }
Joerg Bornemann's avatar
Joerg Bornemann committed
260
    }
Joerg Bornemann's avatar
Joerg Bornemann committed
261 262
}