designer.qbs 2.58 KB
Newer Older
1
import qbs 1.0
2
import qbs.FileInfo
Joerg Bornemann's avatar
Joerg Bornemann committed
3 4 5 6

QtcPlugin {
    name: "Designer"

Yuchen Deng's avatar
Yuchen Deng committed
7
    Depends { name: "Qt"; submodules: ["widgets", "xml", "printsupport", "designer", "designercomponents"] }
Joerg Bornemann's avatar
Joerg Bornemann committed
8
    Depends { name: "CPlusPlus" }
9 10 11
    Depends { name: "Utils" }

    Depends { name: "Core" }
Joerg Bornemann's avatar
Joerg Bornemann committed
12
    Depends { name: "CppTools" }
Christian Kandeler's avatar
Christian Kandeler committed
13
    Depends { name: "ResourceEditor" }
Joerg Bornemann's avatar
Joerg Bornemann committed
14 15
    Depends { name: "TextEditor" }
    Depends { name: "ProjectExplorer" }
16
    Depends { name: "QtSupport" }
Joerg Bornemann's avatar
Joerg Bornemann committed
17

18 19 20 21
    pluginTestDepends: [
        "CppEditor",
    ]

Joerg Bornemann's avatar
Joerg Bornemann committed
22
    cpp.defines: base.concat(["CPP_ENABLED"])
23
    cpp.includePaths: base.concat([
24
        sharedSources.prefix
25
    ])
Joerg Bornemann's avatar
Joerg Bornemann committed
26

27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
    Group {
        name: "General"
        files: [
            "README.txt",
            "codemodelhelpers.cpp", "codemodelhelpers.h",
            "designer_export.h",
            "designerconstants.h",
            "designercontext.cpp", "designercontext.h",
            "editordata.h",
            "editorwidget.cpp", "editorwidget.h",
            "formeditorfactory.cpp", "formeditorfactory.h",
            "formeditorplugin.cpp", "formeditorplugin.h",
            "formeditorstack.cpp", "formeditorstack.h",
            "formeditorw.cpp", "formeditorw.h",
            "formtemplatewizardpage.cpp", "formtemplatewizardpage.h",
            "formwindoweditor.cpp", "formwindoweditor.h",
            "formwindowfile.cpp", "formwindowfile.h",
            "qtcreatorintegration.cpp", "qtcreatorintegration.h",
            "qtdesignerformclasscodegenerator.cpp", "qtdesignerformclasscodegenerator.h",
            "resourcehandler.cpp", "resourcehandler.h",
            "settingsmanager.cpp", "settingsmanager.h",
            "settingspage.cpp", "settingspage.h",
        ]
    }

    Group {
        name: "Shared Sources"
        id: sharedSources
55
        prefix: project.sharedSourcesDir + "/designerintegrationv2/"
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
        files: [
            "formresizer.cpp", "formresizer.h",
            "sizehandlerect.cpp", "sizehandlerect.h",
            "widgethost.cpp", "widgethost.h",
            "widgethostconstants.h",
        ]
    }

    Group {
        name: "cpp"
        prefix: "cpp/"
        files: [
            "formclasswizard.cpp", "formclasswizard.h",
            "formclasswizarddialog.cpp", "formclasswizarddialog.h",
            "formclasswizardpage.cpp", "formclasswizardpage.h", "formclasswizardpage.ui",
            "formclasswizardparameters.cpp", "formclasswizardparameters.h",
        ]
    }
74 75 76

    Group {
        name: "Tests"
77
        condition: qtc.testsEnabled
78 79 80 81 82
        files: [ "gotoslot_test.cpp" ]

        cpp.defines: outer.concat(['SRCDIR="' + FileInfo.path(filePath) + '"'])
    }

Joerg Bornemann's avatar
Joerg Bornemann committed
83
}