coreplugin.qbs 11.5 KB
Newer Older
1
import qbs 1.0
2
import qbs.FileInfo
Joerg Bornemann's avatar
Joerg Bornemann committed
3

4
Project {
Joerg Bornemann's avatar
Joerg Bornemann committed
5
6
    name: "Core"

7
    QtcDevHeaders { }
8

9
10
11
12
13
    QtcPlugin {
        Depends {
            name: "Qt"
            submodules: ["widgets", "xml", "network", "qml", "sql", "help", "printsupport"]
        }
14

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

20
21
        Depends { name: "Utils" }
        Depends { name: "Aggregation" }
Joerg Bornemann's avatar
Joerg Bornemann committed
22

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

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

Christian Kandeler's avatar
Christian Kandeler committed
30
        cpp.frameworks: qbs.targetOS.contains("macos") ? ["AppKit"] : undefined
31

32
33
34
35
36
37
38
39
40
41
42
43
        Group {
            name: "General"
            files: [
                "basefilewizard.cpp", "basefilewizard.h",
                "basefilewizardfactory.cpp", "basefilewizardfactory.h",
                "core.qrc",
                "core_global.h",
                "coreconstants.h",
                "coreicons.cpp", "coreicons.h",
                "corejsextensions.cpp", "corejsextensions.h",
                "coreplugin.cpp", "coreplugin.h",
                "designmode.cpp", "designmode.h",
44
                "diffservice.h",
45
46
47
48
49
50
51
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
                "documentmanager.cpp", "documentmanager.h",
                "editmode.cpp", "editmode.h",
                "editortoolbar.cpp", "editortoolbar.h",
                "externaltool.cpp", "externaltool.h",
                "externaltoolmanager.cpp", "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",
                "id.cpp", "id.h",
                "idocument.cpp", "idocument.h",
                "idocumentfactory.cpp", "idocumentfactory.h",
                "ifilewizardextension.h",
                "imode.cpp", "imode.h",
                "inavigationwidgetfactory.cpp", "inavigationwidgetfactory.h",
                "infobar.cpp", "infobar.h",
                "ioutputpane.cpp", "ioutputpane.h",
                "iversioncontrol.cpp", "iversioncontrol.h",
                "iwelcomepage.cpp", "iwelcomepage.h",
                "iwizardfactory.cpp", "iwizardfactory.h",
                "jsexpander.cpp", "jsexpander.h",
                "mainwindow.cpp", "mainwindow.h",
                "manhattanstyle.cpp", "manhattanstyle.h",
                "messagebox.cpp", "messagebox.h",
                "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",
                "opendocumentstreeview.cpp", "opendocumentstreeview.h",
                "outputpane.cpp", "outputpane.h",
                "outputpanemanager.cpp", "outputpanemanager.h",
                "outputwindow.cpp", "outputwindow.h",
                "patchtool.cpp", "patchtool.h",
                "plugindialog.cpp", "plugindialog.h",
91
                "reaper.cpp", "reaper.h", "reaper_p.h",
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
                "removefiledialog.cpp", "removefiledialog.h", "removefiledialog.ui",
                "rightpane.cpp", "rightpane.h",
                "settingsdatabase.cpp", "settingsdatabase.h",
                "shellcommand.cpp", "shellcommand.h",
                "sidebar.cpp", "sidebar.h",
                "sidebarwidget.cpp", "sidebarwidget.h",
                "statusbarmanager.cpp", "statusbarmanager.h",
                "statusbarwidget.cpp", "statusbarwidget.h",
                "styleanimator.cpp", "styleanimator.h",
                "systemsettings.cpp", "systemsettings.h", "systemsettings.ui",
                "textdocument.cpp", "textdocument.h",
                "themechooser.cpp", "themechooser.h",
                "toolsettings.cpp", "toolsettings.h",
                "variablechooser.cpp", "variablechooser.h",
                "vcsmanager.cpp", "vcsmanager.h",
                "versiondialog.cpp", "versiondialog.h",
                "windowsupport.cpp", "windowsupport.h"
            ]
        }
111

112
113
114
115
116
117
118
119
120
121
122
123
        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",
                "commandsfile.cpp", "commandsfile.h",
            ]
        }
124

125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
        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",
            ]
        }
141

142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
        Group {
            name: "Editor Manager"
            prefix: "editormanager/"
            files: [
                "documentmodel.cpp", "documentmodel.h", "documentmodel_p.h",
                "editorarea.cpp", "editorarea.h",
                "editormanager.cpp", "editormanager.h", "editormanager_p.h",
                "editorview.cpp", "editorview.h",
                "editorwindow.cpp", "editorwindow.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",
            ]
        }
Joerg Bornemann's avatar
Joerg Bornemann committed
159

160
161
162
163
164
165
166
167
168
169
        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
170

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

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

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

195
196
197
198
199
200
201
202
203
204
        Group {
            name: "Tests"
            condition: qtc.testsEnabled
            files: [
                "testdatadir.cpp",
                "testdatadir.h",
                "locator/locatorfiltertest.cpp",
                "locator/locatorfiltertest.h",
                "locator/locator_test.cpp"
            ]
205

206
207
            cpp.defines: outer.concat(['SRCDIR="' + FileInfo.path(filePath) + '"'])
        }
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
        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",
                "highlightscrollbar.cpp",
                "highlightscrollbar.h",
                "ifindfilter.cpp",
                "ifindfilter.h",
                "ifindsupport.cpp",
                "ifindsupport.h",
                "itemviewfind.cpp",
                "itemviewfind.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",
            ]
        }
251

252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
        Group {
            name: "Locator"
            prefix: "locator/"
            files: [
                "basefilefilter.cpp",
                "basefilefilter.h",
                "commandlocator.cpp",
                "commandlocator.h",
                "directoryfilter.cpp",
                "directoryfilter.h",
                "directoryfilter.ui",
                "executefilter.cpp",
                "executefilter.h",
                "externaltoolsfilter.cpp",
                "externaltoolsfilter.h",
                "filesystemfilter.cpp",
                "filesystemfilter.h",
                "filesystemfilter.ui",
                "ilocatorfilter.cpp",
                "ilocatorfilter.h",
                "locatorconstants.h",
                "locatorfiltersfilter.cpp",
                "locatorfiltersfilter.h",
                "locatormanager.cpp",
                "locatormanager.h",
                "locator.cpp",
                "locator.h",
                "locatorsearchutils.cpp",
                "locatorsearchutils.h",
                "locatorwidget.cpp",
                "locatorwidget.h",
                "opendocumentsfilter.cpp",
                "opendocumentsfilter.h",
                "locatorsettingspage.cpp",
                "locatorsettingspage.h",
                "locatorsettingspage.ui",
            ]
        }
290

291
292
        Group {
            name: "Locator_mac"
Christian Kandeler's avatar
Christian Kandeler committed
293
            condition: qbs.targetOS.contains("macos")
294
295
296
297
298
299
300
301
302
303
            files: [
                "locator/spotlightlocatorfilter.h",
                "locator/spotlightlocatorfilter.mm",
            ]
        }

        Export {
            Depends { name: "Aggregation" }
            Depends { name: "Utils" }
        }
Joerg Bornemann's avatar
Joerg Bornemann committed
304
305
    }
}