coreplugin.qbs 8.04 KB
Newer Older
Joerg Bornemann's avatar
Joerg Bornemann committed
1 2
import qbs.base 1.0
import "../QtcPlugin.qbs" as QtcPlugin
3
import "../../../qbs/defaults.js" as Defaults
Joerg Bornemann's avatar
Joerg Bornemann committed
4 5 6 7

QtcPlugin {
    name: "Core"

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

18
    cpp.includePaths: base.concat([
Joerg Bornemann's avatar
Joerg Bornemann committed
19
        "../..",
20
        "../../shared/scriptwrapper",
Joerg Bornemann's avatar
Joerg Bornemann committed
21 22 23 24
        "dialogs",
        "editormanager",
        "progressmanager",
        "scriptmanager",
25
        "actionmanager"
26
    ])
Joerg Bornemann's avatar
Joerg Bornemann committed
27

28
    cpp.dynamicLibraries: {
Joerg Bornemann's avatar
Joerg Bornemann committed
29
        if (qbs.targetOS.contains("windows")) return [
30 31
            "ole32",
            "user32"
Joerg Bornemann's avatar
Joerg Bornemann committed
32 33 34
        ]
    }

Joerg Bornemann's avatar
Joerg Bornemann committed
35
    cpp.frameworks: qbs.targetOS.contains("osx") ? ["AppKit"] : undefined
Joerg Bornemann's avatar
Joerg Bornemann committed
36

Joerg Bornemann's avatar
Joerg Bornemann committed
37 38 39 40 41 42 43 44 45 46
    files: [
        "basefilewizard.cpp",
        "basefilewizard.h",
        "core.qrc",
        "core_global.h",
        "coreconstants.h",
        "coreplugin.cpp",
        "coreplugin.h",
        "designmode.cpp",
        "designmode.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
47 48
        "documentmanager.cpp",
        "documentmanager.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
49 50 51 52 53 54 55 56 57
        "editmode.cpp",
        "editmode.h",
        "editortoolbar.cpp",
        "editortoolbar.h",
        "externaltool.cpp",
        "externaltool.h",
        "externaltoolmanager.h",
        "fancyactionbar.cpp",
        "fancyactionbar.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
58
        "fancyactionbar.qrc",
Joerg Bornemann's avatar
Joerg Bornemann committed
59 60 61
        "fancytabwidget.cpp",
        "fancytabwidget.h",
        "featureprovider.cpp",
Orgad Shaneh's avatar
Orgad Shaneh committed
62
        "featureprovider.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
63 64 65 66 67 68 69 70
        "fileiconprovider.cpp",
        "fileiconprovider.h",
        "fileutils.cpp",
        "fileutils.h",
        "findplaceholder.cpp",
        "findplaceholder.h",
        "generalsettings.cpp",
        "generalsettings.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
71
        "generalsettings.ui",
Joerg Bornemann's avatar
Joerg Bornemann committed
72 73 74 75
        "generatedfile.cpp",
        "generatedfile.h",
        "helpmanager.cpp",
        "helpmanager.h",
Tobias Hunger's avatar
Tobias Hunger committed
76
        "icontext.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
77 78 79
        "icontext.h",
        "icore.cpp",
        "icore.h",
80
        "icorelistener.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
81
        "icorelistener.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
82
        "id.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
83 84 85 86
        "id.h",
        "idocument.cpp",
        "idocument.h",
        "idocumentfactory.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
87 88 89
        "ifilewizardextension.h",
        "imode.cpp",
        "imode.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
90 91 92 93 94
        "inavigationwidgetfactory.cpp",
        "inavigationwidgetfactory.h",
        "infobar.cpp",
        "infobar.h",
        "ioutputpane.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
95 96
        "iversioncontrol.cpp",
        "iversioncontrol.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
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
        "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",
129 130 131
        "removefiledialog.cpp",
        "removefiledialog.h",
        "removefiledialog.ui",
Joerg Bornemann's avatar
Joerg Bornemann committed
132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151
        "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",
Orgad Shaneh's avatar
Orgad Shaneh committed
152
        "variablechooser.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
153 154 155 156 157
        "variablechooser.h",
        "variablechooser.ui",
        "variablemanager.cpp",
        "variablemanager.h",
        "vcsmanager.cpp",
Orgad Shaneh's avatar
Orgad Shaneh committed
158 159 160
        "vcsmanager.h",
        "versiondialog.cpp",
        "versiondialog.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
161 162 163 164 165 166 167 168 169
        "actionmanager/actioncontainer.cpp",
        "actionmanager/actioncontainer.h",
        "actionmanager/actioncontainer_p.h",
        "actionmanager/actionmanager.cpp",
        "actionmanager/actionmanager.h",
        "actionmanager/actionmanager_p.h",
        "actionmanager/command.cpp",
        "actionmanager/command.h",
        "actionmanager/command_p.h",
Konstantin Tokarev's avatar
Konstantin Tokarev committed
170
        "actionmanager/commandbutton.cpp",
Orgad Shaneh's avatar
Orgad Shaneh committed
171
        "actionmanager/commandbutton.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
172 173 174 175 176 177 178
        "actionmanager/commandmappings.cpp",
        "actionmanager/commandmappings.h",
        "actionmanager/commandmappings.ui",
        "actionmanager/commandsfile.cpp",
        "actionmanager/commandsfile.h",
        "dialogs/externaltoolconfig.cpp",
        "dialogs/externaltoolconfig.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
179
        "dialogs/externaltoolconfig.ui",
Joerg Bornemann's avatar
Joerg Bornemann committed
180 181 182 183 184 185
        "dialogs/ioptionspage.cpp",
        "dialogs/ioptionspage.h",
        "dialogs/iwizard.cpp",
        "dialogs/iwizard.h",
        "dialogs/newdialog.cpp",
        "dialogs/newdialog.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
186
        "dialogs/newdialog.ui",
Joerg Bornemann's avatar
Joerg Bornemann committed
187 188 189 190 191
        "dialogs/openwithdialog.cpp",
        "dialogs/openwithdialog.h",
        "dialogs/openwithdialog.ui",
        "dialogs/promptoverwritedialog.cpp",
        "dialogs/promptoverwritedialog.h",
192 193 194
        "dialogs/readonlyfilesdialog.cpp",
        "dialogs/readonlyfilesdialog.h",
        "dialogs/readonlyfilesdialog.ui",
Joerg Bornemann's avatar
Joerg Bornemann committed
195 196 197 198 199 200 201 202
        "dialogs/saveitemsdialog.cpp",
        "dialogs/saveitemsdialog.h",
        "dialogs/saveitemsdialog.ui",
        "dialogs/settingsdialog.cpp",
        "dialogs/settingsdialog.h",
        "dialogs/shortcutsettings.cpp",
        "dialogs/shortcutsettings.h",
        "editormanager/BinFiles.mimetypes.xml",
Orgad Shaneh's avatar
Orgad Shaneh committed
203 204
        "editormanager/editormanager.cpp",
        "editormanager/editormanager.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
205 206 207 208
        "editormanager/editorview.cpp",
        "editormanager/editorview.h",
        "editormanager/ieditor.cpp",
        "editormanager/ieditor.h",
209
        "editormanager/ieditorfactory.cpp",
Orgad Shaneh's avatar
Orgad Shaneh committed
210
        "editormanager/ieditorfactory.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232
        "editormanager/iexternaleditor.cpp",
        "editormanager/iexternaleditor.h",
        "editormanager/openeditorsmodel.cpp",
        "editormanager/openeditorsmodel.h",
        "editormanager/openeditorsview.cpp",
        "editormanager/openeditorsview.h",
        "editormanager/openeditorswindow.cpp",
        "editormanager/openeditorswindow.h",
        "editormanager/systemeditor.cpp",
        "editormanager/systemeditor.h",
        "progressmanager/futureprogress.cpp",
        "progressmanager/futureprogress.h",
        "progressmanager/progressbar.cpp",
        "progressmanager/progressbar.h",
        "progressmanager/progressmanager.cpp",
        "progressmanager/progressmanager.h",
        "progressmanager/progressmanager_p.h",
        "progressmanager/progressview.cpp",
        "progressmanager/progressview.h",
        "scriptmanager/metatypedeclarations.h",
        "scriptmanager/scriptmanager.cpp",
        "scriptmanager/scriptmanager.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
233
        "scriptmanager/scriptmanager_p.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
234 235 236
    ]

    Group {
237
        name: "ProgressManager_win"
Joerg Bornemann's avatar
Joerg Bornemann committed
238
        condition: qbs.targetOS.contains("windows")
Joerg Bornemann's avatar
Joerg Bornemann committed
239
        files: [
Orgad Shaneh's avatar
Orgad Shaneh committed
240
            "progressmanager/progressmanager_win.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
241 242 243 244
        ]
    }

    Group {
245
        name: "ProgressManager_mac"
Joerg Bornemann's avatar
Joerg Bornemann committed
246
        condition: qbs.targetOS.contains("osx")
Joerg Bornemann's avatar
Joerg Bornemann committed
247
        files: [
Joerg Bornemann's avatar
Joerg Bornemann committed
248 249
            "macfullscreen.h",
            "macfullscreen.mm",
Orgad Shaneh's avatar
Orgad Shaneh committed
250
            "progressmanager/progressmanager_mac.mm",
Joerg Bornemann's avatar
Joerg Bornemann committed
251 252 253 254
        ]
    }

    Group {
255
        name: "ProgressManager_x11"
Joerg Bornemann's avatar
Joerg Bornemann committed
256
        condition: qbs.targetOS.contains("unix") && !qbs.targetOS.contains("osx")
Joerg Bornemann's avatar
Joerg Bornemann committed
257
        files: [
Orgad Shaneh's avatar
Orgad Shaneh committed
258
            "progressmanager/progressmanager_x11.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
259 260 261
        ]
    }

262 263 264 265 266 267 268 269 270
    Group {
        name: "Tests"
        condition: Defaults.testsEnabled(qbs)
        files: [
            "plugintestutils.cpp",
            "plugintestutils.h"
        ]
    }

271
    Export {
272 273
        Depends { name: "Aggregation" }
        Depends { name: "Utils" }
Joerg Bornemann's avatar
Joerg Bornemann committed
274 275
    }
}