1 | # $Id: Makefile.kmk 51264 2014-05-15 15:57:30Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Makefile for the VirtualBox Qt GUI.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2014 Oracle Corporation
|
---|
8 | #
|
---|
9 | # This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | # available from http://www.virtualbox.org. This file is free software;
|
---|
11 | # you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | # General Public License (GPL) as published by the Free Software
|
---|
13 | # Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | # VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | # hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | #
|
---|
17 |
|
---|
18 | SUB_DEPTH = ../../../..
|
---|
19 | include $(KBUILD_PATH)/subheader.kmk
|
---|
20 |
|
---|
21 | #
|
---|
22 | # Globals.
|
---|
23 | #
|
---|
24 | VBOX_VIRTUALBOX4_SRC := $(PATH_SUB_CURRENT)
|
---|
25 | VBOX_VIRTUALBOX4_OUT_DIR := $(PATH_TARGET)/VirtualBox/misc
|
---|
26 |
|
---|
27 | # Show the update notifier dialog during startup. If this setting is disabled
|
---|
28 | # the user can still update using the menu if desired.
|
---|
29 | ifndef VBOX_OSE
|
---|
30 | VBOX_WITH_UPDATE_REQUEST := 1
|
---|
31 | endif
|
---|
32 |
|
---|
33 | #
|
---|
34 | # The targets.
|
---|
35 | #
|
---|
36 | ifdef VBOX_WITH_HARDENING
|
---|
37 | PROGRAMS += VirtualBoxHardened
|
---|
38 | DLLS += VirtualBox
|
---|
39 | else
|
---|
40 | PROGRAMS += VirtualBox
|
---|
41 | endif
|
---|
42 |
|
---|
43 | INSTALLS += VirtualBox.nls
|
---|
44 |
|
---|
45 |
|
---|
46 | #
|
---|
47 | # Include the language lists.
|
---|
48 | #
|
---|
49 | include $(PATH_SUB_CURRENT)/nls/ApprovedLanguages.kmk
|
---|
50 |
|
---|
51 |
|
---|
52 | #
|
---|
53 | # Hardened VirtualBox.
|
---|
54 | #
|
---|
55 | VirtualBoxHardened_TEMPLATE = VBOXR3HARDENEDEXE
|
---|
56 | VirtualBoxHardened_SOURCES = src/hardenedmain.cpp
|
---|
57 | VirtualBoxHardened_NAME = VirtualBox
|
---|
58 | VirtualBoxHardened_INST.darwin = $(INST_BIN)VirtualBox $(INST_BIN)VirtualBoxVM
|
---|
59 |
|
---|
60 |
|
---|
61 | #
|
---|
62 | # Include Qt project file, we'll use FORMS and TRANSLATIONS in
|
---|
63 | # the VirtualBox setup below.
|
---|
64 | #
|
---|
65 | SAVED_TEMPLATE := $(TEMPLATE)
|
---|
66 | include $(PATH_SUB_CURRENT)/VBoxUI.pro
|
---|
67 |
|
---|
68 |
|
---|
69 | #
|
---|
70 | # VirtualBox - The GUI program.
|
---|
71 | #
|
---|
72 | USES += qt4
|
---|
73 | VirtualBox_TEMPLATE := $(if $(VBOX_WITH_HARDENING),VBOXQT4GUI,VBOXQT4GUIEXE)
|
---|
74 | VirtualBox_NAME = VirtualBox
|
---|
75 | ifndef VBOX_WITH_HARDENING # For the launch trick we need different inode numbers.
|
---|
76 | VirtualBox_INST.darwin = $(INST_BIN)VirtualBox $(INST_BIN)VirtualBoxVM
|
---|
77 | endif
|
---|
78 | VirtualBox_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK)
|
---|
79 |
|
---|
80 | VirtualBox_DEFS =
|
---|
81 | VirtualBox_DEFS.debug = VBOX_CHECK_STATE # QT_FATAL_ASSERT
|
---|
82 | VirtualBox_DEFS.darwin = VBOX_GUI_USE_QIMAGE VBOX_GUI_USE_QUARTZ2D VBOX_WITH_TRANSLUCENT_SEAMLESS
|
---|
83 | VirtualBox_DEFS.freebsd = VBOX_GUI_USE_QIMAGE
|
---|
84 | VirtualBox_DEFS.linux = VBOX_GUI_USE_QIMAGE
|
---|
85 | VirtualBox_DEFS.netbsd = VBOX_GUI_USE_QIMAGE
|
---|
86 | VirtualBox_DEFS.openbsd = VBOX_GUI_USE_QIMAGE
|
---|
87 | VirtualBox_DEFS.solaris = VBOX_GUI_USE_QIMAGE
|
---|
88 | VirtualBox_DEFS.win = VBOX_GUI_USE_QIMAGE UNICODE QT_DLL
|
---|
89 | ifdef VBOX_WITH_ICHAT_THEATER
|
---|
90 | VirtualBox_DEFS.darwin += VBOX_WITH_ICHAT_THEATER
|
---|
91 | endif
|
---|
92 | VirtualBox_DEFS += \
|
---|
93 | $(if $(VBOX_WITH_ADDITIONS_AUTOUPDATE_UI),VBOX_WITH_ADDITIONS_AUTOUPDATE_UI) \
|
---|
94 | $(if $(VBOX_WITH_UPDATE_REQUEST),VBOX_WITH_UPDATE_REQUEST) \
|
---|
95 | $(if $(VBOX_WITH_ALSA),VBOX_WITH_ALSA) \
|
---|
96 | $(if $(VBOX_WITH_PULSE),VBOX_WITH_PULSE) \
|
---|
97 | $(if $(VBOX_WITH_SOLARIS_OSS),VBOX_WITH_SOLARIS_OSS) \
|
---|
98 | $(if $(VBOX_WITH_E1000),VBOX_WITH_E1000) \
|
---|
99 | $(if $(VBOX_WITH_NETFLT)$(eq $(KBUILD_TARGET),freebsd),VBOX_WITH_NETFLT) \
|
---|
100 | $(if $(VBOX_WITH_VDE),VBOX_WITH_VDE) \
|
---|
101 | $(if $(VBOX_WITH_UDPTUNNEL),VBOX_WITH_UDPTUNNEL) \
|
---|
102 | $(if $(VBOX_WITH_EXTPACK),VBOX_WITH_EXTPACK) \
|
---|
103 | $(if $(VBOX_WITH_EHCI),VBOX_WITH_EHCI) \
|
---|
104 | $(if $(VBOX_WITH_DRAG_AND_DROP),VBOX_WITH_DRAG_AND_DROP) \
|
---|
105 | $(if $(VBOX_WITH_DRAG_AND_DROP_GH),VBOX_WITH_DRAG_AND_DROP_GH) \
|
---|
106 | $(if $(VBOX_WITH_CRHGSMI),VBOX_WITH_CRHGSMI) \
|
---|
107 | $(if $(VBOX_WITH_VIRTIO),VBOX_WITH_VIRTIO) \
|
---|
108 | $(if $(VBOX_WITH_WDDM),VBOX_WITH_WDDM) \
|
---|
109 | $(if $(VBOX_WITH_CROGL),VBOX_WITH_CROGL) \
|
---|
110 | $(if $(VBOX_GUI_WITH_HIDPI),VBOX_GUI_WITH_HIDPI) \
|
---|
111 | $(if $(VBOX_GUI_WITH_PIDFILE),VBOX_GUI_WITH_PIDFILE) \
|
---|
112 | $(if $(VBOX_GUI_WITH_KEYS_RESET_HANDLER),VBOX_GUI_WITH_KEYS_RESET_HANDLER) \
|
---|
113 | $(if $(VBOX_GUI_WITH_CUSTOMIZATIONS1),VBOX_GUI_WITH_CUSTOMIZATIONS1)
|
---|
114 | ifdef VBOX_WITH_DEBUGGER_GUI
|
---|
115 | VirtualBox_DEFS += VBOX_WITH_DEBUGGER_GUI
|
---|
116 | if "$(KBUILD_TYPE)" != "release"
|
---|
117 | VirtualBox_DEFS += VBOX_WITH_DEBUGGER_GUI_MENU
|
---|
118 | endif
|
---|
119 | endif
|
---|
120 | ifdef VBOX_WITH_VIDEOHWACCEL
|
---|
121 | VirtualBox_DEFS += VBOX_WITH_VIDEOHWACCEL \
|
---|
122 | VBOX_GUI_USE_QGL
|
---|
123 | else ifdef VBOX_GUI_USE_QGL
|
---|
124 | VirtualBox_DEFS += VBOX_GUI_USE_QGL
|
---|
125 | endif
|
---|
126 | ifdef VBOX_WITH_LIBCURL
|
---|
127 | VirtualBox_DEFS += VBOX_GUI_WITH_NETWORK_MANAGER
|
---|
128 | VBOX_GUI_WITH_NETWORK_MANAGER := 1
|
---|
129 | endif
|
---|
130 | ifdef VBOX_BLEEDING_EDGE
|
---|
131 | VirtualBox_src/selector/UISelectorWindow.cpp_DEFS += \
|
---|
132 | VBOX_BLEEDING_EDGE=\"$(VBOX_BLEEDING_EDGE)\"
|
---|
133 | VirtualBox_src/runtime/UIMachineWindow.cpp_DEFS += \
|
---|
134 | VBOX_BLEEDING_EDGE=\"$(VBOX_BLEEDING_EDGE)\"
|
---|
135 | VirtualBox_src/VBoxAboutDlg.cpp_DEFS += \
|
---|
136 | VBOX_BLEEDING_EDGE=\"$(VBOX_BLEEDING_EDGE)\"
|
---|
137 | VirtualBox_src/main.cpp_DEFS += \
|
---|
138 | VBOX_BLEEDING_EDGE=\"$(VBOX_BLEEDING_EDGE)\"
|
---|
139 | endif
|
---|
140 |
|
---|
141 |
|
---|
142 | VBOX_GUI_INC_DIRS = \
|
---|
143 | ./src \
|
---|
144 | ./src/converter \
|
---|
145 | ./src/extensions \
|
---|
146 | ./src/extensions/graphics \
|
---|
147 | ./src/extradata \
|
---|
148 | ./src/globals \
|
---|
149 | ./src/medium \
|
---|
150 | ./src/platform \
|
---|
151 | ./src/platform/darwin \
|
---|
152 | ./src/platform/win \
|
---|
153 | ./src/platform/x11 \
|
---|
154 | ./src/runtime \
|
---|
155 | ./src/runtime/fullscreen \
|
---|
156 | ./src/runtime/normal \
|
---|
157 | ./src/runtime/scale \
|
---|
158 | ./src/runtime/seamless \
|
---|
159 | ./src/selector \
|
---|
160 | ./src/selector/graphics/chooser \
|
---|
161 | ./src/selector/graphics/details \
|
---|
162 | ./src/settings \
|
---|
163 | ./src/settings/global \
|
---|
164 | ./src/settings/machine \
|
---|
165 | ./src/widgets \
|
---|
166 | ./src/widgets/graphics \
|
---|
167 | ./src/wizards \
|
---|
168 | ./src/wizards/newvm \
|
---|
169 | ./src/wizards/newvd \
|
---|
170 | ./src/wizards/clonevm \
|
---|
171 | ./src/wizards/clonevd \
|
---|
172 | ./src/wizards/exportappliance \
|
---|
173 | ./src/wizards/importappliance \
|
---|
174 | ./src/wizards/firstrun
|
---|
175 |
|
---|
176 | ifdef VBOX_GUI_WITH_NETWORK_MANAGER
|
---|
177 | VBOX_GUI_INC_DIRS += \
|
---|
178 | ./src/net
|
---|
179 | endif
|
---|
180 |
|
---|
181 | VirtualBox_INCS = \
|
---|
182 | $(VBOX_GUI_INC_DIRS) \
|
---|
183 | $(VirtualBox_0_OUTDIR)/include
|
---|
184 |
|
---|
185 | # Necessary for the hdd backend enumeration
|
---|
186 | VirtualBox_LIBS = $(LIB_DDU)
|
---|
187 |
|
---|
188 | if1of ($(KBUILD_TARGET), linux freebsd netbsd openbsd)
|
---|
189 | VirtualBox_LIBS += dl
|
---|
190 | endif
|
---|
191 |
|
---|
192 | # This library is required for multi-monitor support
|
---|
193 | VirtualBox_LIBS.linux += Xinerama
|
---|
194 | VirtualBox_LIBS.solaris += Xinerama
|
---|
195 | VirtualBox_LIBS.freebsd += Xinerama
|
---|
196 |
|
---|
197 | ifneq ($(KBUILD_TARGET),win)
|
---|
198 | VirtualBox_CXXFLAGS += -Wno-switch
|
---|
199 | endif
|
---|
200 |
|
---|
201 | ifeq ($(KBUILD_TYPE),release)
|
---|
202 | VirtualBox_LDFLAGS.win += /SUBSYSTEM:windows
|
---|
203 | else
|
---|
204 | VirtualBox_LDFLAGS.linux += -rdynamic # for backtrace_symbols()
|
---|
205 | VirtualBox_LDFLAGS.win += /SUBSYSTEM:console
|
---|
206 | endif
|
---|
207 |
|
---|
208 | # delay loading causes VM process crashes due to the misbehave of the current QtOpenGLVBox4.dll we use
|
---|
209 | # (i.e. it does not create the ogl context properly when loaded this way)
|
---|
210 | #
|
---|
211 | # @todo: investigate a better work-around and enable back delay loading since it is needed to avoid
|
---|
212 | # crashes caused by buggy ogl drivers for the case 2D is not used (i.e. no ogl stuff loaded)
|
---|
213 | #if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
|
---|
214 | # VirtualBox_LDFLAGS.win += /DelayLoad:QtOpenGLVBox4.dll /DelayLoad:OPENGL32.dll
|
---|
215 | #endif
|
---|
216 |
|
---|
217 | VirtualBox_LDFLAGS.darwin = \
|
---|
218 | -framework AppKit -framework Carbon -framework IOKit \
|
---|
219 | $(if $(VBOX_WITH_HARDENING),-install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VirtualBox.dylib)
|
---|
220 | ifdef VBOX_WITH_ICHAT_THEATER
|
---|
221 | VirtualBox_LDFLAGS.darwin += -framework InstantMessage -framework QuartzCore
|
---|
222 | endif
|
---|
223 |
|
---|
224 | VirtualBox_LIBS.win = \
|
---|
225 | $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Htmlhelp.Lib \
|
---|
226 | $(PATH_SDK_$(VBOX_WINDDK)_LIB)/ddraw.lib \
|
---|
227 | $(PATH_SDK_$(VBOX_WINDDK)_LIB)/dxguid.lib
|
---|
228 | if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) # X11
|
---|
229 | VirtualBox_LIBS += $(PATH_STAGE_DLL)/VBoxKeyboard$(VBOX_SUFF_DLL)
|
---|
230 | endif
|
---|
231 |
|
---|
232 | if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
|
---|
233 | VirtualBox_LIBS.win += $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Opengl32.lib
|
---|
234 | VirtualBox_LIBS.solaris += GL
|
---|
235 | VirtualBox_LIBS.linux += GL
|
---|
236 | VirtualBox_LIBS.freebsd += GL
|
---|
237 | VirtualBox_LDFLAGS.darwin += -framework OpenGL
|
---|
238 | endif
|
---|
239 | ifdef VBOX_WITH_CROGL
|
---|
240 | VirtualBox_LIBS += $(PATH_STAGE_LIB)/VBoxOGLTest$(VBOX_SUFF_LIB)
|
---|
241 | endif
|
---|
242 |
|
---|
243 |
|
---|
244 | # Headers containing definitions of classes that use the Q_OBJECT macro.
|
---|
245 | VirtualBox_QT_MOCHDRS = \
|
---|
246 | src/UIMediumTypeChangeDialog.h \
|
---|
247 | src/VBoxAboutDlg.h \
|
---|
248 | src/VBoxGlobalSettings.h \
|
---|
249 | src/VBoxLicenseViewer.h \
|
---|
250 | src/VBoxSnapshotDetailsDlg.h \
|
---|
251 | src/VBoxTakeSnapshotDlg.h \
|
---|
252 | src/VBoxVMInformationDlg.h \
|
---|
253 | src/UIVMLogViewer.h \
|
---|
254 | src/extensions/QIAdvancedSlider.h \
|
---|
255 | src/extensions/QIArrowButtonPress.h \
|
---|
256 | src/extensions/QIArrowButtonSwitch.h \
|
---|
257 | src/extensions/QIArrowSplitter.h \
|
---|
258 | src/extensions/QIDialog.h \
|
---|
259 | src/extensions/QIFileDialog.h \
|
---|
260 | src/extensions/QILabel.h \
|
---|
261 | src/extensions/QILabelSeparator.h \
|
---|
262 | src/extensions/QIListView.h \
|
---|
263 | src/extensions/QIMainDialog.h \
|
---|
264 | src/extensions/QIMessageBox.h \
|
---|
265 | src/extensions/QIProcess.h \
|
---|
266 | src/extensions/QIRichTextLabel.h \
|
---|
267 | src/extensions/QIRichToolButton.h \
|
---|
268 | src/extensions/QISplitter.h \
|
---|
269 | src/extensions/QIStateIndicator.h \
|
---|
270 | src/extensions/QIStatusBar.h \
|
---|
271 | src/extensions/QITabWidget.h \
|
---|
272 | src/extensions/QITableView.h \
|
---|
273 | src/extensions/QIToolButton.h \
|
---|
274 | src/extensions/QITextEdit.h \
|
---|
275 | src/extensions/QITreeView.h \
|
---|
276 | src/extensions/QITreeWidget.h \
|
---|
277 | src/extensions/QIWidgetValidator.h \
|
---|
278 | src/extensions/QIAdvancedToolBar.h \
|
---|
279 | src/extensions/graphics/QIGraphicsWidget.h \
|
---|
280 | src/extradata/UIExtraDataManager.h \
|
---|
281 | src/globals/UIActionPool.h \
|
---|
282 | src/globals/UIAnimationFramework.h \
|
---|
283 | src/globals/UIMainEventListener.h \
|
---|
284 | src/globals/UIMessageCenter.h \
|
---|
285 | src/globals/UIModalWindowManager.h \
|
---|
286 | src/globals/UIPopupCenter.h \
|
---|
287 | src/globals/UIShortcutPool.h \
|
---|
288 | src/globals/UIThreadPool.h \
|
---|
289 | src/globals/VBoxGlobal.h \
|
---|
290 | src/globals/VBoxUtils.h \
|
---|
291 | src/medium/UIMediumEnumerator.h \
|
---|
292 | src/medium/UIMediumManager.h \
|
---|
293 | src/runtime/UIActionPoolRuntime.h \
|
---|
294 | src/runtime/UIConsoleEventHandler.h \
|
---|
295 | src/runtime/UIFrameBuffer.h \
|
---|
296 | src/runtime/UIIndicatorsPool.h \
|
---|
297 | src/runtime/UIKeyboardHandler.h \
|
---|
298 | src/runtime/UIMachine.h \
|
---|
299 | src/runtime/UIMachineLogic.h \
|
---|
300 | src/runtime/UIMachineWindow.h \
|
---|
301 | src/runtime/UIMachineView.h \
|
---|
302 | src/runtime/UIMouseHandler.h \
|
---|
303 | src/runtime/UIMultiScreenLayout.h \
|
---|
304 | src/runtime/UISession.h \
|
---|
305 | src/runtime/UIVMCloseDialog.h \
|
---|
306 | src/runtime/fullscreen/UIKeyboardHandlerFullscreen.h \
|
---|
307 | src/runtime/fullscreen/UIMachineLogicFullscreen.h \
|
---|
308 | src/runtime/fullscreen/UIMachineViewFullscreen.h \
|
---|
309 | src/runtime/fullscreen/UIMachineWindowFullscreen.h \
|
---|
310 | src/runtime/normal/UIKeyboardHandlerNormal.h \
|
---|
311 | src/runtime/normal/UIMachineLogicNormal.h \
|
---|
312 | src/runtime/normal/UIMachineViewNormal.h \
|
---|
313 | src/runtime/normal/UIMachineWindowNormal.h \
|
---|
314 | src/runtime/scale/UIKeyboardHandlerScale.h \
|
---|
315 | src/runtime/scale/UIMachineLogicScale.h \
|
---|
316 | src/runtime/scale/UIMachineViewScale.h \
|
---|
317 | src/runtime/scale/UIMachineWindowScale.h \
|
---|
318 | src/runtime/seamless/UIKeyboardHandlerSeamless.h \
|
---|
319 | src/runtime/seamless/UIMachineLogicSeamless.h \
|
---|
320 | src/runtime/seamless/UIMachineViewSeamless.h \
|
---|
321 | src/runtime/seamless/UIMachineWindowSeamless.h \
|
---|
322 | src/selector/UIActionPoolSelector.h \
|
---|
323 | src/selector/UIVMDesktop.h \
|
---|
324 | src/selector/UIVMItem.h \
|
---|
325 | src/selector/UIVirtualBoxEventHandler.h \
|
---|
326 | src/selector/UISelectorWindow.h \
|
---|
327 | src/selector/VBoxSnapshotsWgt.h \
|
---|
328 | src/selector/graphics/chooser/UIGChooser.h \
|
---|
329 | src/selector/graphics/chooser/UIGChooserModel.h \
|
---|
330 | src/selector/graphics/chooser/UIGChooserView.h \
|
---|
331 | src/selector/graphics/chooser/UIGChooserHandlerMouse.h \
|
---|
332 | src/selector/graphics/chooser/UIGChooserHandlerKeyboard.h \
|
---|
333 | src/selector/graphics/chooser/UIGChooserItem.h \
|
---|
334 | src/selector/graphics/chooser/UIGChooserItemGroup.h \
|
---|
335 | src/selector/graphics/chooser/UIGChooserItemMachine.h \
|
---|
336 | src/selector/graphics/details/UIGDetails.h \
|
---|
337 | src/selector/graphics/details/UIGDetailsModel.h \
|
---|
338 | src/selector/graphics/details/UIGDetailsView.h \
|
---|
339 | src/selector/graphics/details/UIGDetailsItem.h \
|
---|
340 | src/selector/graphics/details/UIGDetailsGroup.h \
|
---|
341 | src/selector/graphics/details/UIGDetailsSet.h \
|
---|
342 | src/selector/graphics/details/UIGDetailsElement.h \
|
---|
343 | src/selector/graphics/details/UIGDetailsElements.h \
|
---|
344 | src/selector/graphics/details/UIGMachinePreview.h \
|
---|
345 | src/settings/UISettingsDialog.h \
|
---|
346 | src/settings/UISettingsDialogSpecific.h \
|
---|
347 | src/settings/UISettingsPage.h \
|
---|
348 | src/settings/VBoxSettingsSelector.h \
|
---|
349 | src/settings/global/UIGlobalSettingsExtension.h \
|
---|
350 | src/settings/global/UIGlobalSettingsGeneral.h \
|
---|
351 | src/settings/global/UIGlobalSettingsInput.h \
|
---|
352 | src/settings/global/UIGlobalSettingsLanguage.h \
|
---|
353 | src/settings/global/UIGlobalSettingsDisplay.h \
|
---|
354 | src/settings/global/UIGlobalSettingsNetwork.h \
|
---|
355 | src/settings/global/UIGlobalSettingsNetworkDetailsNAT.h \
|
---|
356 | src/settings/global/UIGlobalSettingsNetworkDetailsHost.h \
|
---|
357 | src/settings/global/UIGlobalSettingsPortForwardingDlg.h \
|
---|
358 | src/settings/machine/UIMachineSettingsAudio.h \
|
---|
359 | src/settings/machine/UIMachineSettingsDisplay.h \
|
---|
360 | src/settings/machine/UIMachineSettingsGeneral.h \
|
---|
361 | src/settings/machine/UIMachineSettingsNetwork.h \
|
---|
362 | src/settings/machine/UIMachineSettingsParallel.h \
|
---|
363 | src/settings/machine/UIMachineSettingsPortForwardingDlg.h \
|
---|
364 | src/settings/machine/UIMachineSettingsSF.h \
|
---|
365 | src/settings/machine/UIMachineSettingsSFDetails.h \
|
---|
366 | src/settings/machine/UIMachineSettingsSerial.h \
|
---|
367 | src/settings/machine/UIMachineSettingsStorage.h \
|
---|
368 | src/settings/machine/UIMachineSettingsSystem.h \
|
---|
369 | src/settings/machine/UIMachineSettingsUSB.h \
|
---|
370 | src/settings/machine/UIMachineSettingsUSBFilterDetails.h \
|
---|
371 | src/widgets/UIApplianceEditorWidget.h \
|
---|
372 | src/widgets/UIApplianceExportEditorWidget.h \
|
---|
373 | src/widgets/UIApplianceImportEditorWidget.h \
|
---|
374 | src/widgets/UIBar.h \
|
---|
375 | src/widgets/UIBootTable.h \
|
---|
376 | src/widgets/UIHostComboEditor.h \
|
---|
377 | src/widgets/UIHotKeyEditor.h \
|
---|
378 | src/widgets/UILineTextEdit.h \
|
---|
379 | src/widgets/UIPopupBox.h \
|
---|
380 | src/widgets/UIPopupPane.h \
|
---|
381 | src/widgets/UIPopupPaneTextPane.h \
|
---|
382 | src/widgets/UIPopupPaneButtonPane.h \
|
---|
383 | src/widgets/UIPopupStack.h \
|
---|
384 | src/widgets/UIPopupStackViewport.h \
|
---|
385 | src/widgets/UIPortForwardingTable.h \
|
---|
386 | src/widgets/UIProgressDialog.h \
|
---|
387 | src/widgets/UISpacerWidgets.h \
|
---|
388 | src/widgets/UISpecialControls.h \
|
---|
389 | src/widgets/VBoxFilePathSelectorWidget.h \
|
---|
390 | src/widgets/VBoxMediaComboBox.h \
|
---|
391 | src/widgets/UIMiniToolBar.h \
|
---|
392 | src/widgets/VBoxOSTypeSelectorButton.h \
|
---|
393 | src/widgets/UINameAndSystemEditor.h \
|
---|
394 | src/widgets/UIWarningPane.h \
|
---|
395 | src/widgets/UIFilmContainer.h \
|
---|
396 | src/widgets/graphics/UIGraphicsButton.h \
|
---|
397 | src/widgets/graphics/UIGraphicsRotatorButton.h \
|
---|
398 | src/widgets/graphics/UIGraphicsZoomButton.h \
|
---|
399 | src/widgets/graphics/UIGraphicsToolBar.h \
|
---|
400 | src/widgets/graphics/UIGraphicsTextPane.h \
|
---|
401 | src/wizards/UIWizard.h \
|
---|
402 | src/wizards/UIWizardPage.h \
|
---|
403 | src/wizards/newvm/UIWizardNewVM.h \
|
---|
404 | src/wizards/newvm/UIWizardNewVMPageBasic1.h \
|
---|
405 | src/wizards/newvm/UIWizardNewVMPageBasic2.h \
|
---|
406 | src/wizards/newvm/UIWizardNewVMPageBasic3.h \
|
---|
407 | src/wizards/newvm/UIWizardNewVMPageExpert.h \
|
---|
408 | src/wizards/newvd/UIWizardNewVD.h \
|
---|
409 | src/wizards/newvd/UIWizardNewVDPageBasic1.h \
|
---|
410 | src/wizards/newvd/UIWizardNewVDPageBasic2.h \
|
---|
411 | src/wizards/newvd/UIWizardNewVDPageBasic3.h \
|
---|
412 | src/wizards/newvd/UIWizardNewVDPageExpert.h \
|
---|
413 | src/wizards/clonevm/UIWizardCloneVM.h \
|
---|
414 | src/wizards/clonevm/UIWizardCloneVMPageBasic1.h \
|
---|
415 | src/wizards/clonevm/UIWizardCloneVMPageBasic2.h \
|
---|
416 | src/wizards/clonevm/UIWizardCloneVMPageBasic3.h \
|
---|
417 | src/wizards/clonevm/UIWizardCloneVMPageExpert.h \
|
---|
418 | src/wizards/clonevd/UIWizardCloneVD.h \
|
---|
419 | src/wizards/clonevd/UIWizardCloneVDPageBasic1.h \
|
---|
420 | src/wizards/clonevd/UIWizardCloneVDPageBasic2.h \
|
---|
421 | src/wizards/clonevd/UIWizardCloneVDPageBasic3.h \
|
---|
422 | src/wizards/clonevd/UIWizardCloneVDPageBasic4.h \
|
---|
423 | src/wizards/clonevd/UIWizardCloneVDPageExpert.h \
|
---|
424 | src/wizards/exportappliance/UIWizardExportApp.h \
|
---|
425 | src/wizards/exportappliance/UIWizardExportAppPageBasic1.h \
|
---|
426 | src/wizards/exportappliance/UIWizardExportAppPageBasic2.h \
|
---|
427 | src/wizards/exportappliance/UIWizardExportAppPageBasic3.h \
|
---|
428 | src/wizards/exportappliance/UIWizardExportAppPageBasic4.h \
|
---|
429 | src/wizards/exportappliance/UIWizardExportAppPageExpert.h \
|
---|
430 | src/wizards/importappliance/UIWizardImportApp.h \
|
---|
431 | src/wizards/importappliance/UIWizardImportAppPageBasic1.h \
|
---|
432 | src/wizards/importappliance/UIWizardImportAppPageBasic2.h \
|
---|
433 | src/wizards/importappliance/UIWizardImportAppPageExpert.h \
|
---|
434 | src/wizards/firstrun/UIWizardFirstRun.h \
|
---|
435 | src/wizards/firstrun/UIWizardFirstRunPageBasic.h
|
---|
436 |
|
---|
437 | ifdef VBOX_GUI_WITH_NETWORK_MANAGER
|
---|
438 | VirtualBox_QT_MOCHDRS += \
|
---|
439 | src/net/UINetworkManager.h \
|
---|
440 | src/net/UINetworkManagerDialog.h \
|
---|
441 | src/net/UINetworkManagerIndicator.h \
|
---|
442 | src/net/UINetworkRequest.h \
|
---|
443 | src/net/UINetworkRequestWidget.h \
|
---|
444 | src/net/UINetworkReply.h \
|
---|
445 | src/net/UINetworkCustomer.h \
|
---|
446 | src/net/UIUpdateManager.h \
|
---|
447 | src/net/UIDownloader.h \
|
---|
448 | src/net/UIDownloaderAdditions.h \
|
---|
449 | src/net/UIDownloaderExtensionPack.h \
|
---|
450 | src/net/UIDownloaderUserManual.h \
|
---|
451 | src/settings/global/UIGlobalSettingsProxy.h \
|
---|
452 | src/settings/global/UIGlobalSettingsUpdate.h
|
---|
453 | endif
|
---|
454 |
|
---|
455 | ifdef VBOX_WITH_DRAG_AND_DROP
|
---|
456 | VirtualBox_QT_MOCHDRS += \
|
---|
457 | src/runtime/UIDnDHandler.h
|
---|
458 | ifdef VBOX_WITH_DRAG_AND_DROP_GH
|
---|
459 | VirtualBox_QT_MOCHDRS += \
|
---|
460 | src/runtime/UIDnDMIMEData.h \
|
---|
461 | src/runtime/UIDnDDrag.h
|
---|
462 | endif
|
---|
463 | endif
|
---|
464 |
|
---|
465 | VirtualBox_QT_MOCHDRS.darwin += \
|
---|
466 | src/platform/darwin/UIWindowMenuManager.h
|
---|
467 |
|
---|
468 | # Sources containing local definitions of classes that use the Q_OBJECT macro.
|
---|
469 | VirtualBox_QT_MOCSRCS = \
|
---|
470 | src/UIVMLogViewer.cpp \
|
---|
471 | src/extensions/QISplitter.cpp \
|
---|
472 | src/extensions/QIAdvancedToolBar.cpp \
|
---|
473 | src/extradata/UIExtraDataManager.cpp \
|
---|
474 | src/globals/UIActionPool.cpp \
|
---|
475 | src/globals/UIThreadPool.cpp \
|
---|
476 | src/medium/UIMediumEnumerator.cpp \
|
---|
477 | src/medium/UIMediumManager.cpp \
|
---|
478 | src/runtime/UIActionPoolRuntime.cpp \
|
---|
479 | src/runtime/UIIndicatorsPool.cpp \
|
---|
480 | src/runtime/UIMachine.cpp \
|
---|
481 | src/runtime/UIMachineMenuBar.cpp \
|
---|
482 | src/selector/UIActionPoolSelector.cpp \
|
---|
483 | src/selector/UIVMDesktop.cpp \
|
---|
484 | src/settings/UISettingsDialogSpecific.cpp \
|
---|
485 | src/settings/machine/UIMachineSettingsStorage.cpp \
|
---|
486 | src/settings/machine/UIMachineSettingsUSB.cpp \
|
---|
487 | src/widgets/UIHotKeyEditor.cpp \
|
---|
488 | src/widgets/UIPortForwardingTable.cpp \
|
---|
489 | src/wizards/importappliance/UIWizardImportApp.cpp
|
---|
490 |
|
---|
491 | ifdef VBOX_GUI_WITH_NETWORK_MANAGER
|
---|
492 | VirtualBox_QT_MOCSRCS += \
|
---|
493 | src/net/UINetworkReply.cpp \
|
---|
494 | src/net/UIUpdateManager.cpp
|
---|
495 | endif
|
---|
496 |
|
---|
497 | VirtualBox_QT_MOCSRCS.darwin += \
|
---|
498 | src/platform/darwin/UIWindowMenuManager.cpp
|
---|
499 | VirtualBox_QT_MOCSRCS.win += \
|
---|
500 | src/extensions/QIFileDialog.cpp
|
---|
501 |
|
---|
502 | ifdef VBOX_WITH_XPCOM
|
---|
503 | VirtualBox_QT_MOCSRCS += \
|
---|
504 | src/globals/COMDefs.cpp
|
---|
505 | endif
|
---|
506 |
|
---|
507 | VirtualBox_SOURCES = \
|
---|
508 | src/main.cpp \
|
---|
509 | src/UIMediumTypeChangeDialog.cpp \
|
---|
510 | src/VBoxAboutDlg.cpp \
|
---|
511 | src/VBoxGlobalSettings.cpp \
|
---|
512 | src/VBoxLicenseViewer.cpp \
|
---|
513 | src/VBoxSnapshotDetailsDlg.cpp \
|
---|
514 | src/VBoxTakeSnapshotDlg.cpp \
|
---|
515 | src/VBoxVMInformationDlg.cpp \
|
---|
516 | src/UIVMLogViewer.cpp \
|
---|
517 | src/converter/UIConverter.cpp \
|
---|
518 | src/converter/UIConverterBackendCOM.cpp \
|
---|
519 | src/converter/UIConverterBackendGlobal.cpp \
|
---|
520 | src/extensions/QIAdvancedSlider.cpp \
|
---|
521 | src/extensions/QIArrowButtonPress.cpp \
|
---|
522 | src/extensions/QIArrowButtonSwitch.cpp \
|
---|
523 | src/extensions/QIArrowSplitter.cpp \
|
---|
524 | src/extensions/QIDialog.cpp \
|
---|
525 | src/extensions/QIDialogButtonBox.cpp \
|
---|
526 | src/extensions/QIFileDialog.cpp \
|
---|
527 | src/extensions/QILabel.cpp \
|
---|
528 | src/extensions/QILabelSeparator.cpp \
|
---|
529 | src/extensions/QILineEdit.cpp \
|
---|
530 | src/extensions/QIListView.cpp \
|
---|
531 | src/extensions/QIMainDialog.cpp \
|
---|
532 | src/extensions/QIMessageBox.cpp \
|
---|
533 | src/extensions/QIProcess.cpp \
|
---|
534 | src/extensions/QIRichTextLabel.cpp \
|
---|
535 | src/extensions/QIRichToolButton.cpp \
|
---|
536 | src/extensions/QISplitter.cpp \
|
---|
537 | src/extensions/QIStateIndicator.cpp \
|
---|
538 | src/extensions/QIStatusBar.cpp \
|
---|
539 | src/extensions/QITableView.cpp \
|
---|
540 | src/extensions/QITextEdit.cpp \
|
---|
541 | src/extensions/QITreeView.cpp \
|
---|
542 | src/extensions/QITreeWidget.cpp \
|
---|
543 | src/extensions/QIWidgetValidator.cpp \
|
---|
544 | src/extensions/QIAdvancedToolBar.cpp \
|
---|
545 | src/extensions/graphics/QIGraphicsWidget.cpp \
|
---|
546 | src/extradata/UIExtraDataDefs.cpp \
|
---|
547 | src/extradata/UIExtraDataManager.cpp \
|
---|
548 | src/globals/UIDefs.cpp \
|
---|
549 | src/globals/COMDefs.cpp \
|
---|
550 | src/globals/UIActionPool.cpp \
|
---|
551 | src/globals/UIAnimationFramework.cpp \
|
---|
552 | src/globals/UIIconPool.cpp \
|
---|
553 | src/globals/UIImageTools.cpp \
|
---|
554 | src/globals/UIMainEventListener.cpp \
|
---|
555 | src/globals/UIMessageCenter.cpp \
|
---|
556 | src/globals/UIModalWindowManager.cpp \
|
---|
557 | src/globals/UIPopupCenter.cpp \
|
---|
558 | src/globals/UIShortcutPool.cpp \
|
---|
559 | src/globals/UIThreadPool.cpp \
|
---|
560 | src/globals/VBoxGlobal.cpp \
|
---|
561 | src/medium/UIMediumDefs.cpp \
|
---|
562 | src/medium/UIMedium.cpp \
|
---|
563 | src/medium/UIMediumEnumerator.cpp \
|
---|
564 | src/medium/UIMediumManager.cpp \
|
---|
565 | src/runtime/UIActionPoolRuntime.cpp \
|
---|
566 | src/runtime/UIConsoleEventHandler.cpp \
|
---|
567 | src/runtime/UIFrameBuffer.cpp \
|
---|
568 | src/runtime/UIFrameBufferQImage.cpp \
|
---|
569 | src/runtime/UIIndicatorsPool.cpp \
|
---|
570 | src/runtime/UIKeyboardHandler.cpp \
|
---|
571 | src/runtime/UIMachine.cpp \
|
---|
572 | src/runtime/UIMachineLogic.cpp \
|
---|
573 | src/runtime/UIMachineMenuBar.cpp \
|
---|
574 | src/runtime/UIMachineView.cpp \
|
---|
575 | src/runtime/UIMachineWindow.cpp \
|
---|
576 | src/runtime/UIMouseHandler.cpp \
|
---|
577 | src/runtime/UIMultiScreenLayout.cpp \
|
---|
578 | src/runtime/UISession.cpp \
|
---|
579 | src/runtime/UIVMCloseDialog.cpp \
|
---|
580 | src/runtime/fullscreen/UIKeyboardHandlerFullscreen.cpp \
|
---|
581 | src/runtime/fullscreen/UIMachineLogicFullscreen.cpp \
|
---|
582 | src/runtime/fullscreen/UIMachineViewFullscreen.cpp \
|
---|
583 | src/runtime/fullscreen/UIMachineWindowFullscreen.cpp \
|
---|
584 | src/runtime/normal/UIKeyboardHandlerNormal.cpp \
|
---|
585 | src/runtime/normal/UIMachineLogicNormal.cpp \
|
---|
586 | src/runtime/normal/UIMachineViewNormal.cpp \
|
---|
587 | src/runtime/normal/UIMachineWindowNormal.cpp \
|
---|
588 | src/runtime/scale/UIKeyboardHandlerScale.cpp \
|
---|
589 | src/runtime/scale/UIMachineLogicScale.cpp \
|
---|
590 | src/runtime/scale/UIMachineViewScale.cpp \
|
---|
591 | src/runtime/scale/UIMachineWindowScale.cpp \
|
---|
592 | src/runtime/seamless/UIKeyboardHandlerSeamless.cpp \
|
---|
593 | src/runtime/seamless/UIMachineLogicSeamless.cpp \
|
---|
594 | src/runtime/seamless/UIMachineViewSeamless.cpp \
|
---|
595 | src/runtime/seamless/UIMachineWindowSeamless.cpp \
|
---|
596 | src/selector/UIActionPoolSelector.cpp \
|
---|
597 | src/selector/UIVMDesktop.cpp \
|
---|
598 | src/selector/UIVMItem.cpp \
|
---|
599 | src/selector/UIVirtualBoxEventHandler.cpp \
|
---|
600 | src/selector/UISelectorWindow.cpp \
|
---|
601 | src/selector/graphics/chooser/UIGChooser.cpp \
|
---|
602 | src/selector/graphics/chooser/UIGChooserModel.cpp \
|
---|
603 | src/selector/graphics/chooser/UIGChooserView.cpp \
|
---|
604 | src/selector/graphics/chooser/UIGChooserHandlerMouse.cpp \
|
---|
605 | src/selector/graphics/chooser/UIGChooserHandlerKeyboard.cpp \
|
---|
606 | src/selector/graphics/chooser/UIGChooserItem.cpp \
|
---|
607 | src/selector/graphics/chooser/UIGChooserItemGroup.cpp \
|
---|
608 | src/selector/graphics/chooser/UIGChooserItemMachine.cpp \
|
---|
609 | src/selector/graphics/details/UIGDetails.cpp \
|
---|
610 | src/selector/graphics/details/UIGDetailsModel.cpp \
|
---|
611 | src/selector/graphics/details/UIGDetailsView.cpp \
|
---|
612 | src/selector/graphics/details/UIGDetailsItem.cpp \
|
---|
613 | src/selector/graphics/details/UIGDetailsGroup.cpp \
|
---|
614 | src/selector/graphics/details/UIGDetailsSet.cpp \
|
---|
615 | src/selector/graphics/details/UIGDetailsElement.cpp \
|
---|
616 | src/selector/graphics/details/UIGDetailsElements.cpp \
|
---|
617 | src/selector/graphics/details/UIGMachinePreview.cpp \
|
---|
618 | src/selector/VBoxSnapshotsWgt.cpp \
|
---|
619 | src/settings/UISettingsDefs.cpp \
|
---|
620 | src/settings/UISettingsDialog.cpp \
|
---|
621 | src/settings/UISettingsDialogSpecific.cpp \
|
---|
622 | src/settings/UISettingsPage.cpp \
|
---|
623 | src/settings/VBoxSettingsSelector.cpp \
|
---|
624 | src/settings/global/UIGlobalSettingsExtension.cpp \
|
---|
625 | src/settings/global/UIGlobalSettingsGeneral.cpp \
|
---|
626 | src/settings/global/UIGlobalSettingsInput.cpp \
|
---|
627 | src/settings/global/UIGlobalSettingsLanguage.cpp \
|
---|
628 | src/settings/global/UIGlobalSettingsDisplay.cpp \
|
---|
629 | src/settings/global/UIGlobalSettingsNetwork.cpp \
|
---|
630 | src/settings/global/UIGlobalSettingsNetworkDetailsNAT.cpp \
|
---|
631 | src/settings/global/UIGlobalSettingsNetworkDetailsHost.cpp \
|
---|
632 | src/settings/global/UIGlobalSettingsPortForwardingDlg.cpp \
|
---|
633 | src/settings/machine/UIMachineSettingsAudio.cpp \
|
---|
634 | src/settings/machine/UIMachineSettingsDisplay.cpp \
|
---|
635 | src/settings/machine/UIMachineSettingsGeneral.cpp \
|
---|
636 | src/settings/machine/UIMachineSettingsNetwork.cpp \
|
---|
637 | src/settings/machine/UIMachineSettingsParallel.cpp \
|
---|
638 | src/settings/machine/UIMachineSettingsPortForwardingDlg.cpp \
|
---|
639 | src/settings/machine/UIMachineSettingsSF.cpp \
|
---|
640 | src/settings/machine/UIMachineSettingsSFDetails.cpp \
|
---|
641 | src/settings/machine/UIMachineSettingsSerial.cpp \
|
---|
642 | src/settings/machine/UIMachineSettingsStorage.cpp \
|
---|
643 | src/settings/machine/UIMachineSettingsSystem.cpp \
|
---|
644 | src/settings/machine/UIMachineSettingsUSB.cpp \
|
---|
645 | src/settings/machine/UIMachineSettingsUSBFilterDetails.cpp \
|
---|
646 | src/widgets/UIApplianceEditorWidget.cpp \
|
---|
647 | src/widgets/UIApplianceExportEditorWidget.cpp \
|
---|
648 | src/widgets/UIApplianceImportEditorWidget.cpp \
|
---|
649 | src/widgets/UIBar.cpp \
|
---|
650 | src/widgets/UIBootTable.cpp \
|
---|
651 | src/widgets/UIHostComboEditor.cpp \
|
---|
652 | src/widgets/UIHotKeyEditor.cpp \
|
---|
653 | src/widgets/UILineTextEdit.cpp \
|
---|
654 | src/widgets/UIPopupBox.cpp \
|
---|
655 | src/widgets/UIPopupPane.cpp \
|
---|
656 | src/widgets/UIPopupPaneTextPane.cpp \
|
---|
657 | src/widgets/UIPopupPaneButtonPane.cpp \
|
---|
658 | src/widgets/UIPopupStack.cpp \
|
---|
659 | src/widgets/UIPopupStackViewport.cpp \
|
---|
660 | src/widgets/UIPortForwardingTable.cpp \
|
---|
661 | src/widgets/UIProgressDialog.cpp \
|
---|
662 | src/widgets/UISpecialControls.cpp \
|
---|
663 | src/widgets/UIToolBar.cpp \
|
---|
664 | src/widgets/VBoxFilePathSelectorWidget.cpp \
|
---|
665 | src/widgets/VBoxGuestRAMSlider.cpp \
|
---|
666 | src/widgets/VBoxMediaComboBox.cpp \
|
---|
667 | src/widgets/UIMiniToolBar.cpp \
|
---|
668 | src/widgets/VBoxOSTypeSelectorButton.cpp \
|
---|
669 | src/widgets/UINameAndSystemEditor.cpp \
|
---|
670 | src/widgets/UIWarningPane.cpp \
|
---|
671 | src/widgets/UIFilmContainer.cpp \
|
---|
672 | src/widgets/graphics/UIGraphicsButton.cpp \
|
---|
673 | src/widgets/graphics/UIGraphicsRotatorButton.cpp \
|
---|
674 | src/widgets/graphics/UIGraphicsZoomButton.cpp \
|
---|
675 | src/widgets/graphics/UIGraphicsToolBar.cpp \
|
---|
676 | src/widgets/graphics/UIGraphicsTextPane.cpp \
|
---|
677 | src/wizards/UIWizard.cpp \
|
---|
678 | src/wizards/UIWizardPage.cpp \
|
---|
679 | src/wizards/newvm/UIWizardNewVM.cpp \
|
---|
680 | src/wizards/newvm/UIWizardNewVMPageBasic1.cpp \
|
---|
681 | src/wizards/newvm/UIWizardNewVMPageBasic2.cpp \
|
---|
682 | src/wizards/newvm/UIWizardNewVMPageBasic3.cpp \
|
---|
683 | src/wizards/newvm/UIWizardNewVMPageExpert.cpp \
|
---|
684 | src/wizards/newvd/UIWizardNewVD.cpp \
|
---|
685 | src/wizards/newvd/UIWizardNewVDPageBasic1.cpp \
|
---|
686 | src/wizards/newvd/UIWizardNewVDPageBasic2.cpp \
|
---|
687 | src/wizards/newvd/UIWizardNewVDPageBasic3.cpp \
|
---|
688 | src/wizards/newvd/UIWizardNewVDPageExpert.cpp \
|
---|
689 | src/wizards/clonevm/UIWizardCloneVM.cpp \
|
---|
690 | src/wizards/clonevm/UIWizardCloneVMPageBasic1.cpp \
|
---|
691 | src/wizards/clonevm/UIWizardCloneVMPageBasic2.cpp \
|
---|
692 | src/wizards/clonevm/UIWizardCloneVMPageBasic3.cpp \
|
---|
693 | src/wizards/clonevm/UIWizardCloneVMPageExpert.cpp \
|
---|
694 | src/wizards/clonevd/UIWizardCloneVD.cpp \
|
---|
695 | src/wizards/clonevd/UIWizardCloneVDPageBasic1.cpp \
|
---|
696 | src/wizards/clonevd/UIWizardCloneVDPageBasic2.cpp \
|
---|
697 | src/wizards/clonevd/UIWizardCloneVDPageBasic3.cpp \
|
---|
698 | src/wizards/clonevd/UIWizardCloneVDPageBasic4.cpp \
|
---|
699 | src/wizards/clonevd/UIWizardCloneVDPageExpert.cpp \
|
---|
700 | src/wizards/exportappliance/UIWizardExportApp.cpp \
|
---|
701 | src/wizards/exportappliance/UIWizardExportAppPageBasic1.cpp \
|
---|
702 | src/wizards/exportappliance/UIWizardExportAppPageBasic2.cpp \
|
---|
703 | src/wizards/exportappliance/UIWizardExportAppPageBasic3.cpp \
|
---|
704 | src/wizards/exportappliance/UIWizardExportAppPageBasic4.cpp \
|
---|
705 | src/wizards/exportappliance/UIWizardExportAppPageExpert.cpp \
|
---|
706 | src/wizards/importappliance/UIWizardImportApp.cpp \
|
---|
707 | src/wizards/importappliance/UIWizardImportAppPageBasic1.cpp \
|
---|
708 | src/wizards/importappliance/UIWizardImportAppPageBasic2.cpp \
|
---|
709 | src/wizards/importappliance/UIWizardImportAppPageExpert.cpp \
|
---|
710 | src/wizards/firstrun/UIWizardFirstRun.cpp \
|
---|
711 | src/wizards/firstrun/UIWizardFirstRunPageBasic.cpp
|
---|
712 |
|
---|
713 | ifdef VBOX_GUI_WITH_NETWORK_MANAGER
|
---|
714 | VirtualBox_SOURCES += \
|
---|
715 | src/net/UINetworkManager.cpp \
|
---|
716 | src/net/UINetworkManagerDialog.cpp \
|
---|
717 | src/net/UINetworkManagerIndicator.cpp \
|
---|
718 | src/net/UINetworkRequest.cpp \
|
---|
719 | src/net/UINetworkRequestWidget.cpp \
|
---|
720 | src/net/UINetworkReply.cpp \
|
---|
721 | src/net/UINetworkCustomer.cpp \
|
---|
722 | src/net/UIDownloader.cpp \
|
---|
723 | src/net/UIDownloaderAdditions.cpp \
|
---|
724 | src/net/UIDownloaderExtensionPack.cpp \
|
---|
725 | src/net/UIDownloaderUserManual.cpp \
|
---|
726 | src/net/UIUpdateDefs.cpp \
|
---|
727 | src/net/UIUpdateManager.cpp \
|
---|
728 | src/settings/global/UIGlobalSettingsProxy.cpp \
|
---|
729 | src/settings/global/UIGlobalSettingsUpdate.cpp
|
---|
730 | endif
|
---|
731 |
|
---|
732 | VirtualBox_SOURCES.darwin += \
|
---|
733 | src/platform/darwin/UIAbstractDockIconPreview.cpp \
|
---|
734 | src/platform/darwin/UICocoaDockIconPreview.mm \
|
---|
735 | src/platform/darwin/UIWindowMenuManager.cpp \
|
---|
736 | src/runtime/UIFrameBufferQuartz2D.cpp
|
---|
737 |
|
---|
738 | if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) # X11
|
---|
739 | VirtualBox_SOURCES += \
|
---|
740 | src/platform/x11/UIDesktopServices_x11.cpp \
|
---|
741 | src/platform/x11/VBoxX11Helper.cpp \
|
---|
742 | src/platform/x11/XKeyboard-new.cpp
|
---|
743 | endif
|
---|
744 |
|
---|
745 | VirtualBox_SOURCES.win += \
|
---|
746 | src/platform/win/VirtualBox.rc \
|
---|
747 | src/platform/win/UIDesktopServices_win.cpp \
|
---|
748 | src/platform/win/VBoxUtils-win.cpp \
|
---|
749 | src/platform/win/WinKeyboard.cpp
|
---|
750 |
|
---|
751 | VirtualBox_DEFS.darwin += VBOX_DARWIN_USE_NATIVE_CONTROLS
|
---|
752 | VirtualBox_SOURCES.darwin += \
|
---|
753 | src/platform/darwin/CocoaEventHelper.mm \
|
---|
754 | src/platform/darwin/DarwinKeyboard.cpp \
|
---|
755 | src/platform/darwin/UICocoaApplication.mm \
|
---|
756 | src/platform/darwin/UICocoaSpecialControls.mm \
|
---|
757 | src/platform/darwin/UIDesktopServices_darwin.cpp \
|
---|
758 | src/platform/darwin/UIDesktopServices_darwin_cocoa.mm \
|
---|
759 | src/platform/darwin/VBoxUtils-darwin-cocoa.mm \
|
---|
760 | src/platform/darwin/VBoxUtils-darwin.cpp
|
---|
761 | VirtualBox_QT_MOCHDRS.darwin += \
|
---|
762 | src/platform/darwin/UICocoaSpecialControls.h
|
---|
763 |
|
---|
764 | ifdef VBOX_WITH_ICHAT_THEATER
|
---|
765 | VirtualBox_SOURCES.darwin += \
|
---|
766 | src/platform/darwin/VBoxIChatTheaterWrapper.m
|
---|
767 | endif
|
---|
768 |
|
---|
769 | if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
|
---|
770 | VirtualBox_SOURCES += \
|
---|
771 | src/VBoxFBOverlay.cpp \
|
---|
772 | src/VBoxGLSupportInfo.cpp
|
---|
773 | endif
|
---|
774 |
|
---|
775 | ifdef VBOX_WITH_DRAG_AND_DROP
|
---|
776 | VirtualBox_SOURCES += \
|
---|
777 | src/runtime/UIDnDHandler.cpp
|
---|
778 | ifdef VBOX_WITH_DRAG_AND_DROP_GH
|
---|
779 | VirtualBox_SOURCES += \
|
---|
780 | src/runtime/UIDnDMIMEData.cpp \
|
---|
781 | src/runtime/UIDnDDrag.cpp
|
---|
782 | VirtualBox_SOURCES.win += \
|
---|
783 | src/runtime/UIDnDDropSource_win.cpp \
|
---|
784 | src/runtime/UIDnDDataObject_win.cpp \
|
---|
785 | src/runtime/UIDnDEnumFormat_win.cpp
|
---|
786 | endif
|
---|
787 | endif
|
---|
788 |
|
---|
789 | # The Qt modules we're using.
|
---|
790 | # (The include directory and lib/framework for each module will be added by the Qt4 unit.)
|
---|
791 | VirtualBox_QT_MODULES = Core Gui Network
|
---|
792 | if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
|
---|
793 | VirtualBox_QT_MODULES += OpenGL
|
---|
794 | endif
|
---|
795 |
|
---|
796 | # Pull in the ui files
|
---|
797 | $(eval VirtualBox_SOURCES += $(FORMS))
|
---|
798 |
|
---|
799 | # Resource files with some OSE differences (VirtualBoxBrand.qrc is created further down).
|
---|
800 | VirtualBox_SOURCES += VirtualBox1.qrc
|
---|
801 | VirtualBox1.qrc_RCCFLAGS = -name BASIC1
|
---|
802 | VirtualBox_SOURCES += VirtualBox2.qrc
|
---|
803 | VirtualBox2.qrc_RCCFLAGS = -name BASIC2
|
---|
804 | ifeq ($(KBUILD_TARGET),darwin)
|
---|
805 | VirtualBox_SOURCES += VirtualBox1_hidpi.qrc
|
---|
806 | VirtualBox1_hidpi.qrc_RCCFLAGS = -name BASIC1_HIDPI
|
---|
807 | VirtualBox_SOURCES += VirtualBox2_hidpi.qrc
|
---|
808 | VirtualBox2_hidpi.qrc_RCCFLAGS = -name BASIC2_HIDPI
|
---|
809 | VirtualBox_SOURCES += VirtualBoxMac.qrc
|
---|
810 | VirtualBoxMac.qrc_RCCFLAGS = -name MAC
|
---|
811 | else
|
---|
812 | VirtualBox_SOURCES += VirtualBoxOther.qrc
|
---|
813 | VirtualBoxOther.qrc_RCCFLAGS = -name OTHER
|
---|
814 | endif
|
---|
815 | VirtualBox_SOURCES += $(VBOX_VIRTUALBOX4_OUT_DIR)/VirtualBoxBrand.qrc
|
---|
816 | $(VBOX_VIRTUALBOX4_OUT_DIR)/VirtualBoxBrand.qrc_RCCFLAGS = -name BRAND
|
---|
817 | if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
|
---|
818 | VirtualBox_SOURCES += VirtualBoxShaders.qrc
|
---|
819 | VirtualBoxShaders.qrc_RCCFLAGS = -name SHADERS
|
---|
820 | endif
|
---|
821 |
|
---|
822 | # Import the translation source from VBoxUI.pro and add the qt_xx_YY counterparts
|
---|
823 | VirtualBox_QT_TRANSLATIONS := $(TRANSLATIONS) \
|
---|
824 | $(patsubst nls/VirtualBox_%.ts,nls/qt_%.ts, $(filter nls/VirtualBox_%.ts,$(TRANSLATIONS)))
|
---|
825 | # Compress the translation units.
|
---|
826 | VirtualBox_LRCFLAGS = -silent
|
---|
827 | # Where to install the translations (a separate install target, VirtualBox-nls-inst is created).
|
---|
828 | VirtualBox_QT_TRANSLATIONS_INST = $(INST_BIN)nls/
|
---|
829 |
|
---|
830 |
|
---|
831 | ## @todo how to detect what tool is used?
|
---|
832 | ## @todo GCC3 seems to lack -Wno-missing-base-class-initializer, so we use
|
---|
833 | # more generic -Wno-extra
|
---|
834 | # bird: What about $(if $(VBOX_GCC_Wno-missing-base-class-initializer),$(VBOX_GCC_Wno-missing-base-class-initializer),$(VBOX_GCC_Wno-extra))?
|
---|
835 | ifdef VBOX_WITH_XPCOM
|
---|
836 | VirtualBox_src/globals/COMDefs.cpp_CXXFLAGS = $(VBOX_GCC_Wno-extra)
|
---|
837 | endif
|
---|
838 |
|
---|
839 |
|
---|
840 | #
|
---|
841 | # Generate the COM wrappers.
|
---|
842 | #
|
---|
843 | includedep $(PATH_TARGET)/VirtualBoxComWrapperFiles.dep
|
---|
844 | VirtualBox_BLDDIRS += $(VirtualBox_0_OUTDIR)/include
|
---|
845 | VirtualBox_INTERMEDIATES += $(VirtualBox_0_OUTDIR)/include/COMWrappers
|
---|
846 | VirtualBox_CLEAN += $(wildcard $(VirtualBox_0_OUTDIR)/include/*) $(PATH_TARGET)/VirtualBoxComWrapperFiles.dep
|
---|
847 | VirtualBox_SOURCES += $(VirtualBox_0_OUTDIR)/include/COMWrappers.cpp
|
---|
848 |
|
---|
849 | ## @todo kmk doesn't remake optional outputs when they are missing...
|
---|
850 | $$(VirtualBox_0_OUTDIR)/include/COMWrappers \
|
---|
851 | + $(PATH_TARGET)/VirtualBoxComWrapperFiles.dep \
|
---|
852 | +| $(if-expr defined(VirtualBox_VBOX_COMWRAPPERS) \
|
---|
853 | , $(VirtualBox_VBOX_COMWRAPPERS) \
|
---|
854 | , $$(VirtualBox_0_OUTDIR)/include/COMEnums.h \
|
---|
855 | $$(VirtualBox_0_OUTDIR)/include/COMWrappers.cpp \
|
---|
856 | ): \
|
---|
857 | $(VBOX_XIDL_FILE) \
|
---|
858 | $(VBOX_VIRTUALBOX4_SRC)/src/globals/COMWrappers.xsl \
|
---|
859 | $(VBOX_FILESPLIT) \
|
---|
860 | | $$(dir $$@)
|
---|
861 | $(call MSG_GENERATE,VirtualBox,$<,$@)
|
---|
862 | $(QUIET)$(RM) -f -- "$@" "$(PATH_TARGET)/VirtualBoxComWrapperFiles.dep"
|
---|
863 | $(QUIET)$(VBOX_XSLTPROC) -o $@ $(VBOX_VIRTUALBOX4_SRC)/src/globals/COMWrappers.xsl $<
|
---|
864 | $(QUIET)$(VBOX_FILESPLIT) $@ $(VirtualBox_0_OUTDIR)/include \
|
---|
865 | $(PATH_TARGET)/VirtualBoxComWrapperFiles.dep VirtualBox_VBOX_COMWRAPPERS
|
---|
866 | $(APPEND) "$@"
|
---|
867 |
|
---|
868 | # alias for generating the COM Wrappers file.
|
---|
869 | testwrappers:: $$(VirtualBox_0_OUTDIR)/include/COMWrappers
|
---|
870 |
|
---|
871 |
|
---|
872 | #
|
---|
873 | # Generate qrc file with branded icons.
|
---|
874 | #
|
---|
875 | VirtualBox_BLDDIRS += $(VBOX_VIRTUALBOX4_OUT_DIR)
|
---|
876 | VirtualBox_CLEAN += $(VBOX_VIRTUALBOX4_OUT_DIR)/VirtualBoxBrand.qrc
|
---|
877 | $(VBOX_VIRTUALBOX4_OUT_DIR)/VirtualBoxBrand.qrc: \
|
---|
878 | $(VBOX_VIRTUALBOX4_SRC)/VirtualBoxBrand.qrc \
|
---|
879 | $(PATH_ROOT)/Config.kmk \
|
---|
880 | | $$(dir $$@)
|
---|
881 | $(call MSG_GENERATE,VirtualBox,$<,$@)
|
---|
882 | $(QUIET)$(SED) \
|
---|
883 | -e 's;@VBOX_ABOUT_PNG@;$(VBOX_BRAND_GUI_ABOUT_PNG);g' \
|
---|
884 | -e 's;@VBOX_ABOUT_16PX_PNG@;$(VBOX_BRAND_GUI_ABOUT_16PX_PNG);g' \
|
---|
885 | -e 's;@VBOX_VBOX_16PX_PNG@;$(VBOX_BRAND_GUI_VBOX_16PX_PNG);g' \
|
---|
886 | -e 's;@VBOX_VBOX_20PX_PNG@;$(VBOX_BRAND_GUI_VBOX_20PX_PNG);g' \
|
---|
887 | -e 's;@VBOX_VBOX_32PX_PNG@;$(VBOX_BRAND_GUI_VBOX_32PX_PNG);g' \
|
---|
888 | -e 's;@VBOX_VBOX_40PX_PNG@;$(VBOX_BRAND_GUI_VBOX_40PX_PNG);g' \
|
---|
889 | -e 's;@VBOX_VBOX_48PX_PNG@;$(VBOX_BRAND_GUI_VBOX_48PX_PNG);g' \
|
---|
890 | -e 's;@VBOX_VBOX_64PX_PNG@;$(VBOX_BRAND_GUI_VBOX_64PX_PNG);g' \
|
---|
891 | -e 's;@VBOX_CUBE_42PX_PNG@;$(VBOX_BRAND_GUI_CUBE_42PX_PNG);g' \
|
---|
892 | -e 's;@VBOX_CUBE_SVG@;$(VBOX_BRAND_GUI_VBOX_SVG);g' \
|
---|
893 | --output $@ \
|
---|
894 | $<
|
---|
895 |
|
---|
896 |
|
---|
897 | #
|
---|
898 | # Precompiled header - non-functional atm.
|
---|
899 | #
|
---|
900 | ifdef VBOX_WITH_PRECOMPILED_HEADERS
|
---|
901 | VirtualBox_INCS <= $(VirtualBox_0_OUTDIR)/include
|
---|
902 | VirtualBox_DEFS += VBOX_WITH_PRECOMPILED_HEADERS
|
---|
903 | VirtualBox_CXXFLAGS += -Winvalid-pch -fpch-preprocess
|
---|
904 | VirtualBox_INTERMEDIATES += $(VirtualBox_0_OUTDIR)/include/precomp.h.gch
|
---|
905 |
|
---|
906 | tstx: $$(VirtualBox_0_OUTDIR)/include/precomp.h.gch
|
---|
907 |
|
---|
908 | $$(VirtualBox_0_OUTDIR)/include/precomp.h.gch: \
|
---|
909 | $(PATH_SUB_CURRENT)/src/precomp.h \
|
---|
910 | $$(VirtualBox_0_OUTDIR)/include/COMWrappers.h \
|
---|
911 | $$(filter %.gen.h, $$(VirtualBox_INTERMEDIATES) ) \
|
---|
912 | $(VBOX_PATH_SDK)/bindings/xpcom/include/VirtualBox_XPCOM.h \
|
---|
913 | | $$(dir $$@)
|
---|
914 | time 'g++-4.0' \
|
---|
915 | '-c' \
|
---|
916 | '-g' \
|
---|
917 | $(if-expr "$(KBUILD_TYPE)" == "debug", , -O2 ) \
|
---|
918 | '-pipe' \
|
---|
919 | '-Wall' \
|
---|
920 | '-Wextra' \
|
---|
921 | '-Wno-missing-field-initializers' \
|
---|
922 | '-Wno-trigraphs' \
|
---|
923 | '-frtti' \
|
---|
924 | '-fno-exceptions' \
|
---|
925 | '-Wno-non-virtual-dtor' \
|
---|
926 | '-Wno-long-long' \
|
---|
927 | \
|
---|
928 | '-fshort-wchar' \
|
---|
929 | '-fno-strict-aliasing' \
|
---|
930 | '-fvisibility=hidden' \
|
---|
931 | '-DVBOX_HAVE_VISIBILITY_HIDDEN' \
|
---|
932 | '-DRT_USE_VISIBILITY_DEFAULT' \
|
---|
933 | '-fvisibility-inlines-hidden' \
|
---|
934 | '-Winvalid-pch' \
|
---|
935 | '-fpch-preprocess' \
|
---|
936 | \
|
---|
937 | '-F$(PATH_SDK_QT4)/Frameworks' \
|
---|
938 | '-mmacosx-version-min=10.5' \
|
---|
939 | '-isysroot' \
|
---|
940 | '/Developer/SDKs/MacOSX10.5.sdk' \
|
---|
941 | '-m32' \
|
---|
942 | \
|
---|
943 | $(foreach inc,$(VirtualBox_INCS),\$(NL)$(TAB)-I$(inc)) \
|
---|
944 | '-I$(PATH_ROOT)/include' \
|
---|
945 | '-I$(PATH_OUT)' \
|
---|
946 | '-DVBOX' \
|
---|
947 | '-DVBOX_WITH_DEBUGGER' \
|
---|
948 | '-DVBOX_WITH_64_BITS_GUESTS' \
|
---|
949 | $(if-expr "$(KBUILD_TYPE)" == "debug", '-DDEBUG' '-DDEBUG_bird' '-DDEBUG_USERNAME=bird' '-DVBOX_CHECK_STATE' ,) \
|
---|
950 | '-DRT_OS_DARWIN' \
|
---|
951 | '-D__DARWIN__' \
|
---|
952 | '-DRT_ARCH_X86' \
|
---|
953 | '-D__X86__' \
|
---|
954 | '-DIN_RING3' \
|
---|
955 | '-DQT_NO_DEBUG' \
|
---|
956 | '-DQT_THREAD_SUPPORT' \
|
---|
957 | '-DQT_SHARED' \
|
---|
958 | '-DHAVE_CONFIG_H' \
|
---|
959 | '-DHC_ARCH_BITS=32' \
|
---|
960 | '-DGC_ARCH_BITS=64' \
|
---|
961 | '-DVBOX_WITH_XPCOM' \
|
---|
962 | '-DVBOX_WITH_UPDATE_REQUEST' \
|
---|
963 | '-DVBOX_WITH_ALSA' \
|
---|
964 | '-DVBOX_WITH_PULSE' \
|
---|
965 | '-DVBOX_WITH_E1000' \
|
---|
966 | '-DVBOX_WITH_NETFLT' \
|
---|
967 | '-DVBOX_WITH_DEBUGGER_GUI' \
|
---|
968 | $(if-expr "$(KBUILD_TYPE)" != "release", '-DVBOX_WITH_DEBUGGER_GUI_MENU', ) \
|
---|
969 | '-DVBOX_WITH_VIDEOHWACCEL' \
|
---|
970 | '-DVBOX_GUI_USE_QGL' \
|
---|
971 | '-DVBOX_WITH_VIRTIO' \
|
---|
972 | '-DVBOX_WITH_PRECOMPILED_HEADERS' \
|
---|
973 | '-DVBOX_DARWIN_USE_NATIVE_CONTROLS' \
|
---|
974 | '-DQT_CORE_LIB' \
|
---|
975 | '-DQT_GUI_LIB' \
|
---|
976 | '-DQT_NETWORK_LIB' \
|
---|
977 | '-DQT_OPENGL_LIB' \
|
---|
978 | '-DMAC_OS_X_VERSION_MIN_REQUIRED=1050' \
|
---|
979 | '-DMAC_OS_X_VERSION_MAX_ALLOWED=1050' \
|
---|
980 | '-DVBOX_GUI_USE_QUARTZ2D' \
|
---|
981 | '-DVBOX_GUI_USE_QIMAGE' \
|
---|
982 | '-o' $@ $<
|
---|
983 | endif
|
---|
984 |
|
---|
985 | ifeq ($(KBUILD_TARGET),win)
|
---|
986 | #
|
---|
987 | # On Windows we'll have to generate/edit part of the resource file.
|
---|
988 | # The IDI_ICON1 name is Qt specific.
|
---|
989 | #
|
---|
990 | src/platform/win/VirtualBox.rc_INCS = $(VirtualBox_0_OUTDIR)
|
---|
991 | src/platform/win/VirtualBox.rc_DEPS = $(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc
|
---|
992 | src/platform/win/VirtualBox.rc_CLEAN = $(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc
|
---|
993 |
|
---|
994 | $$(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc: $(MAKEFILE_CURRENT) $(VBOX_WINDOWS_ICON_FILE) | $$(dir $$@)
|
---|
995 | $(APPEND) -t $@ 'IDI_ICON1 ICON "$(subst /,\\,$(VBOX_WINDOWS_ICON_FILE))"'
|
---|
996 |
|
---|
997 | endif # win
|
---|
998 |
|
---|
999 |
|
---|
1000 | ifeq ($(KBUILD_TARGET),darwin)
|
---|
1001 | #
|
---|
1002 | # Create directories for each approved language or the application
|
---|
1003 | # menu won't be translated.
|
---|
1004 | #
|
---|
1005 | INSTALLS += VirtualBox.lproj
|
---|
1006 | VirtualBox.lproj_INST = $(INST_VIRTUALBOX)Contents/Resources/
|
---|
1007 | VirtualBox.lproj_MODE = 755
|
---|
1008 | VirtualBox.lproj_DIRS := $(addsuffix .lproj,$(VBOX_APPROVED_GUI_LANGUAGES))
|
---|
1009 |
|
---|
1010 | #
|
---|
1011 | # On OS X (darwin) we need to install icon resources and compulsory bundle contents.
|
---|
1012 | # The VirtualBoxVM.app helper is for launching VMs (fixes some issues with the dock).
|
---|
1013 | #
|
---|
1014 | INSTALLS += VirtualBox.app
|
---|
1015 | VirtualBox.app_INST = $(INST_VIRTUALBOX)Contents/
|
---|
1016 | VirtualBox.app_MODE = 644
|
---|
1017 | VirtualBox.app_SOURCES = \
|
---|
1018 | src/platform/darwin/PkgInfo \
|
---|
1019 | $(VirtualBox.app_0_OUTDIR)/Info.plist \
|
---|
1020 | $(VBOX_MACOSX_ICON_FILE)=>Resources/virtualbox.icns \
|
---|
1021 | $(VBOX_BRAND_GUI_VBOX_64PX_PNG)=>Resources/virtualbox.png \
|
---|
1022 | $(PATH_ROOT)/src/VBox/Resources/darwin/virtualbox-vbox.icns=>Resources/virtualbox-vbox.icns \
|
---|
1023 | $(PATH_ROOT)/src/VBox/Resources/darwin/virtualbox-vbox-extpack.icns=>Resources/virtualbox-vbox-extpack.icns \
|
---|
1024 | $(PATH_ROOT)/src/VBox/Resources/darwin/virtualbox-ovf.icns=>Resources/virtualbox-ovf.icns \
|
---|
1025 | $(PATH_ROOT)/src/VBox/Resources/darwin/virtualbox-ova.icns=>Resources/virtualbox-ova.icns \
|
---|
1026 | $(PATH_ROOT)/src/VBox/Resources/darwin/virtualbox-vdi.icns=>Resources/virtualbox-vdi.icns \
|
---|
1027 | $(PATH_ROOT)/src/VBox/Resources/darwin/virtualbox-vmdk.icns=>Resources/virtualbox-vmdk.icns \
|
---|
1028 | $(PATH_ROOT)/src/VBox/Resources/darwin/virtualbox-vhd.icns=>Resources/virtualbox-vhd.icns \
|
---|
1029 | $(PATH_ROOT)/src/VBox/Resources/darwin/virtualbox-hdd.icns=>Resources/virtualbox-hdd.icns
|
---|
1030 |
|
---|
1031 | $$(VirtualBox.app_0_OUTDIR)/Info.plist: $(PATH_SUB_CURRENT)/src/platform/darwin/Info.plist $(VBOX_VERSION_MK) | $$(@D)/
|
---|
1032 | $(call MSG_GENERATE,VirtualBox.app,$<,$@)
|
---|
1033 | $(QUIET)$(RM) -f $@
|
---|
1034 | $(QUIET)$(SED) \
|
---|
1035 | -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
|
---|
1036 | -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
|
---|
1037 | -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
|
---|
1038 | -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
|
---|
1039 | -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
|
---|
1040 | -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
|
---|
1041 | -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
|
---|
1042 | $< > $@
|
---|
1043 |
|
---|
1044 | INSTALLS += VirtualBoxVM.app
|
---|
1045 | VirtualBoxVM.app_INST = $(VirtualBox.app_INST)Resources/VirtualBoxVM.app/Contents/
|
---|
1046 | VirtualBoxVM.app_MODE = 644
|
---|
1047 | VirtualBoxVM.app_SOURCES = \
|
---|
1048 | src/platform/darwin/VM-PkgInfo=>PkgInfo \
|
---|
1049 | $(VirtualBoxVM.app_0_OUTDIR)/VM-Info.plist=>Info.plist \
|
---|
1050 | $(foreach mysrc,$(VirtualBox.app_SOURCES),$(if-expr $(pos =>Resources/,$(mysrc)) > 0,$(mysrc),))
|
---|
1051 | VirtualBoxVM.app_SYMLINKS = \
|
---|
1052 | MacOS=>../../../MacOS/
|
---|
1053 |
|
---|
1054 | $$(VirtualBoxVM.app_0_OUTDIR)/VM-Info.plist: $(PATH_SUB_CURRENT)/src/platform/darwin/VM-Info.plist $(VBOX_VERSION_MK) | $$(@D)/
|
---|
1055 | $(call MSG_GENERATE,VirtualBoxVM.app,$<,$@)
|
---|
1056 | $(QUIET)$(RM) -f $@
|
---|
1057 | $(QUIET)$(SED) \
|
---|
1058 | -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
|
---|
1059 | -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
|
---|
1060 | -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
|
---|
1061 | -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
|
---|
1062 | -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
|
---|
1063 | -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
|
---|
1064 | -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
|
---|
1065 | --output $@ $<
|
---|
1066 |
|
---|
1067 | PROGRAMS += vmstarter
|
---|
1068 | vmstarter_TEMPLATE = VBOXR3EXE
|
---|
1069 | vmstarter_SOURCES = src/platform/darwin/vmstarter.mm
|
---|
1070 | vmstarter_LDFLAGS += -framework AppKit
|
---|
1071 | vmstarter_INST = $(INST_BIN)vmstarter
|
---|
1072 |
|
---|
1073 | INSTALLS += vmstarter.app
|
---|
1074 | vmstarter.app_INST = $(VirtualBox.app_INST)Resources/vmstarter.app/Contents/
|
---|
1075 | vmstarter.app_MODE = 644
|
---|
1076 | vmstarter.app_SOURCES = \
|
---|
1077 | src/platform/darwin/vmstarter-PkgInfo=>PkgInfo \
|
---|
1078 | $(vmstarter.app_0_OUTDIR)/vmstarter-Info.plist=>Info.plist \
|
---|
1079 | $(foreach mysrc,$(VirtualBox.app_SOURCES),$(if-expr $(pos =>Resources/,$(mysrc)) > 0,$(mysrc),))
|
---|
1080 | vmstarter.app_SYMLINKS = \
|
---|
1081 | MacOS=>../../../MacOS \
|
---|
1082 |
|
---|
1083 | $$(vmstarter.app_0_OUTDIR)/vmstarter-Info.plist: $(PATH_SUB_CURRENT)/src/platform/darwin/vmstarter-Info.plist $(VBOX_VERSION_MK) | $$(@D)/
|
---|
1084 | $(call MSG_GENERATE,vmstarter.app,$<,$@)
|
---|
1085 | $(QUIET)$(RM) -f $@
|
---|
1086 | $(QUIET)$(SED) \
|
---|
1087 | -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
|
---|
1088 | -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
|
---|
1089 | -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
|
---|
1090 | -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
|
---|
1091 | -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
|
---|
1092 | -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
|
---|
1093 | -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
|
---|
1094 | --output $@ $<
|
---|
1095 | endif # darwin
|
---|
1096 |
|
---|
1097 | #
|
---|
1098 | # App for testing GL support
|
---|
1099 | #
|
---|
1100 | if defined(VBOX_WITH_VIDEOHWACCEL)
|
---|
1101 | if1of ($(KBUILD_TARGET), win linux freebsd)
|
---|
1102 | LIBRARIES += VBoxOGL2D
|
---|
1103 | VBoxOGL2D_TEMPLATE = $(if $(VBOX_WITH_VIDEOHWACCEL),$(if $(VBOX_WITH_HARDENING),VBOXQT4GUI,VBOXQT4GUIEXE),VBOXMAINEXE)
|
---|
1104 | VBoxOGL2D_DEFS = QT_NO_DEBUG QT_THREAD_SUPPORT QT_SHARED HAVE_CONFIG_H VBOX_WITH_VIDEOHWACCEL VBOX_GUI_USE_QGL
|
---|
1105 | VBoxOGL2D_QT_MODULES += OpenGL
|
---|
1106 | VBoxOGL2D_SOURCES = \
|
---|
1107 | src/VBoxGLSupportInfo.cpp
|
---|
1108 | VBoxOGL2D_INCS = include
|
---|
1109 | endif
|
---|
1110 | endif
|
---|
1111 |
|
---|
1112 | #
|
---|
1113 | # Testcase for the darwin keyboard routines.
|
---|
1114 | #
|
---|
1115 | ifdef VBOX_WITH_TESTCASES
|
---|
1116 | PROGRAMS.darwin += tstDarwinKeyboard
|
---|
1117 | tstDarwinKeyboard_NAME = tstDarwinKeyboard
|
---|
1118 | tstDarwinKeyboard_TEMPLATE = VBOXR3TSTEXE
|
---|
1119 | tstDarwinKeyboard_DEFS.x86 = USE_HID_FOR_MODIFIERS
|
---|
1120 | tstDarwinKeyboard_INCS = include
|
---|
1121 | tstDarwinKeyboard_SOURCES = \
|
---|
1122 | src/platform/darwin/tstDarwinKeyboard.cpp \
|
---|
1123 | src/platform/darwin/DarwinKeyboard.cpp
|
---|
1124 | tstDarwinKeyboard_SOURCES.amd64 = \
|
---|
1125 | src/platform/darwin/CocoaEventHelper.mm
|
---|
1126 | tstDarwinKeyboard_LDFLAGS = -framework IOKit -framework Carbon -framework AppKit
|
---|
1127 | tstDarwinKeyboard_LIBS = \
|
---|
1128 | $(LIB_RUNTIME)
|
---|
1129 | endif
|
---|
1130 |
|
---|
1131 |
|
---|
1132 | # Unset everything that was loaded from VBoxUI.pro.
|
---|
1133 | TEMPLATE := $(SAVED_TEMPLATE)
|
---|
1134 | SAVED_TEMPLATE :=
|
---|
1135 | LANGUAGE :=
|
---|
1136 | FORMS :=
|
---|
1137 | TRANSLATIONS :=
|
---|
1138 | IMAGES :=
|
---|
1139 |
|
---|
1140 |
|
---|
1141 | #
|
---|
1142 | # Doxygen documentation.
|
---|
1143 | #
|
---|
1144 | QTGUI_DOXYFILE_OUTPUT = $(PATH_OUT)/docs/qtgui
|
---|
1145 | BLDDIRS += $(QTGUI_DOXYFILE_OUTPUT)
|
---|
1146 | OTHER_CLEAN += \
|
---|
1147 | $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui \
|
---|
1148 | $(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui
|
---|
1149 |
|
---|
1150 | # Generate the Doxyfile
|
---|
1151 | $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui: \
|
---|
1152 | $(PATH_SUB_CURRENT)/Doxyfile \
|
---|
1153 | $(PATH_SUB_CURRENT)/Makefile.kmk \
|
---|
1154 | | $$(dir $$@)
|
---|
1155 | $(RM) -f $@ $@.tmp $@.dep
|
---|
1156 | $(CP) -f $< $@.tmp
|
---|
1157 | $(APPEND) $@.tmp
|
---|
1158 | $(APPEND) $@.tmp "OUTPUT_DIRECTORY = $(QTGUI_DOXYFILE_OUTPUT)"
|
---|
1159 | $(APPEND) $@.tmp "WARN_LOGFILE = $(QTGUI_DOXYFILE_OUTPUT)/errors"
|
---|
1160 | $(APPEND) $@.tmp "INCLUDE_PATH = $(PATH_ROOT)/include ."
|
---|
1161 | $(APPEND) $@.tmp "PREDEFINED += $(ARCH_BITS_DEFS)"
|
---|
1162 | $(APPEND) $@.tmp
|
---|
1163 | $(APPEND) $@.tmp "INPUT = $(dir $<)"
|
---|
1164 | $(APPEND) $@.tmp
|
---|
1165 | $(MV) -f $@.tmp $@
|
---|
1166 |
|
---|
1167 | # Do the actual job.
|
---|
1168 | $(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui: $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui $$(QTGUI_DOXYFILE_INPUT) | $(QTGUI_DOXYFILE_OUTPUT)/
|
---|
1169 | $(RM) -Rf -- $(QTGUI_DOXYFILE_OUTPUT)/html/
|
---|
1170 | doxygen $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui
|
---|
1171 | $(APPEND) $(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui
|
---|
1172 |
|
---|
1173 | # aliases
|
---|
1174 | docs.qtgui: $(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui
|
---|
1175 | if !defined(VBOX_ONLY_DOCS) && defined(VBOX_WITH_ALL_DOXYGEN_TARGETS)
|
---|
1176 | docs: $(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui
|
---|
1177 | endif
|
---|
1178 |
|
---|
1179 |
|
---|
1180 |
|
---|
1181 | # Commit the magic.
|
---|
1182 | # (note: before custom rules that make usage of generated variables!).
|
---|
1183 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
1184 |
|
---|
1185 | #
|
---|
1186 | # Update all known NLS translation (.ts) files in the nls/ subdirectory.
|
---|
1187 | #
|
---|
1188 | # NOTE: This target is intended to be run only by the GUI maintainer shortly
|
---|
1189 | # before a new product release. VirtualBox_xx_YY.ts is a template for new
|
---|
1190 | # languages and should never be actually translated or installed.
|
---|
1191 | #
|
---|
1192 | # Use the checknls target for checking again common mistakes done by the
|
---|
1193 | # translators.
|
---|
1194 | #
|
---|
1195 | # For Qt >= 4.6.0 it maybe necessary to add -I $(VBOX_GUI_INC_DIRS) to the
|
---|
1196 | # lupdate call
|
---|
1197 | #
|
---|
1198 | #VirtualBox_QT_TRANSLATIONS = nls/VirtualBox_de.ts
|
---|
1199 | checknls::
|
---|
1200 | # Check for missing :/ in image paths
|
---|
1201 | grep -i "src=[^:%]" $(filter-out nls/qt_%.ts,$(VirtualBox_QT_TRANSLATIONS))
|
---|
1202 |
|
---|
1203 | updatenls:: makeallnls nls/VirtualBox_en.ts
|
---|
1204 |
|
---|
1205 | makeallnls:: \
|
---|
1206 | $(foreach header,$(VBOX_GUI_INC_DIRS),$(wildcard $(header)/*.h)) \
|
---|
1207 | $(filter-out %.qrc,$(VirtualBox_SOURCES) $(VirtualBox_VBOX_EXTRA_NLS_SOURCES))
|
---|
1208 | $(call MSG_L1,lupdate all languages (nls/*.ts))
|
---|
1209 | $(QUIET)$(TOOL_QT4_LUPDATE) \
|
---|
1210 | $^ \
|
---|
1211 | -ts \
|
---|
1212 | $(filter-out nls/VirtualBox_en.ts,$(filter-out nls/qt_%.ts,$(VirtualBox_QT_TRANSLATIONS))) \
|
---|
1213 | nls/VirtualBox_xx_YY.ts
|
---|
1214 |
|
---|
1215 | # Create the English translation file. This is something special cause it will
|
---|
1216 | # contain the plural forms only.
|
---|
1217 | nls/VirtualBox_en.ts: \
|
---|
1218 | $(foreach header,$(VBOX_GUI_INC_DIRS),$(wildcard $(header)/*.h)) \
|
---|
1219 | $(filter-out %.qrc,$(VirtualBox_SOURCES) $(VirtualBox_VBOX_EXTRA_NLS_SOURCES))
|
---|
1220 | $(call MSG_L1,lupdate $@)
|
---|
1221 | $(QUIET)$(TOOL_QT4_LUPDATE) \
|
---|
1222 | $^ \
|
---|
1223 | -ts \
|
---|
1224 | $@
|
---|
1225 | $(QUIET)$(SED) -n -i -e \
|
---|
1226 | '/<context>/,/<\/context>/!p;/<context>/h;/<name>/H;/<message numerus="yes">/,/<\/message>/H;/<\/context>/{H;x;/<message/p}' \
|
---|
1227 | $@
|
---|
1228 |
|
---|