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

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: [
Yuchen Deng's avatar
Yuchen Deng committed
10
            "core", "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.includePaths: base.concat([
Joerg Bornemann's avatar
Joerg Bornemann committed
18
        "../..",
19
        "../../shared/scriptwrapper",
Joerg Bornemann's avatar
Joerg Bornemann committed
20 21 22 23
        "dialogs",
        "editormanager",
        "progressmanager",
        "scriptmanager",
24
        "actionmanager"
25
    ])
Joerg Bornemann's avatar
Joerg Bornemann committed
26

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

Joerg Bornemann's avatar
Joerg Bornemann committed
34 35
    cpp.frameworks: qbs.targetOS === "mac" ? ["AppKit"] : undefined

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

    Group {
        condition: qbs.targetOS == "windows"
        files: [
Orgad Shaneh's avatar
Orgad Shaneh committed
234
            "progressmanager/progressmanager_win.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
235 236 237 238
        ]
    }

    Group {
Joerg Bornemann's avatar
Joerg Bornemann committed
239
        condition: qbs.targetOS == "mac"
Joerg Bornemann's avatar
Joerg Bornemann committed
240
        files: [
Joerg Bornemann's avatar
Joerg Bornemann committed
241 242
            "macfullscreen.h",
            "macfullscreen.mm",
Orgad Shaneh's avatar
Orgad Shaneh committed
243
            "progressmanager/progressmanager_mac.mm",
Joerg Bornemann's avatar
Joerg Bornemann committed
244 245 246 247
        ]
    }

    Group {
248
        condition: qbs.targetPlatform.indexOf("unix") != -1 && qbs.targetOS != "mac"
Joerg Bornemann's avatar
Joerg Bornemann committed
249
        files: [
Orgad Shaneh's avatar
Orgad Shaneh committed
250
            "progressmanager/progressmanager_x11.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
251 252 253
        ]
    }

254
    Export {
Joerg Bornemann's avatar
Joerg Bornemann committed
255
        Depends { name: "cpp" }
256 257
        Depends { name: "Aggregation" }
        Depends { name: "Utils" }
Joerg Bornemann's avatar
Joerg Bornemann committed
258 259
    }
}