qtsupport.qbs 3.12 KB
Newer Older
Joerg Bornemann's avatar
Joerg Bornemann committed
1 2 3 4 5 6 7
import qbs.base 1.0

import "../QtcPlugin.qbs" as QtcPlugin

QtcPlugin {
    name: "QtSupport"

Yuchen Deng's avatar
Yuchen Deng committed
8
    Depends { name: "Qt"; submodules: ["widgets", "quick1"] }
Joerg Bornemann's avatar
Joerg Bornemann committed
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
    Depends { name: "Core" }
    Depends { name: "ProjectExplorer" }
    Depends { name: "TextEditor" }
    Depends { name: "QmlJS" }

    Depends { name: "cpp" }
    cpp.includePaths: [
        ".",
        "../../shared",
        "../../shared/proparser",
        "..",
        "../../libs",
        buildDirectory
    ]
    cpp.defines: {
        return base.concat([
            "QT_NO_CAST_TO_ASCII",
            "PROPARSER_AS_LIBRARY",
            "PROPARSER_LIBRARY",
            "PROPARSER_THREAD_SAFE",
            "PROEVALUATOR_THREAD_SAFE",
            "PROEVALUATOR_CUMULATIVE"
        ])
    }

    files: [
        "../../shared/proparser/proparser_global.h",
        "../../shared/proparser/profileparser.h",
        "../../shared/proparser/profileevaluator.h",
        "../../shared/proparser/proitems.h",
        "../../shared/proparser/prowriter.h",
        "../../shared/proparser/profileparser.cpp",
        "../../shared/proparser/profileevaluator.cpp",
        "../../shared/proparser/proitems.cpp",
        "../../shared/proparser/prowriter.cpp",
        "../../shared/proparser/proparser.qrc",
        "../../shared/proparser/ioutils.h",
        "../../shared/proparser/ioutils.cpp",
        "qtversioninfo.ui",
        "qtversionmanager.ui",
        "baseqtversion.h",
50 51
        "debugginghelper.cpp",
        "debugginghelper.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
52 53 54 55 56 57 58 59 60 61 62 63 64
        "debugginghelper.ui",
        "debugginghelperbuildtask.h",
        "exampleslistmodel.h",
        "gettingstartedwelcomepage.h",
        "profilereader.cpp",
        "profilereader.h",
        "qmldebugginglibrary.h",
        "qmldumptool.h",
        "qmlobservertool.h",
        "qtoptionspage.h",
        "qtoutputformatter.cpp",
        "qtoutputformatter.h",
        "qtparser.h",
Tobias Hunger's avatar
Tobias Hunger committed
65 66 67 68
        "qtprofileconfigwidget.cpp",
        "qtprofileconfigwidget.h",
        "qtprofileinformation.cpp",
        "qtprofileinformation.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
69 70 71 72 73 74 75 76 77 78
        "qtsupport_global.h",
        "qtsupportconstants.h",
        "qtsupportplugin.cpp",
        "qtsupportplugin.h",
        "qtversionfactory.h",
        "qtversionmanager.h",
        "screenshotcropper.cpp",
        "screenshotcropper.h",
        "showbuildlog.ui",
        "baseqtversion.cpp",
79 80 81 82
        "customexecutableconfigurationwidget.cpp",
        "customexecutableconfigurationwidget.h",
        "customexecutablerunconfiguration.cpp",
        "customexecutablerunconfiguration.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
83 84 85 86 87 88 89 90 91 92 93
        "debugginghelperbuildtask.cpp",
        "exampleslistmodel.cpp",
        "gettingstartedwelcomepage.cpp",
        "qmldebugginglibrary.cpp",
        "qmldumptool.cpp",
        "qmlobservertool.cpp",
        "qtoptionspage.cpp",
        "qtparser.cpp",
        "qtversionfactory.cpp",
        "qtversionmanager.cpp"
    ]
Daniel Teske's avatar
Daniel Teske committed
94 95 96

    ProductModule {
        Depends { name: "cpp" }
Christian Kandeler's avatar
Christian Kandeler committed
97
        cpp.includePaths: [ "../../shared" ]
Daniel Teske's avatar
Daniel Teske committed
98 99 100 101 102 103 104 105
        cpp.defines: [
            "PROPARSER_AS_LIBRARY",
            "PROPARSER_LIBRARY",
            "PROPARSER_THREAD_SAFE",
            "PROEVALUATOR_THREAD_SAFE",
            "PROEVALUATOR_CUMULATIVE"
        ]
    }
Joerg Bornemann's avatar
Joerg Bornemann committed
106 107
}