coreplugin.qbs 6.88 KB
Newer Older
Joerg Bornemann's avatar
Joerg Bornemann committed
1
import qbs.base 1.0
2
import QtcPlugin
Joerg Bornemann's avatar
Joerg Bornemann committed
3 4 5 6

QtcPlugin {
    name: "Core"

Joerg Bornemann's avatar
Joerg Bornemann committed
7
    Depends {
Yuchen Deng's avatar
Yuchen Deng committed
8
        name: "Qt"
Joerg Bornemann's avatar
Joerg Bornemann committed
9
        submodules: [
Orgad Shaneh's avatar
Orgad Shaneh committed
10
            "widgets", "xml", "network", "script", "sql", "help", "printsupport"
Joerg Bornemann's avatar
Joerg Bornemann committed
11 12
        ]
    }
13 14
    Depends { name: "Utils" }
    Depends { name: "Aggregation" }
15
    Depends { name: "app_version_header" }
Joerg Bornemann's avatar
Joerg Bornemann committed
16

17
    cpp.dynamicLibraries: {
Joerg Bornemann's avatar
Joerg Bornemann committed
18
        if (qbs.targetOS.contains("windows")) return [
19 20
            "ole32",
            "user32"
Joerg Bornemann's avatar
Joerg Bornemann committed
21 22 23
        ]
    }

Joerg Bornemann's avatar
Joerg Bornemann committed
24
    cpp.frameworks: qbs.targetOS.contains("osx") ? ["AppKit"] : undefined
Joerg Bornemann's avatar
Joerg Bornemann committed
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 50
    Group {
        name: "General"
        files: [
            "basefilewizard.cpp", "basefilewizard.h",
            "core.qrc",
            "core_global.h",
            "coreconstants.h",
            "coreplugin.cpp", "coreplugin.h",
            "designmode.cpp", "designmode.h",
            "documentmanager.cpp", "documentmanager.h",
            "editmode.cpp", "editmode.h",
            "editortoolbar.cpp", "editortoolbar.h",
            "externaltool.cpp", "externaltool.h",
            "externaltoolmanager.h",
            "fancyactionbar.cpp", "fancyactionbar.h", "fancyactionbar.qrc",
            "fancytabwidget.cpp", "fancytabwidget.h",
            "featureprovider.cpp", "featureprovider.h",
            "fileiconprovider.cpp", "fileiconprovider.h",
            "fileutils.cpp", "fileutils.h",
            "findplaceholder.cpp", "findplaceholder.h",
            "generalsettings.cpp", "generalsettings.h", "generalsettings.ui",
            "generatedfile.cpp", "generatedfile.h",
            "helpmanager.cpp", "helpmanager.h",
            "icontext.cpp", "icontext.h",
            "icore.cpp", "icore.h",
51
            "icorelistener.cpp", "icorelistener.h",
52 53 54 55 56 57 58 59 60 61 62 63 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 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152
            "id.cpp", "id.h",
            "idocument.cpp", "idocument.h",
            "idocumentfactory.h",
            "ifilewizardextension.h",
            "imode.cpp", "imode.h",
            "inavigationwidgetfactory.cpp", "inavigationwidgetfactory.h",
            "infobar.cpp", "infobar.h",
            "ioutputpane.h",
            "iversioncontrol.cpp", "iversioncontrol.h",
            "mainwindow.cpp", "mainwindow.h",
            "manhattanstyle.cpp", "manhattanstyle.h",
            "messagemanager.cpp", "messagemanager.h",
            "messageoutputwindow.cpp", "messageoutputwindow.h",
            "mimedatabase.cpp", "mimedatabase.h",
            "mimetypemagicdialog.cpp", "mimetypemagicdialog.h", "mimetypemagicdialog.ui",
            "mimetypesettings.cpp", "mimetypesettings.h",
            "mimetypesettingspage.ui",
            "minisplitter.cpp", "minisplitter.h",
            "modemanager.cpp", "modemanager.h",
            "navigationsubwidget.cpp", "navigationsubwidget.h",
            "navigationwidget.cpp", "navigationwidget.h",
            "outputpane.cpp", "outputpane.h",
            "outputpanemanager.cpp", "outputpanemanager.h",
            "outputwindow.cpp", "outputwindow.h",
            "plugindialog.cpp", "plugindialog.h",
            "removefiledialog.cpp", "removefiledialog.h", "removefiledialog.ui",
            "rightpane.cpp", "rightpane.h",
            "settingsdatabase.cpp", "settingsdatabase.h",
            "sidebar.cpp", "sidebar.h",
            "sidebarwidget.cpp", "sidebarwidget.h",
            "statusbarmanager.cpp", "statusbarmanager.h",
            "statusbarwidget.cpp", "statusbarwidget.h",
            "styleanimator.cpp", "styleanimator.h",
            "tabpositionindicator.cpp", "tabpositionindicator.h",
            "textdocument.cpp", "textdocument.h",
            "toolsettings.cpp", "toolsettings.h",
            "variablechooser.cpp", "variablechooser.h", "variablechooser.ui",
            "variablemanager.cpp", "variablemanager.h",
            "vcsmanager.cpp", "vcsmanager.h",
            "versiondialog.cpp", "versiondialog.h",
        ]
    }

    Group {
        name: "Action Manager"
        prefix: "actionmanager/"
        files: [
            "actioncontainer.cpp", "actioncontainer.h", "actioncontainer_p.h",
            "actionmanager.cpp", "actionmanager.h", "actionmanager_p.h",
            "command.cpp", "command.h", "command_p.h",
            "commandbutton.cpp", "commandbutton.h",
            "commandmappings.cpp", "commandmappings.h", "commandmappings.ui",
            "commandsfile.cpp", "commandsfile.h",
        ]
    }

    Group {
        name: "Dialogs"
        prefix: "dialogs/"
        files: [
            "addtovcsdialog.cpp", "addtovcsdialog.h", "addtovcsdialog.ui",
            "externaltoolconfig.cpp", "externaltoolconfig.h", "externaltoolconfig.ui",
            "ioptionspage.cpp", "ioptionspage.h",
            "iwizard.cpp", "iwizard.h",
            "newdialog.cpp", "newdialog.h", "newdialog.ui",
            "openwithdialog.cpp", "openwithdialog.h", "openwithdialog.ui",
            "promptoverwritedialog.cpp", "promptoverwritedialog.h",
            "readonlyfilesdialog.cpp", "readonlyfilesdialog.h", "readonlyfilesdialog.ui",
            "saveitemsdialog.cpp", "saveitemsdialog.h", "saveitemsdialog.ui",
            "settingsdialog.cpp", "settingsdialog.h",
            "shortcutsettings.cpp", "shortcutsettings.h",
        ]
    }

    Group {
        name: "Editor Manager"
        prefix: "editormanager/"
        files: [
            "BinFiles.mimetypes.xml",
            "documentmodel.cpp", "documentmodel.h",
            "editormanager.cpp", "editormanager.h",
            "editorview.cpp", "editorview.h",
            "ieditor.cpp", "ieditor.h",
            "ieditorfactory.cpp", "ieditorfactory.h",
            "iexternaleditor.cpp", "iexternaleditor.h",
            "openeditorsview.cpp", "openeditorsview.h",
            "openeditorswindow.cpp", "openeditorswindow.h",
            "systemeditor.cpp", "systemeditor.h",
        ]
    }

    Group {
        name: "Progress Manager"
        prefix: "progressmanager/"
        files: [
            "futureprogress.cpp", "futureprogress.h",
            "progressbar.cpp", "progressbar.h",
            "progressmanager.cpp", "progressmanager.h", "progressmanager_p.h",
            "progressview.cpp", "progressview.h",
        ]
    }
Joerg Bornemann's avatar
Joerg Bornemann committed
153 154

    Group {
155
        name: "ProgressManager_win"
Joerg Bornemann's avatar
Joerg Bornemann committed
156
        condition: qbs.targetOS.contains("windows")
Joerg Bornemann's avatar
Joerg Bornemann committed
157
        files: [
Orgad Shaneh's avatar
Orgad Shaneh committed
158
            "progressmanager/progressmanager_win.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
159 160 161 162
        ]
    }

    Group {
163
        name: "ProgressManager_mac"
Joerg Bornemann's avatar
Joerg Bornemann committed
164
        condition: qbs.targetOS.contains("osx")
Joerg Bornemann's avatar
Joerg Bornemann committed
165
        files: [
Joerg Bornemann's avatar
Joerg Bornemann committed
166 167
            "macfullscreen.h",
            "macfullscreen.mm",
Orgad Shaneh's avatar
Orgad Shaneh committed
168
            "progressmanager/progressmanager_mac.mm",
Joerg Bornemann's avatar
Joerg Bornemann committed
169 170 171 172
        ]
    }

    Group {
173
        name: "ProgressManager_x11"
Joerg Bornemann's avatar
Joerg Bornemann committed
174
        condition: qbs.targetOS.contains("unix") && !qbs.targetOS.contains("osx")
Joerg Bornemann's avatar
Joerg Bornemann committed
175
        files: [
Orgad Shaneh's avatar
Orgad Shaneh committed
176
            "progressmanager/progressmanager_x11.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
177 178 179
        ]
    }

180 181
    Group {
        name: "Tests"
182
        condition: project.testsEnabled
183
        files: [
184 185
            "testdatadir.cpp",
            "testdatadir.h",
186 187 188
        ]
    }

189
    Export {
190 191
        Depends { name: "Aggregation" }
        Depends { name: "Utils" }
Joerg Bornemann's avatar
Joerg Bornemann committed
192 193
    }
}