coreplugin.qbs 10.3 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: "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: [
Christian Kandeler's avatar
Christian Kandeler committed
10
            "widgets", "xml", "network", "qml", "sql", "help", "printsupport"
Joerg Bornemann's avatar
Joerg Bornemann committed
11 12
        ]
    }
13 14 15

    Depends {
        name: "Qt.gui-private"
16
        condition: qbs.targetOS.contains("windows")
17 18
    }

19 20
    Depends { name: "Utils" }
    Depends { name: "Aggregation" }
21

22
    Depends { name: "app_version_header" }
Joerg Bornemann's avatar
Joerg Bornemann committed
23

24
    cpp.dynamicLibraries: {
Joerg Bornemann's avatar
Joerg Bornemann committed
25
        if (qbs.targetOS.contains("windows")) return [
26 27
            "ole32",
            "user32"
Joerg Bornemann's avatar
Joerg Bornemann committed
28 29 30
        ]
    }

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

33 34 35
    Group {
        name: "General"
        files: [
Tobias Hunger's avatar
Tobias Hunger committed
36
            "basefilewizard.cpp", "basefilewizard.h",
37
            "basefilewizardfactory.cpp", "basefilewizardfactory.h",
38 39 40
            "core.qrc",
            "core_global.h",
            "coreconstants.h",
hjk's avatar
hjk committed
41
            "coreicons.cpp", "coreicons.h",
42
            "corejsextensions.cpp", "corejsextensions.h",
43 44 45 46 47 48
            "coreplugin.cpp", "coreplugin.h",
            "designmode.cpp", "designmode.h",
            "documentmanager.cpp", "documentmanager.h",
            "editmode.cpp", "editmode.h",
            "editortoolbar.cpp", "editortoolbar.h",
            "externaltool.cpp", "externaltool.h",
49
            "externaltoolmanager.cpp", "externaltoolmanager.h",
50 51 52 53 54 55 56 57 58 59 60 61 62
            "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",
            "id.cpp", "id.h",
            "idocument.cpp", "idocument.h",
63
            "idocumentfactory.cpp", "idocumentfactory.h",
64 65 66 67
            "ifilewizardextension.h",
            "imode.cpp", "imode.h",
            "inavigationwidgetfactory.cpp", "inavigationwidgetfactory.h",
            "infobar.cpp", "infobar.h",
Falko Arps's avatar
Falko Arps committed
68
            "ioutputpane.cpp", "ioutputpane.h",
69
            "iversioncontrol.cpp", "iversioncontrol.h",
70
            "iwelcomepage.cpp", "iwelcomepage.h",
Christian Kandeler's avatar
Christian Kandeler committed
71
            "iwizardfactory.cpp", "iwizardfactory.h",
72
            "jsexpander.cpp", "jsexpander.h",
73 74
            "mainwindow.cpp", "mainwindow.h",
            "manhattanstyle.cpp", "manhattanstyle.h",
75
            "messagebox.cpp", "messagebox.h",
76 77 78 79 80 81 82 83 84
            "messagemanager.cpp", "messagemanager.h",
            "messageoutputwindow.cpp", "messageoutputwindow.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",
85
            "opendocumentstreeview.cpp", "opendocumentstreeview.h",
86 87 88
            "outputpane.cpp", "outputpane.h",
            "outputpanemanager.cpp", "outputpanemanager.h",
            "outputwindow.cpp", "outputwindow.h",
Christian Kandeler's avatar
Christian Kandeler committed
89
            "patchtool.cpp", "patchtool.h",
90 91 92 93
            "plugindialog.cpp", "plugindialog.h",
            "removefiledialog.cpp", "removefiledialog.h", "removefiledialog.ui",
            "rightpane.cpp", "rightpane.h",
            "settingsdatabase.cpp", "settingsdatabase.h",
Tobias Hunger's avatar
Tobias Hunger committed
94
            "shellcommand.cpp", "shellcommand.h",
95 96 97 98 99
            "sidebar.cpp", "sidebar.h",
            "sidebarwidget.cpp", "sidebarwidget.h",
            "statusbarmanager.cpp", "statusbarmanager.h",
            "statusbarwidget.cpp", "statusbarwidget.h",
            "styleanimator.cpp", "styleanimator.h",
100
            "systemsettings.cpp", "systemsettings.h", "systemsettings.ui",
101
            "textdocument.cpp", "textdocument.h",
102
            "themechooser.cpp", "themechooser.h",
103
            "toolsettings.cpp", "toolsettings.h",
104
            "variablechooser.cpp", "variablechooser.h",
105 106
            "vcsmanager.cpp", "vcsmanager.h",
            "versiondialog.cpp", "versiondialog.h",
Christian Kandeler's avatar
Christian Kandeler committed
107
            "windowsupport.cpp", "windowsupport.h"
108 109 110 111 112 113 114 115 116 117 118
        ]
    }

    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",
119
            "commandmappings.cpp", "commandmappings.h",
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
            "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",
            "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: [
            "documentmodel.cpp", "documentmodel.h",
146
            "editorarea.cpp", "editorarea.h",
147
            "editormanager.cpp", "editormanager.h", "editormanager_p.h",
148
            "editorview.cpp", "editorview.h",
Christian Kandeler's avatar
Christian Kandeler committed
149
            "editorwindow.cpp", "editorwindow.h",
150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168
            "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
169 170

    Group {
171
        name: "ProgressManager_win"
Joerg Bornemann's avatar
Joerg Bornemann committed
172
        condition: qbs.targetOS.contains("windows")
Joerg Bornemann's avatar
Joerg Bornemann committed
173
        files: [
Orgad Shaneh's avatar
Orgad Shaneh committed
174
            "progressmanager/progressmanager_win.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
175 176 177 178
        ]
    }

    Group {
179
        name: "ProgressManager_mac"
Joerg Bornemann's avatar
Joerg Bornemann committed
180
        condition: qbs.targetOS.contains("osx")
Joerg Bornemann's avatar
Joerg Bornemann committed
181
        files: [
Orgad Shaneh's avatar
Orgad Shaneh committed
182
            "progressmanager/progressmanager_mac.mm",
Joerg Bornemann's avatar
Joerg Bornemann committed
183 184 185 186
        ]
    }

    Group {
187
        name: "ProgressManager_x11"
Joerg Bornemann's avatar
Joerg Bornemann committed
188
        condition: qbs.targetOS.contains("unix") && !qbs.targetOS.contains("osx")
Joerg Bornemann's avatar
Joerg Bornemann committed
189
        files: [
Orgad Shaneh's avatar
Orgad Shaneh committed
190
            "progressmanager/progressmanager_x11.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
191 192 193
        ]
    }

194 195
    Group {
        name: "Tests"
196
        condition: qtc.testsEnabled
197
        files: [
198 199
            "testdatadir.cpp",
            "testdatadir.h",
200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224
            "locator/locatorfiltertest.cpp",
            "locator/locatorfiltertest.h",
            "locator/locator_test.cpp"
        ]

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

    Group {
        name: "Find"
        prefix: "find/"
        files: [
            "basetextfind.cpp",
            "basetextfind.h",
            "currentdocumentfind.cpp",
            "currentdocumentfind.h",
            "find.qrc",
            "finddialog.ui",
            "findplugin.cpp",
            "findplugin.h",
            "findtoolbar.cpp",
            "findtoolbar.h",
            "findtoolwindow.cpp",
            "findtoolwindow.h",
            "findwidget.ui",
225 226
            "highlightscrollbar.cpp",
            "highlightscrollbar.h",
227 228 229 230
            "ifindfilter.cpp",
            "ifindfilter.h",
            "ifindsupport.cpp",
            "ifindsupport.h",
Daniel Teske's avatar
Daniel Teske committed
231 232
            "itemviewfind.cpp",
            "itemviewfind.h",
233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263
            "searchresultcolor.h",
            "searchresulttreeitemdelegate.cpp",
            "searchresulttreeitemdelegate.h",
            "searchresulttreeitemroles.h",
            "searchresulttreeitems.cpp",
            "searchresulttreeitems.h",
            "searchresulttreemodel.cpp",
            "searchresulttreemodel.h",
            "searchresulttreeview.cpp",
            "searchresulttreeview.h",
            "searchresultwidget.cpp",
            "searchresultwidget.h",
            "searchresultwindow.cpp",
            "searchresultwindow.h",
            "textfindconstants.h",
        ]
    }

    Group {
        name: "Locator"
        prefix: "locator/"
        files: [
            "basefilefilter.cpp",
            "basefilefilter.h",
            "commandlocator.cpp",
            "commandlocator.h",
            "directoryfilter.cpp",
            "directoryfilter.h",
            "directoryfilter.ui",
            "executefilter.cpp",
            "executefilter.h",
264 265
            "externaltoolsfilter.cpp",
            "externaltoolsfilter.h",
266 267 268 269 270 271 272 273 274 275
            "filesystemfilter.cpp",
            "filesystemfilter.h",
            "filesystemfilter.ui",
            "ilocatorfilter.cpp",
            "ilocatorfilter.h",
            "locatorconstants.h",
            "locatorfiltersfilter.cpp",
            "locatorfiltersfilter.h",
            "locatormanager.cpp",
            "locatormanager.h",
hjk's avatar
hjk committed
276 277
            "locator.cpp",
            "locator.h",
278 279 280 281 282 283
            "locatorsearchutils.cpp",
            "locatorsearchutils.h",
            "locatorwidget.cpp",
            "locatorwidget.h",
            "opendocumentsfilter.cpp",
            "opendocumentsfilter.h",
284 285 286
            "locatorsettingspage.cpp",
            "locatorsettingspage.h",
            "locatorsettingspage.ui",
287 288 289
        ]
    }

290 291 292 293 294 295 296 297 298
    Group {
        name: "Locator_mac"
        condition: qbs.targetOS.contains("osx")
        files: [
            "locator/spotlightlocatorfilter.h",
            "locator/spotlightlocatorfilter.mm",
        ]
    }

299
    Export {
300 301
        Depends { name: "Aggregation" }
        Depends { name: "Utils" }
Joerg Bornemann's avatar
Joerg Bornemann committed
302 303
    }
}