coreplugin.qbs 9.88 KB
Newer Older
1
import qbs 1.0
2
import qbs.FileInfo
3
import QtcPlugin
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: [
Orgad Shaneh's avatar
Orgad Shaneh committed
11
            "widgets", "xml", "network", "script", "sql", "help", "printsupport"
Joerg Bornemann's avatar
Joerg Bornemann committed
12
13
        ]
    }
14
15
16
17
18
19

    Depends {
        name: "Qt.gui-private"
        condition: qbs.targetOS.contains("windows") && Qt.core.versionMajor >= 5
    }

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

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

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

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

34
35
36
    Group {
        name: "General"
        files: [
Tobias Hunger's avatar
Tobias Hunger committed
37
            "basefilewizard.cpp", "basefilewizard.h",
38
            "basefilewizardfactory.cpp", "basefilewizardfactory.h",
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
            "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",
60
            "icorelistener.cpp", "icorelistener.h",
61
62
            "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",
Christian Kandeler's avatar
Christian Kandeler committed
70
            "iwizardfactory.cpp", "iwizardfactory.h",
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
            "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",
Christian Kandeler's avatar
Christian Kandeler committed
86
            "patchtool.cpp", "patchtool.h",
87
88
89
90
91
92
93
94
95
96
97
98
            "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",
99
            "variablechooser.cpp", "variablechooser.h",
100
101
102
            "variablemanager.cpp", "variablemanager.h",
            "vcsmanager.cpp", "vcsmanager.h",
            "versiondialog.cpp", "versiondialog.h",
Christian Kandeler's avatar
Christian Kandeler committed
103
            "windowsupport.cpp", "windowsupport.h"
104
105
106
107
108
109
110
111
112
113
114
        ]
    }

    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",
115
            "commandmappings.cpp", "commandmappings.h",
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
            "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: [
            "BinFiles.mimetypes.xml",
            "documentmodel.cpp", "documentmodel.h",
143
            "editorarea.cpp", "editorarea.h",
144
            "editormanager.cpp", "editormanager.h", "editormanager_p.h",
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
            "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
165
166

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

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

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

192
193
    Group {
        name: "Tests"
194
        condition: project.testsEnabled
195
        files: [
196
197
            "testdatadir.cpp",
            "testdatadir.h",
198
199
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
225
226
227
228
229
230
231
232
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
264
265
266
267
268
269
270
            "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",
            "ifindfilter.cpp",
            "ifindfilter.h",
            "ifindsupport.cpp",
            "ifindsupport.h",
            "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",
            "treeviewfind.cpp",
            "treeviewfind.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",
            "filesystemfilter.cpp",
            "filesystemfilter.h",
            "filesystemfilter.ui",
            "ilocatorfilter.cpp",
            "ilocatorfilter.h",
            "locator.qrc",
            "locatorconstants.h",
            "locatorfiltersfilter.cpp",
            "locatorfiltersfilter.h",
            "locatormanager.cpp",
            "locatormanager.h",
hjk's avatar
hjk committed
271
272
            "locator.cpp",
            "locator.h",
273
274
275
276
277
278
279
280
281
282
283
            "locatorsearchutils.cpp",
            "locatorsearchutils.h",
            "locatorwidget.cpp",
            "locatorwidget.h",
            "opendocumentsfilter.cpp",
            "opendocumentsfilter.h",
            "settingspage.cpp",
            "settingspage.h",
            "settingspage.ui",
            "images/locator.png",
            "images/reload.png",
284
285
286
        ]
    }

287
    Export {
288
289
        Depends { name: "Aggregation" }
        Depends { name: "Utils" }
Joerg Bornemann's avatar
Joerg Bornemann committed
290
291
    }
}