VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk@ 71577

Last change on this file since 71577 was 71563, checked in by vboxsync, 7 years ago

FE/Qt: bugref:6699 Handle property display in case of multiple selections, guest file system variant

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 53.5 KB
Line 
1# $Id: Makefile.kmk 71563 2018-03-29 11:14:12Z vboxsync $
2## @file
3# Makefile for the VirtualBox Qt GUI.
4#
5
6#
7# Copyright (C) 2006-2018 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
18SUB_DEPTH = ../../../..
19include $(KBUILD_PATH)/subheader.kmk
20
21
22#
23# Globals.
24#
25VBOX_VIRTUALBOX_SRC := $(PATH_SUB_CURRENT)
26VBOX_VIRTUALBOX_OUT_DIR := $(PATH_TARGET)/VirtualBox/misc
27
28
29#
30# Targets.
31#
32ifdef VBOX_WITH_HARDENING
33PROGRAMS += VirtualBoxHardened
34PROGRAMS.darwin += VirtualBoxVM
35DLLS += VirtualBox
36else
37PROGRAMS += VirtualBox
38endif
39INSTALLS += VirtualBox.nls
40
41
42#
43# Include the language lists.
44#
45include $(PATH_SUB_CURRENT)/nls/ApprovedLanguages.kmk
46
47
48#
49# Hardened VirtualBox.
50#
51VirtualBoxHardened_TEMPLATE = VBOXR3HARDENEDEXE
52VirtualBoxHardened_SOURCES = src/hardenedmain.cpp
53VirtualBoxHardened_SOURCES.win = src/platform/win/VirtualBoxHardened.rc
54VirtualBoxHardened_NAME = VirtualBox
55VirtualBoxHardened_LDFLAGS.win = /SUBSYSTEM:$(if-expr "$(KBUILD_TYPE)" != "release",console,windows)
56src/platform/win/VirtualBoxHardened.rc_INCS = $(VirtualBox_0_OUTDIR)
57src/platform/win/VirtualBoxHardened.rc_DEPS = $(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc
58
59
60#
61# Hardened VirtualBoxVM.
62#
63ifeq ($(KBUILD_TARGET),darwin)
64 VirtualBoxVM_EXTENDS = VirtualBoxHardened
65 VirtualBoxVM_NAME = VirtualBoxVM
66 VirtualBoxVM_DEFS = $(VirtualBoxHardened_DEFS) VIRTUALBOX_VM
67endif
68
69
70#
71# Include Qt project file, we'll use FORMS and TRANSLATIONS in
72# the VirtualBox setup below.
73#
74# This is a bit messy. We boldly ASSUME that LANGUAGE, IMAGES, FORMS
75# and TRANSLATIONS are all unused by kBuild and the host toolchain.
76#
77SAVED_TEMPLATE := $(TEMPLATE)
78include $(PATH_SUB_CURRENT)/VBoxUI.pro
79TEMPLATE := $(SAVED_TEMPLATE)
80SAVED_TEMPLATE :=
81LANGUAGE :=
82IMAGES :=
83# FORMS and TRANSLATIONS are reset further down.
84
85
86#
87# Perform initial new version check on startup.
88# If this setting is disabled the user can still check using the menu.
89#
90ifndef VBOX_OSE
91VBOX_WITH_UPDATE_REQUEST := 1
92endif
93
94
95#
96# VirtualBox - GUI Application.
97#
98USES += qt5
99VirtualBox_TEMPLATE := $(if $(VBOX_WITH_HARDENING),VBOXQTGUI,VBOXQTGUIEXE)
100VirtualBox_NAME = VirtualBox
101ifndef VBOX_WITH_HARDENING # For the launch trick we need different inode numbers.
102 VirtualBox_INST.darwin = $(INST_BIN)VirtualBox $(INST_BIN)VirtualBoxVM
103endif
104VirtualBox_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK)
105
106VirtualBox_DEFS =
107VirtualBox_DEFS.debug = VBOX_CHECK_STATE # QT_FATAL_ASSERT
108VirtualBox_DEFS.linux = VBOX_WS_X11
109VirtualBox_DEFS.solaris = VBOX_WS_X11
110VirtualBox_DEFS.freebsd = VBOX_WS_X11
111VirtualBox_DEFS.darwin = VBOX_WS_MAC
112VirtualBox_DEFS.win = VBOX_WS_WIN
113VirtualBox_DEFS.linux += VBOX_WITH_MASKED_SEAMLESS VBOX_WITH_TRANSLUCENT_SEAMLESS
114VirtualBox_DEFS.solaris += VBOX_WITH_MASKED_SEAMLESS VBOX_WITH_TRANSLUCENT_SEAMLESS
115VirtualBox_DEFS.freebsd += VBOX_WITH_MASKED_SEAMLESS VBOX_WITH_TRANSLUCENT_SEAMLESS
116VirtualBox_DEFS.darwin += VBOX_WITH_TRANSLUCENT_SEAMLESS # VBOX_WITH_MASKED_SEAMLESS
117VirtualBox_DEFS.win += VBOX_WITH_MASKED_SEAMLESS # VBOX_WITH_TRANSLUCENT_SEAMLESS
118VirtualBox_DEFS.darwin += VBOX_DARWIN_USE_NATIVE_CONTROLS
119VirtualBox_DEFS.win += UNICODE QT_DLL
120VirtualBox_DEFS += \
121 $(if $(VBOX_WITH_ADDITIONS_AUTOUPDATE_UI),VBOX_WITH_ADDITIONS_AUTOUPDATE_UI) \
122 $(if $(VBOX_WITH_UPDATE_REQUEST),VBOX_WITH_UPDATE_REQUEST) \
123 $(if $(VBOX_WITH_AUDIO_OSS),VBOX_WITH_AUDIO_OSS) \
124 $(if $(VBOX_WITH_AUDIO_ALSA),VBOX_WITH_AUDIO_ALSA) \
125 $(if $(VBOX_WITH_AUDIO_PULSE),VBOX_WITH_AUDIO_PULSE) \
126 $(if $(VBOX_WITH_E1000),VBOX_WITH_E1000) \
127 $(if $(VBOX_WITH_NETFLT)$(eq $(KBUILD_TARGET),freebsd),VBOX_WITH_NETFLT) \
128 $(if $(VBOX_WITH_VDE),VBOX_WITH_VDE) \
129 $(if $(VBOX_WITH_UDPTUNNEL),VBOX_WITH_UDPTUNNEL) \
130 $(if $(VBOX_WITH_EXTPACK),VBOX_WITH_EXTPACK) \
131 $(if $(VBOX_WITH_EHCI),VBOX_WITH_EHCI) \
132 $(if $(VBOX_WITH_HARDENING),VBOXR3_HARDENED_DLL) \
133 $(if $(VBOX_WITH_DRAG_AND_DROP),VBOX_WITH_DRAG_AND_DROP) \
134 $(if $(VBOX_WITH_DRAG_AND_DROP_GH),VBOX_WITH_DRAG_AND_DROP_GH) \
135 $(if $(VBOX_WITH_DRAG_AND_DROP_PROMISES),VBOX_WITH_DRAG_AND_DROP_PROMISES) \
136 $(if $(VBOX_WITH_CRHGSMI),VBOX_WITH_CRHGSMI) \
137 $(if $(VBOX_WITH_VIRTIO),VBOX_WITH_VIRTIO) \
138 $(if $(VBOX_WITH_WDDM),VBOX_WITH_WDDM) \
139 $(if $(VBOX_WITH_CROGL),VBOX_WITH_CROGL) \
140 $(if $(VBOX_GUI_WITH_PIDFILE),VBOX_GUI_WITH_PIDFILE) \
141 $(if $(VBOX_GUI_WITH_KEYS_RESET_HANDLER),VBOX_GUI_WITH_KEYS_RESET_HANDLER) \
142 $(if $(VBOX_GUI_WITH_CUSTOMIZATIONS1),VBOX_GUI_WITH_CUSTOMIZATIONS1) \
143 $(if $(VBOX_WITH_RAW_MODE),VBOX_WITH_RAW_MODE) \
144 $(if $(VBOX_WITH_SDS),VBOX_WITH_SDS,)
145ifdef VBOX_WITH_DEBUGGER_GUI
146 VirtualBox_DEFS += VBOX_WITH_DEBUGGER_GUI
147 if "$(KBUILD_TYPE)" != "release"
148 VirtualBox_DEFS += VBOX_WITH_DEBUGGER_GUI_MENU
149 endif
150endif
151ifdef VBOX_WITH_VIDEOHWACCEL
152 VirtualBox_DEFS += VBOX_WITH_VIDEOHWACCEL VBOX_GUI_USE_QGL
153else ifdef VBOX_GUI_USE_QGL
154 VirtualBox_DEFS += VBOX_GUI_USE_QGL
155endif
156ifdef VBOX_WITH_LIBCURL
157 VirtualBox_DEFS += VBOX_GUI_WITH_NETWORK_MANAGER
158 VBOX_GUI_WITH_NETWORK_MANAGER := 1
159endif
160ifneq ($(KBUILD_TYPE),release)
161 VirtualBox_DEFS += VBOX_GUI_WITH_EXTRADATA_MANAGER_UI
162endif
163ifdef VBOX_WITH_ICHAT_THEATER
164 VirtualBox_DEFS.darwin += VBOX_WITH_ICHAT_THEATER
165endif
166
167
168#
169# Include folders.
170#
171VBOX_GUI_INC_DIRS = \
172 ./src \
173 ./src/converter \
174 ./src/extensions \
175 ./src/extensions/graphics \
176 ./src/extradata \
177 ./src/globals \
178 ./src/hostnetwork \
179 ./src/logviewer \
180 ./src/medium \
181 ./src/objects \
182 ./src/platform \
183 ./src/platform/darwin \
184 ./src/platform/win \
185 ./src/platform/x11 \
186 ./src/runtime \
187 ./src/runtime/fullscreen \
188 ./src/runtime/normal \
189 ./src/runtime/scale \
190 ./src/runtime/seamless \
191 ./src/runtime/information \
192 ./src/runtime/guestctrl \
193 ./src/selector \
194 ./src/selector/graphics/chooser \
195 ./src/selector/graphics/details \
196 ./src/settings \
197 ./src/settings/global \
198 ./src/settings/machine \
199 ./src/widgets \
200 ./src/widgets/graphics \
201 ./src/wizards \
202 ./src/wizards/newvm \
203 ./src/wizards/newvd \
204 ./src/wizards/clonevm \
205 ./src/wizards/clonevd \
206 ./src/wizards/exportappliance \
207 ./src/wizards/importappliance \
208 ./src/wizards/firstrun
209
210ifdef VBOX_GUI_WITH_NETWORK_MANAGER
211VBOX_GUI_INC_DIRS += \
212 ./src/net
213endif
214
215#
216# VirtualBox - GUI Application.
217# Include folders.
218#
219VirtualBox_INCS = \
220 $(VBOX_GUI_INC_DIRS) \
221 $(VirtualBox_0_OUTDIR)/include \
222 $(VBOX_GRAPHICS_INCS)
223
224
225#
226# VirtualBox - GUI Application.
227# Compiling/linking flags.
228#
229ifneq ($(KBUILD_TARGET),win)
230VirtualBox_CXXFLAGS += -Wno-switch
231endif
232
233## @todo we're using a number of deprecated APIs, please fix and remove these!
234ifdef VBOX_WITH_NEW_XCODE
235 VirtualBox_CXXFLAGS.darwin += -Wno-error=deprecated-declarations
236 VirtualBox_OBJCFLAGS.darwin += -Wno-error=deprecated-declarations
237 VirtualBox_OBJCXXFLAGS.darwin += -Wno-error=deprecated-declarations
238else
239 VirtualBox_CXXFLAGS.darwin += -Wno-deprecated-declarations
240 VirtualBox_OBJCFLAGS.darwin += -Wno-deprecated-declarations
241 VirtualBox_OBJCXXFLAGS.darwin += -Wno-deprecated-declarations
242endif
243
244ifeq ($(KBUILD_TYPE),release)
245 VirtualBox_LDFLAGS.win += /SUBSYSTEM:windows
246else
247 VirtualBox_LDFLAGS.linux += -rdynamic # for backtrace_symbols()
248 VirtualBox_LDFLAGS.win += /SUBSYSTEM:console
249endif
250
251VirtualBox_LDFLAGS.darwin = \
252 -framework AppKit -framework Carbon -framework IOKit \
253 $(if $(VBOX_WITH_HARDENING),-install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VirtualBox.dylib)
254ifdef VBOX_WITH_ICHAT_THEATER
255 VirtualBox_LDFLAGS.darwin += -framework InstantMessage -framework QuartzCore
256endif
257
258
259#
260# VirtualBox - GUI Application.
261# Libraries.
262#
263
264# Library required for the hdd backend enumeration:
265VirtualBox_LIBS = $(LIB_DDU)
266
267# Runtime library loader required on X11 hosts:
268if1of ($(KBUILD_TARGET), linux netbsd openbsd)
269 VirtualBox_LIBS += dl
270endif
271
272# Xinerama library required for multi-monitor support:
273VirtualBox_LIBS.linux += Xinerama
274VirtualBox_LIBS.solaris += Xinerama
275VirtualBox_LIBS.freebsd += Xinerama
276
277# XCB library required for direct XCB native code support:
278VirtualBox_LIBS.linux += xcb
279VirtualBox_LIBS.solaris += xcb
280VirtualBox_LIBS.freebsd += xcb
281
282# Various Windows hosts libraries:
283VirtualBox_LIBS.win = \
284 $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Htmlhelp.Lib \
285 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/ddraw.lib \
286 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/dxguid.lib
287
288# VBox keyboard shared library for X11 hosts:
289if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris)
290 VirtualBox_LIBS += $(PATH_STAGE_DLL)/VBoxKeyboard$(VBOX_SUFF_DLL)
291endif
292
293# These are 2D Video Acceleration and 3D Acceleration related libs:
294if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
295 VirtualBox_LIBS.win += $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Opengl32.lib
296 VirtualBox_LIBS.solaris += GL
297 VirtualBox_LIBS.linux += GL
298 VirtualBox_LIBS.freebsd += GL
299 VirtualBox_LDFLAGS.darwin += -framework OpenGL
300endif
301ifdef VBOX_WITH_CROGL
302 VirtualBox_LIBS += $(PATH_STAGE_LIB)/VBoxOGLTest$(VBOX_SUFF_LIB)
303endif
304
305
306#
307# VirtualBox - GUI Application.
308# Headers containing definitions of classes that use the Q_OBJECT macro.
309#
310VirtualBox_QT_MOCHDRS = \
311 src/VBoxAboutDlg.h \
312 src/VBoxLicenseViewer.h \
313 src/UITakeSnapshotDialog.h \
314 src/extensions/QIAdvancedSlider.h \
315 src/extensions/QIArrowButtonPress.h \
316 src/extensions/QIArrowButtonSwitch.h \
317 src/extensions/QIArrowSplitter.h \
318 src/extensions/QIComboBox.h \
319 src/extensions/QIDialog.h \
320 src/extensions/QIDialogButtonBox.h \
321 src/extensions/QIFileDialog.h \
322 src/extensions/QIFlowLayout.h \
323 src/extensions/QILabel.h \
324 src/extensions/QILabelSeparator.h \
325 src/extensions/QIMainDialog.h \
326 src/extensions/QIMainWindow.h \
327 src/extensions/QIManagerDialog.h \
328 src/extensions/QIMenu.h \
329 src/extensions/QIMessageBox.h \
330 src/extensions/QIProcess.h \
331 src/extensions/QIRichTextLabel.h \
332 src/extensions/QIRichToolButton.h \
333 src/extensions/QISplitter.h \
334 src/extensions/QIStatusBar.h \
335 src/extensions/QIStatusBarIndicator.h \
336 src/extensions/QIStyledItemDelegate.h \
337 src/extensions/QITabWidget.h \
338 src/extensions/QITableView.h \
339 src/extensions/QIToolButton.h \
340 src/extensions/QITreeView.h \
341 src/extensions/QITreeWidget.h \
342 src/extensions/QIWidgetValidator.h \
343 src/extensions/graphics/QIGraphicsView.h \
344 src/extensions/graphics/QIGraphicsWidget.h \
345 src/extradata/UIExtraDataDefs.h \
346 src/extradata/UIExtraDataManager.h \
347 src/globals/UIActionPool.h \
348 src/globals/UIAnimationFramework.h \
349 src/globals/UIDesktopWidgetWatchdog.h \
350 src/globals/UIMainEventListener.h \
351 src/globals/UIMessageCenter.h \
352 src/globals/UIModalWindowManager.h \
353 src/globals/UIPopupCenter.h \
354 src/globals/UIShortcutPool.h \
355 src/globals/UIStarter.h \
356 src/globals/UIThreadPool.h \
357 src/globals/VBoxGlobal.h \
358 src/globals/VBoxUtils.h \
359 src/hostnetwork/UIHostNetworkDetailsWidget.h \
360 src/hostnetwork/UIHostNetworkManager.h \
361 src/logviewer/UIVMLogPage.h \
362 src/logviewer/UIVMLogViewerBookmarksPanel.h \
363 src/logviewer/UIVMLogViewerDialog.h \
364 src/logviewer/UIVMLogViewerFilterPanel.h \
365 src/logviewer/UIVMLogViewerPanel.h \
366 src/logviewer/UIVMLogViewerSearchPanel.h \
367 src/logviewer/UIVMLogViewerSettingsPanel.h \
368 src/logviewer/UIVMLogViewerTextEdit.h \
369 src/logviewer/UIVMLogViewerWidget.h \
370 src/medium/UIMediumDetailsWidget.h \
371 src/medium/UIMediumEnumerator.h \
372 src/medium/UIMediumManager.h \
373 src/runtime/UIActionPoolRuntime.h \
374 src/runtime/UIAddDiskEncryptionPasswordDialog.h \
375 src/runtime/UIConsoleEventHandler.h \
376 src/runtime/UIFrameBuffer.h \
377 src/runtime/UIIndicatorsPool.h \
378 src/runtime/UIKeyboardHandler.h \
379 src/runtime/UIMachine.h \
380 src/runtime/UIMachineLogic.h \
381 src/runtime/UIMachineWindow.h \
382 src/runtime/UIMachineView.h \
383 src/runtime/UIMenuBarEditorWindow.h \
384 src/runtime/UIMouseHandler.h \
385 src/runtime/UIMultiScreenLayout.h \
386 src/runtime/UISession.h \
387 src/runtime/UISlidingToolBar.h \
388 src/runtime/UIStatusBarEditorWindow.h \
389 src/runtime/UIVMCloseDialog.h \
390 src/runtime/fullscreen/UIKeyboardHandlerFullscreen.h \
391 src/runtime/fullscreen/UIMachineLogicFullscreen.h \
392 src/runtime/fullscreen/UIMachineViewFullscreen.h \
393 src/runtime/fullscreen/UIMachineWindowFullscreen.h \
394 src/runtime/information/UIInformationConfiguration.h \
395 src/runtime/information/UIInformationDataItem.h \
396 src/runtime/information/UIInformationItem.h \
397 src/runtime/information/UIInformationModel.h \
398 src/runtime/information/UIInformationRuntime.h \
399 src/runtime/information/UIInformationView.h \
400 src/runtime/information/UIVMInformationDialog.h \
401 src/runtime/guestctrl/UIGuestControlConsole.h \
402 src/runtime/guestctrl/UIGuestControlFileManager.h \
403 src/runtime/guestctrl/UIGuestControlFileModel.h \
404 src/runtime/guestctrl/UIGuestControlFileTable.h \
405 src/runtime/guestctrl/UIGuestControlInterface.h \
406 src/runtime/guestctrl/UIGuestControlTreeItem.h \
407 src/runtime/guestctrl/UIGuestControlWidget.h \
408 src/runtime/guestctrl/UIGuestFileTable.h \
409 src/runtime/guestctrl/UIHostFileTable.h \
410 src/runtime/normal/UIKeyboardHandlerNormal.h \
411 src/runtime/normal/UIMachineLogicNormal.h \
412 src/runtime/normal/UIMachineViewNormal.h \
413 src/runtime/normal/UIMachineWindowNormal.h \
414 src/runtime/scale/UIKeyboardHandlerScale.h \
415 src/runtime/scale/UIMachineLogicScale.h \
416 src/runtime/scale/UIMachineViewScale.h \
417 src/runtime/scale/UIMachineWindowScale.h \
418 src/runtime/seamless/UIKeyboardHandlerSeamless.h \
419 src/runtime/seamless/UIMachineLogicSeamless.h \
420 src/runtime/seamless/UIMachineViewSeamless.h \
421 src/runtime/seamless/UIMachineWindowSeamless.h \
422 src/selector/UIActionPoolSelector.h \
423 src/selector/UIDesktopPane.h \
424 src/selector/UIVMItem.h \
425 src/selector/UIVirtualBoxEventHandler.h \
426 src/selector/UISelectorWindow.h \
427 src/selector/UISnapshotDetailsWidget.h \
428 src/selector/UISnapshotPane.h \
429 src/selector/UIToolsPaneGlobal.h \
430 src/selector/UIToolsPaneMachine.h \
431 src/selector/UIToolsToolbar.h \
432 src/selector/graphics/chooser/UIGChooser.h \
433 src/selector/graphics/chooser/UIGChooserModel.h \
434 src/selector/graphics/chooser/UIGChooserView.h \
435 src/selector/graphics/chooser/UIGChooserHandlerMouse.h \
436 src/selector/graphics/chooser/UIGChooserHandlerKeyboard.h \
437 src/selector/graphics/chooser/UIGChooserItem.h \
438 src/selector/graphics/chooser/UIGChooserItemGroup.h \
439 src/selector/graphics/chooser/UIGChooserItemMachine.h \
440 src/selector/graphics/details/UIGDetails.h \
441 src/selector/graphics/details/UIGDetailsModel.h \
442 src/selector/graphics/details/UIGDetailsView.h \
443 src/selector/graphics/details/UIGDetailsItem.h \
444 src/selector/graphics/details/UIGDetailsGroup.h \
445 src/selector/graphics/details/UIGDetailsSet.h \
446 src/selector/graphics/details/UIGDetailsElement.h \
447 src/selector/graphics/details/UIGDetailsElements.h \
448 src/selector/graphics/details/UIGMachinePreview.h \
449 src/settings/UISettingsDialog.h \
450 src/settings/UISettingsDialogSpecific.h \
451 src/settings/UISettingsPage.h \
452 src/settings/UISettingsSelector.h \
453 src/settings/UISettingsSerializer.h \
454 src/settings/global/UIGlobalSettingsExtension.h \
455 src/settings/global/UIGlobalSettingsGeneral.h \
456 src/settings/global/UIGlobalSettingsInput.h \
457 src/settings/global/UIGlobalSettingsLanguage.h \
458 src/settings/global/UIGlobalSettingsDisplay.h \
459 src/settings/global/UIGlobalSettingsNetwork.h \
460 src/settings/global/UIGlobalSettingsNetworkDetailsNAT.h \
461 src/settings/global/UIGlobalSettingsPortForwardingDlg.h \
462 src/settings/machine/UIMachineSettingsAudio.h \
463 src/settings/machine/UIMachineSettingsDisplay.h \
464 src/settings/machine/UIMachineSettingsGeneral.h \
465 src/settings/machine/UIMachineSettingsInterface.h \
466 src/settings/machine/UIMachineSettingsNetwork.h \
467 src/settings/machine/UIMachineSettingsPortForwardingDlg.h \
468 src/settings/machine/UIMachineSettingsSF.h \
469 src/settings/machine/UIMachineSettingsSFDetails.h \
470 src/settings/machine/UIMachineSettingsSerial.h \
471 src/settings/machine/UIMachineSettingsStorage.h \
472 src/settings/machine/UIMachineSettingsSystem.h \
473 src/settings/machine/UIMachineSettingsUSB.h \
474 src/settings/machine/UIMachineSettingsUSBFilterDetails.h \
475 src/widgets/UIApplianceEditorWidget.h \
476 src/widgets/UIApplianceExportEditorWidget.h \
477 src/widgets/UIApplianceImportEditorWidget.h \
478 src/widgets/UIBootTable.h \
479 src/widgets/UIFilePathSelector.h \
480 src/widgets/UIEmptyFilePathSelector.h \
481 src/widgets/UIHostComboEditor.h \
482 src/widgets/UIHotKeyEditor.h \
483 src/widgets/UILineTextEdit.h \
484 src/widgets/UIMediumSizeEditor.h \
485 src/widgets/UIMenuBar.h \
486 src/widgets/UIPopupBox.h \
487 src/widgets/UIPopupPane.h \
488 src/widgets/UIPopupPaneMessage.h \
489 src/widgets/UIPopupPaneDetails.h \
490 src/widgets/UIPopupPaneButtonPane.h \
491 src/widgets/UIPopupStack.h \
492 src/widgets/UIPopupStackViewport.h \
493 src/widgets/UIPortForwardingTable.h \
494 src/widgets/UIProgressDialog.h \
495 src/widgets/UISlidingWidget.h \
496 src/widgets/UISpecialControls.h \
497 src/widgets/UITabBar.h \
498 src/widgets/UIToolBar.h \
499 src/widgets/VBoxMediaComboBox.h \
500 src/widgets/UIMenuToolBar.h \
501 src/widgets/UIMiniToolBar.h \
502 src/widgets/VBoxOSTypeSelectorButton.h \
503 src/widgets/UINameAndSystemEditor.h \
504 src/widgets/UIWarningPane.h \
505 src/widgets/UIFilmContainer.h \
506 src/widgets/graphics/UIGraphicsButton.h \
507 src/widgets/graphics/UIGraphicsRotatorButton.h \
508 src/widgets/graphics/UIGraphicsZoomButton.h \
509 src/widgets/graphics/UIGraphicsToolBar.h \
510 src/widgets/graphics/UIGraphicsTextPane.h \
511 src/wizards/UIWizard.h \
512 src/wizards/UIWizardPage.h \
513 src/wizards/newvm/UIWizardNewVM.h \
514 src/wizards/newvm/UIWizardNewVMPageBasic1.h \
515 src/wizards/newvm/UIWizardNewVMPageBasic2.h \
516 src/wizards/newvm/UIWizardNewVMPageBasic3.h \
517 src/wizards/newvm/UIWizardNewVMPageExpert.h \
518 src/wizards/newvd/UIWizardNewVD.h \
519 src/wizards/newvd/UIWizardNewVDPageBasic1.h \
520 src/wizards/newvd/UIWizardNewVDPageBasic2.h \
521 src/wizards/newvd/UIWizardNewVDPageBasic3.h \
522 src/wizards/newvd/UIWizardNewVDPageExpert.h \
523 src/wizards/clonevm/UIWizardCloneVM.h \
524 src/wizards/clonevm/UIWizardCloneVMPageBasic1.h \
525 src/wizards/clonevm/UIWizardCloneVMPageBasic2.h \
526 src/wizards/clonevm/UIWizardCloneVMPageBasic3.h \
527 src/wizards/clonevm/UIWizardCloneVMPageExpert.h \
528 src/wizards/clonevd/UIWizardCloneVD.h \
529 src/wizards/clonevd/UIWizardCloneVDPageBasic1.h \
530 src/wizards/clonevd/UIWizardCloneVDPageBasic2.h \
531 src/wizards/clonevd/UIWizardCloneVDPageBasic3.h \
532 src/wizards/clonevd/UIWizardCloneVDPageBasic4.h \
533 src/wizards/clonevd/UIWizardCloneVDPageExpert.h \
534 src/wizards/exportappliance/UIWizardExportApp.h \
535 src/wizards/exportappliance/UIWizardExportAppPageBasic1.h \
536 src/wizards/exportappliance/UIWizardExportAppPageBasic2.h \
537 src/wizards/exportappliance/UIWizardExportAppPageBasic3.h \
538 src/wizards/exportappliance/UIWizardExportAppPageBasic4.h \
539 src/wizards/exportappliance/UIWizardExportAppPageExpert.h \
540 src/wizards/importappliance/UIWizardImportApp.h \
541 src/wizards/importappliance/UIWizardImportAppPageBasic1.h \
542 src/wizards/importappliance/UIWizardImportAppPageBasic2.h \
543 src/wizards/importappliance/UIWizardImportAppPageExpert.h \
544 src/wizards/firstrun/UIWizardFirstRun.h \
545 src/wizards/firstrun/UIWizardFirstRunPageBasic.h
546
547ifdef VBOX_GUI_WITH_NETWORK_MANAGER
548 VirtualBox_QT_MOCHDRS += \
549 src/net/UIDownloader.h \
550 src/net/UIDownloaderAdditions.h \
551 src/net/UIDownloaderExtensionPack.h \
552 src/net/UIDownloaderUserManual.h \
553 src/net/UINetworkManager.h \
554 src/net/UINetworkManagerDialog.h \
555 src/net/UINetworkManagerIndicator.h \
556 src/net/UINetworkRequest.h \
557 src/net/UINetworkRequestWidget.h \
558 src/net/UINetworkReply.h \
559 src/net/UINetworkCustomer.h \
560 src/net/UIUpdateManager.h \
561 src/settings/global/UIGlobalSettingsProxy.h \
562 src/settings/global/UIGlobalSettingsUpdate.h
563endif
564
565ifdef VBOX_WITH_DRAG_AND_DROP
566 VirtualBox_QT_MOCHDRS += \
567 src/runtime/UIDnDHandler.h
568 ifdef VBOX_WITH_DRAG_AND_DROP_GH
569 VirtualBox_QT_MOCHDRS += \
570 src/runtime/UIDnDMIMEData.h
571 endif
572endif
573
574VirtualBox_QT_MOCHDRS.darwin += \
575 src/platform/darwin/UIWindowMenuManager.h
576
577
578#
579# VirtualBox - GUI Application.
580# Sources containing local definitions of classes that use the Q_OBJECT macro.
581#
582VirtualBox_QT_MOCSRCS = \
583 src/extensions/QIArrowSplitter.cpp \
584 src/extensions/QISplitter.cpp \
585 src/extradata/UIExtraDataManager.cpp \
586 src/globals/UIActionPool.cpp \
587 src/globals/UIMainEventListener.cpp \
588 src/globals/UIThreadPool.cpp \
589 src/logviewer/UIVMLogViewerFilterPanel.cpp \
590 src/logviewer/UIVMLogViewerSearchPanel.cpp \
591 src/logviewer/UIVMLogViewerTextEdit.cpp \
592 src/medium/UIMediumEnumerator.cpp \
593 src/runtime/UIActionPoolRuntime.cpp \
594 src/runtime/UIAddDiskEncryptionPasswordDialog.cpp \
595 src/runtime/UIConsoleEventHandler.cpp \
596 src/runtime/UIFrameBuffer.cpp \
597 src/runtime/UIIndicatorsPool.cpp \
598 src/runtime/UIStatusBarEditorWindow.cpp \
599 src/runtime/guestctrl/UIGuestControlFileManager.cpp \
600 src/runtime/guestctrl/UIGuestControlFileTable.cpp \
601 src/runtime/guestctrl/UIGuestControlWidget.cpp \
602 src/runtime/guestctrl/UIGuestFileTable.cpp \
603 src/runtime/guestctrl/UIHostFileTable.cpp \
604 src/selector/UIActionPoolSelector.cpp \
605 src/selector/UIDesktopPane.cpp \
606 src/selector/UIVirtualBoxEventHandler.cpp \
607 src/selector/UISnapshotDetailsWidget.cpp \
608 src/selector/UISnapshotPane.cpp \
609 src/settings/global/UIGlobalSettingsInput.cpp \
610 src/settings/machine/UIMachineSettingsNetwork.cpp \
611 src/settings/machine/UIMachineSettingsSerial.cpp \
612 src/settings/machine/UIMachineSettingsStorage.cpp \
613 src/settings/machine/UIMachineSettingsUSB.cpp \
614 src/widgets/UIHotKeyEditor.cpp \
615 src/widgets/UIMenuToolBar.cpp \
616 src/widgets/UIMiniToolBar.cpp \
617 src/widgets/UIPortForwardingTable.cpp \
618 src/widgets/UIProgressDialog.cpp \
619 src/widgets/UITabBar.cpp \
620 src/wizards/importappliance/UIWizardImportApp.cpp
621
622ifdef VBOX_GUI_WITH_NETWORK_MANAGER
623 VirtualBox_QT_MOCSRCS += \
624 src/net/UINetworkReply.cpp \
625 src/net/UIUpdateManager.cpp
626endif
627
628VirtualBox_QT_MOCSRCS.darwin += \
629 src/platform/darwin/UIWindowMenuManager.cpp
630VirtualBox_QT_MOCSRCS.linux += \
631 src/globals/UIDesktopWidgetWatchdog.cpp
632VirtualBox_QT_MOCSRCS.solaris += \
633 src/globals/UIDesktopWidgetWatchdog.cpp
634VirtualBox_QT_MOCSRCS.freebsd += \
635 src/globals/UIDesktopWidgetWatchdog.cpp
636
637ifdef VBOX_WITH_XPCOM
638 VirtualBox_QT_MOCSRCS += \
639 src/globals/COMDefs.cpp
640endif
641
642
643#
644# VirtualBox - GUI Application.
645# Sources.
646#
647VirtualBox_SOURCES = \
648 src/main.cpp \
649 src/VBoxAboutDlg.cpp \
650 src/VBoxLicenseViewer.cpp \
651 src/UITakeSnapshotDialog.cpp \
652 src/converter/UIConverter.cpp \
653 src/converter/UIConverterBackendCOM.cpp \
654 src/converter/UIConverterBackendGlobal.cpp \
655 src/extensions/QIAdvancedSlider.cpp \
656 src/extensions/QIArrowButtonPress.cpp \
657 src/extensions/QIArrowButtonSwitch.cpp \
658 src/extensions/QIArrowSplitter.cpp \
659 src/extensions/QIComboBox.cpp \
660 src/extensions/QIDialog.cpp \
661 src/extensions/QIDialogButtonBox.cpp \
662 src/extensions/QIFileDialog.cpp \
663 src/extensions/QIFlowLayout.cpp \
664 src/extensions/QILabel.cpp \
665 src/extensions/QILabelSeparator.cpp \
666 src/extensions/QILineEdit.cpp \
667 src/extensions/QIMainDialog.cpp \
668 src/extensions/QIMainWindow.cpp \
669 src/extensions/QIManagerDialog.cpp \
670 src/extensions/QIMenu.cpp \
671 src/extensions/QIMessageBox.cpp \
672 src/extensions/QIProcess.cpp \
673 src/extensions/QIRichTextLabel.cpp \
674 src/extensions/QIRichToolButton.cpp \
675 src/extensions/QISplitter.cpp \
676 src/extensions/QIStatusBar.cpp \
677 src/extensions/QIStatusBarIndicator.cpp \
678 src/extensions/QITableView.cpp \
679 src/extensions/QIToolButton.cpp \
680 src/extensions/QITreeView.cpp \
681 src/extensions/QITreeWidget.cpp \
682 src/extensions/QIWidgetValidator.cpp \
683 src/extensions/graphics/QIGraphicsView.cpp \
684 src/extensions/graphics/QIGraphicsWidget.cpp \
685 src/extradata/UIExtraDataDefs.cpp \
686 src/extradata/UIExtraDataManager.cpp \
687 src/globals/UIDefs.cpp \
688 src/globals/COMDefs.cpp \
689 src/globals/UIActionPool.cpp \
690 src/globals/UIAnimationFramework.cpp \
691 src/globals/UIDesktopWidgetWatchdog.cpp \
692 src/globals/UIIconPool.cpp \
693 src/globals/UIImageTools.cpp \
694 src/globals/UIMainEventListener.cpp \
695 src/globals/UIMessageCenter.cpp \
696 src/globals/UIErrorString.cpp \
697 src/globals/UIModalWindowManager.cpp \
698 src/globals/UIPopupCenter.cpp \
699 src/globals/UIShortcutPool.cpp \
700 src/globals/UIStarter.cpp \
701 src/globals/UIThreadPool.cpp \
702 src/globals/VBoxGlobal.cpp \
703 src/hostnetwork/UIHostNetworkDetailsWidget.cpp \
704 src/hostnetwork/UIHostNetworkManager.cpp \
705 src/hostnetwork/UIHostNetworkUtils.cpp \
706 src/logviewer/UIVMLogPage.cpp \
707 src/logviewer/UIVMLogViewerBookmarksPanel.cpp \
708 src/logviewer/UIVMLogViewerDialog.cpp \
709 src/logviewer/UIVMLogViewerFilterPanel.cpp \
710 src/logviewer/UIVMLogViewerPanel.cpp \
711 src/logviewer/UIVMLogViewerSearchPanel.cpp \
712 src/logviewer/UIVMLogViewerSettingsPanel.cpp \
713 src/logviewer/UIVMLogViewerTextEdit.cpp \
714 src/logviewer/UIVMLogViewerWidget.cpp \
715 src/medium/UIMediumDefs.cpp \
716 src/medium/UIMedium.cpp \
717 src/medium/UIMediumDetailsWidget.cpp \
718 src/medium/UIMediumEnumerator.cpp \
719 src/medium/UIMediumManager.cpp \
720 src/objects/UIRichTextString.cpp \
721 src/runtime/UIActionPoolRuntime.cpp \
722 src/runtime/UIAddDiskEncryptionPasswordDialog.cpp \
723 src/runtime/UIConsoleEventHandler.cpp \
724 src/runtime/UIFrameBuffer.cpp \
725 src/runtime/UIIndicatorsPool.cpp \
726 src/runtime/UIKeyboardHandler.cpp \
727 src/runtime/UIMachine.cpp \
728 src/runtime/UIMachineLogic.cpp \
729 src/runtime/UIMachineView.cpp \
730 src/runtime/UIMachineWindow.cpp \
731 src/runtime/UIMenuBarEditorWindow.cpp \
732 src/runtime/UIMouseHandler.cpp \
733 src/runtime/UIMultiScreenLayout.cpp \
734 src/runtime/UISession.cpp \
735 src/runtime/UISlidingToolBar.cpp \
736 src/runtime/UIStatusBarEditorWindow.cpp \
737 src/runtime/UIVMCloseDialog.cpp \
738 src/runtime/fullscreen/UIKeyboardHandlerFullscreen.cpp \
739 src/runtime/fullscreen/UIMachineLogicFullscreen.cpp \
740 src/runtime/fullscreen/UIMachineViewFullscreen.cpp \
741 src/runtime/fullscreen/UIMachineWindowFullscreen.cpp \
742 src/runtime/information/UIInformationConfiguration.cpp \
743 src/runtime/information/UIInformationDataItem.cpp \
744 src/runtime/information/UIInformationItem.cpp \
745 src/runtime/information/UIInformationModel.cpp \
746 src/runtime/information/UIInformationRuntime.cpp \
747 src/runtime/information/UIInformationView.cpp \
748 src/runtime/information/UIVMInformationDialog.cpp \
749 src/runtime/guestctrl/UIGuestControlConsole.cpp \
750 src/runtime/guestctrl/UIGuestControlFileManager.cpp \
751 src/runtime/guestctrl/UIGuestControlFileModel.cpp \
752 src/runtime/guestctrl/UIGuestControlFileTable.cpp \
753 src/runtime/guestctrl/UIGuestControlInterface.cpp \
754 src/runtime/guestctrl/UIGuestControlTreeItem.cpp \
755 src/runtime/guestctrl/UIGuestControlWidget.cpp \
756 src/runtime/guestctrl/UIGuestFileTable.cpp \
757 src/runtime/guestctrl/UIHostFileTable.cpp \
758 src/runtime/normal/UIKeyboardHandlerNormal.cpp \
759 src/runtime/normal/UIMachineLogicNormal.cpp \
760 src/runtime/normal/UIMachineViewNormal.cpp \
761 src/runtime/normal/UIMachineWindowNormal.cpp \
762 src/runtime/scale/UIKeyboardHandlerScale.cpp \
763 src/runtime/scale/UIMachineLogicScale.cpp \
764 src/runtime/scale/UIMachineViewScale.cpp \
765 src/runtime/scale/UIMachineWindowScale.cpp \
766 src/runtime/seamless/UIKeyboardHandlerSeamless.cpp \
767 src/runtime/seamless/UIMachineLogicSeamless.cpp \
768 src/runtime/seamless/UIMachineViewSeamless.cpp \
769 src/runtime/seamless/UIMachineWindowSeamless.cpp \
770 src/selector/UIActionPoolSelector.cpp \
771 src/selector/UIDesktopPane.cpp \
772 src/selector/UIVMItem.cpp \
773 src/selector/UIVirtualBoxEventHandler.cpp \
774 src/selector/UISelectorWindow.cpp \
775 src/selector/UISnapshotDetailsWidget.cpp \
776 src/selector/UISnapshotPane.cpp \
777 src/selector/UIToolsPaneGlobal.cpp \
778 src/selector/UIToolsPaneMachine.cpp \
779 src/selector/UIToolsToolbar.cpp \
780 src/selector/graphics/chooser/UIGChooser.cpp \
781 src/selector/graphics/chooser/UIGChooserModel.cpp \
782 src/selector/graphics/chooser/UIGChooserView.cpp \
783 src/selector/graphics/chooser/UIGChooserHandlerMouse.cpp \
784 src/selector/graphics/chooser/UIGChooserHandlerKeyboard.cpp \
785 src/selector/graphics/chooser/UIGChooserItem.cpp \
786 src/selector/graphics/chooser/UIGChooserItemGroup.cpp \
787 src/selector/graphics/chooser/UIGChooserItemMachine.cpp \
788 src/selector/graphics/details/UIGDetails.cpp \
789 src/selector/graphics/details/UIGDetailsModel.cpp \
790 src/selector/graphics/details/UIGDetailsView.cpp \
791 src/selector/graphics/details/UIGDetailsItem.cpp \
792 src/selector/graphics/details/UIGDetailsGroup.cpp \
793 src/selector/graphics/details/UIGDetailsSet.cpp \
794 src/selector/graphics/details/UIGDetailsElement.cpp \
795 src/selector/graphics/details/UIGDetailsElements.cpp \
796 src/selector/graphics/details/UIGMachinePreview.cpp \
797 src/settings/UISettingsDefs.cpp \
798 src/settings/UISettingsDialog.cpp \
799 src/settings/UISettingsDialogSpecific.cpp \
800 src/settings/UISettingsPage.cpp \
801 src/settings/UISettingsSelector.cpp \
802 src/settings/UISettingsSerializer.cpp \
803 src/settings/global/UIGlobalSettingsExtension.cpp \
804 src/settings/global/UIGlobalSettingsGeneral.cpp \
805 src/settings/global/UIGlobalSettingsInput.cpp \
806 src/settings/global/UIGlobalSettingsLanguage.cpp \
807 src/settings/global/UIGlobalSettingsDisplay.cpp \
808 src/settings/global/UIGlobalSettingsNetwork.cpp \
809 src/settings/global/UIGlobalSettingsNetworkDetailsNAT.cpp \
810 src/settings/global/UIGlobalSettingsPortForwardingDlg.cpp \
811 src/settings/machine/UIMachineSettingsAudio.cpp \
812 src/settings/machine/UIMachineSettingsDisplay.cpp \
813 src/settings/machine/UIMachineSettingsGeneral.cpp \
814 src/settings/machine/UIMachineSettingsInterface.cpp \
815 src/settings/machine/UIMachineSettingsNetwork.cpp \
816 src/settings/machine/UIMachineSettingsPortForwardingDlg.cpp \
817 src/settings/machine/UIMachineSettingsSF.cpp \
818 src/settings/machine/UIMachineSettingsSFDetails.cpp \
819 src/settings/machine/UIMachineSettingsSerial.cpp \
820 src/settings/machine/UIMachineSettingsStorage.cpp \
821 src/settings/machine/UIMachineSettingsSystem.cpp \
822 src/settings/machine/UIMachineSettingsUSB.cpp \
823 src/settings/machine/UIMachineSettingsUSBFilterDetails.cpp \
824 src/widgets/UIApplianceEditorWidget.cpp \
825 src/widgets/UIApplianceExportEditorWidget.cpp \
826 src/widgets/UIApplianceImportEditorWidget.cpp \
827 src/widgets/UIBootTable.cpp \
828 src/widgets/UIFilePathSelector.cpp \
829 src/widgets/UIEmptyFilePathSelector.cpp \
830 src/widgets/UIHostComboEditor.cpp \
831 src/widgets/UIHotKeyEditor.cpp \
832 src/widgets/UILineTextEdit.cpp \
833 src/widgets/UIMediumSizeEditor.cpp \
834 src/widgets/UIMenuBar.cpp \
835 src/widgets/UIPopupBox.cpp \
836 src/widgets/UIPopupPane.cpp \
837 src/widgets/UIPopupPaneMessage.cpp \
838 src/widgets/UIPopupPaneDetails.cpp \
839 src/widgets/UIPopupPaneButtonPane.cpp \
840 src/widgets/UIPopupStack.cpp \
841 src/widgets/UIPopupStackViewport.cpp \
842 src/widgets/UIPortForwardingTable.cpp \
843 src/widgets/UIProgressDialog.cpp \
844 src/widgets/UISlidingWidget.cpp \
845 src/widgets/UISpecialControls.cpp \
846 src/widgets/UITabBar.cpp \
847 src/widgets/UIToolBar.cpp \
848 src/widgets/VBoxGuestRAMSlider.cpp \
849 src/widgets/VBoxMediaComboBox.cpp \
850 src/widgets/UIMenuToolBar.cpp \
851 src/widgets/UIMiniToolBar.cpp \
852 src/widgets/VBoxOSTypeSelectorButton.cpp \
853 src/widgets/UINameAndSystemEditor.cpp \
854 src/widgets/UIWarningPane.cpp \
855 src/widgets/UIFilmContainer.cpp \
856 src/widgets/graphics/UIGraphicsButton.cpp \
857 src/widgets/graphics/UIGraphicsRotatorButton.cpp \
858 src/widgets/graphics/UIGraphicsZoomButton.cpp \
859 src/widgets/graphics/UIGraphicsToolBar.cpp \
860 src/widgets/graphics/UIGraphicsTextPane.cpp \
861 src/wizards/UIWizard.cpp \
862 src/wizards/UIWizardPage.cpp \
863 src/wizards/newvm/UIWizardNewVM.cpp \
864 src/wizards/newvm/UIWizardNewVMPageBasic1.cpp \
865 src/wizards/newvm/UIWizardNewVMPageBasic2.cpp \
866 src/wizards/newvm/UIWizardNewVMPageBasic3.cpp \
867 src/wizards/newvm/UIWizardNewVMPageExpert.cpp \
868 src/wizards/newvd/UIWizardNewVD.cpp \
869 src/wizards/newvd/UIWizardNewVDPageBasic1.cpp \
870 src/wizards/newvd/UIWizardNewVDPageBasic2.cpp \
871 src/wizards/newvd/UIWizardNewVDPageBasic3.cpp \
872 src/wizards/newvd/UIWizardNewVDPageExpert.cpp \
873 src/wizards/clonevm/UIWizardCloneVM.cpp \
874 src/wizards/clonevm/UIWizardCloneVMPageBasic1.cpp \
875 src/wizards/clonevm/UIWizardCloneVMPageBasic2.cpp \
876 src/wizards/clonevm/UIWizardCloneVMPageBasic3.cpp \
877 src/wizards/clonevm/UIWizardCloneVMPageExpert.cpp \
878 src/wizards/clonevd/UIWizardCloneVD.cpp \
879 src/wizards/clonevd/UIWizardCloneVDPageBasic1.cpp \
880 src/wizards/clonevd/UIWizardCloneVDPageBasic2.cpp \
881 src/wizards/clonevd/UIWizardCloneVDPageBasic3.cpp \
882 src/wizards/clonevd/UIWizardCloneVDPageBasic4.cpp \
883 src/wizards/clonevd/UIWizardCloneVDPageExpert.cpp \
884 src/wizards/exportappliance/UIWizardExportApp.cpp \
885 src/wizards/exportappliance/UIWizardExportAppPageBasic1.cpp \
886 src/wizards/exportappliance/UIWizardExportAppPageBasic2.cpp \
887 src/wizards/exportappliance/UIWizardExportAppPageBasic3.cpp \
888 src/wizards/exportappliance/UIWizardExportAppPageBasic4.cpp \
889 src/wizards/exportappliance/UIWizardExportAppPageExpert.cpp \
890 src/wizards/importappliance/UIWizardImportApp.cpp \
891 src/wizards/importappliance/UIWizardImportAppPageBasic1.cpp \
892 src/wizards/importappliance/UIWizardImportAppPageBasic2.cpp \
893 src/wizards/importappliance/UIWizardImportAppPageExpert.cpp \
894 src/wizards/firstrun/UIWizardFirstRun.cpp \
895 src/wizards/firstrun/UIWizardFirstRunPageBasic.cpp
896
897ifdef VBOX_GUI_WITH_NETWORK_MANAGER
898 VirtualBox_SOURCES += \
899 src/net/UINetworkManager.cpp \
900 src/net/UINetworkManagerDialog.cpp \
901 src/net/UINetworkManagerIndicator.cpp \
902 src/net/UINetworkRequest.cpp \
903 src/net/UINetworkRequestWidget.cpp \
904 src/net/UINetworkReply.cpp \
905 src/net/UINetworkCustomer.cpp \
906 src/net/UIDownloader.cpp \
907 src/net/UIDownloaderAdditions.cpp \
908 src/net/UIDownloaderExtensionPack.cpp \
909 src/net/UIDownloaderUserManual.cpp \
910 src/net/UIUpdateDefs.cpp \
911 src/net/UIUpdateManager.cpp \
912 src/settings/global/UIGlobalSettingsProxy.cpp \
913 src/settings/global/UIGlobalSettingsUpdate.cpp
914endif
915
916VirtualBox_SOURCES.darwin += \
917 src/platform/darwin/UIAbstractDockIconPreview.cpp \
918 src/platform/darwin/UICocoaDockIconPreview.mm \
919 src/platform/darwin/UIWindowMenuManager.cpp \
920
921if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) # X11
922 VirtualBox_SOURCES += \
923 src/platform/x11/UIDesktopServices_x11.cpp \
924 src/platform/x11/VBoxX11Helper.cpp \
925 src/platform/x11/XKeyboard-new.cpp
926endif
927
928VirtualBox_SOURCES.win += \
929 src/platform/win/VirtualBox.rc \
930 src/platform/win/UIDesktopServices_win.cpp \
931 src/platform/win/VBoxUtils-win.cpp \
932 src/platform/win/WinKeyboard.cpp
933
934VirtualBox_SOURCES.darwin += \
935 src/platform/darwin/CocoaEventHelper.mm \
936 src/platform/darwin/DarwinKeyboard.cpp \
937 src/platform/darwin/UICocoaApplication.mm \
938 src/platform/darwin/UICocoaSpecialControls.mm \
939 src/platform/darwin/UIDesktopServices_darwin.cpp \
940 src/platform/darwin/UIDesktopServices_darwin_cocoa.mm \
941 src/platform/darwin/VBoxUtils-darwin-cocoa.mm \
942 src/platform/darwin/VBoxUtils-darwin.cpp
943VirtualBox_QT_MOCHDRS.darwin += \
944 src/platform/darwin/UICocoaSpecialControls.h
945
946ifdef VBOX_WITH_ICHAT_THEATER
947 VirtualBox_SOURCES.darwin += \
948 src/platform/darwin/VBoxIChatTheaterWrapper.m
949endif
950
951if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
952 VirtualBox_SOURCES += \
953 src/VBoxFBOverlay.cpp \
954 src/VBoxGLSupportInfo.cpp
955endif
956
957ifdef VBOX_WITH_DRAG_AND_DROP
958 VirtualBox_SOURCES += \
959 src/runtime/UIDnDHandler.cpp
960 ifdef VBOX_WITH_DRAG_AND_DROP_GH
961 VirtualBox_SOURCES += \
962 src/runtime/UIDnDMIMEData.cpp
963 VirtualBox_SOURCES.win += \
964 src/runtime/UIDnDDropSource_win.cpp \
965 src/runtime/UIDnDDataObject_win.cpp \
966 src/runtime/UIDnDEnumFormat_win.cpp
967 endif
968endif
969
970
971#
972# VirtualBox - GUI Application.
973# Deployment.
974#
975if defined(VBOX_WITH_ORACLE_QT) || defined(VBOX_WITH_QT_PAYLOAD)
976 INSTALLS.linux += VirtualBox.qt.conf
977 INSTALLS.solaris += VirtualBox.qt.conf
978 VirtualBox.qt.conf_INST = $(INST_BIN)
979 VirtualBox.qt.conf_MODE = 644
980 VirtualBox.qt.conf_SOURCES = $(VirtualBox_0_OUTDIR)/qt.conf=>qt.conf
981
982$$(VirtualBox_0_OUTDIR)/qt.conf: $(PATH_SUB_CURRENT)/Makefile.kmk $(VBOX_VERSION_MK) | $$(@D)/
983 $(QUIET)$(RM) -f $@
984 $(QUIET)$(APPEND) $@ "[Paths]"
985 $(QUIET)$(APPEND) $@ "Plugins =" $(PATH_OUT)/$(INST_BIN)/plugins
986endif
987
988
989#
990# VirtualBox - GUI Application.
991# The Qt modules we're using.
992# (The include directory and lib/framework for each module will be added by the Qt unit.)
993#
994VirtualBox_QT_MODULES = Core Gui Widgets PrintSupport
995VirtualBox_QT_MODULES.linux += X11Extras
996VirtualBox_QT_MODULES.solaris += X11Extras
997VirtualBox_QT_MODULES.freebsd += X11Extras
998VirtualBox_QT_MODULES.darwin += MacExtras
999VirtualBox_QT_MODULES.win += WinExtras
1000if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
1001 VirtualBox_QT_MODULES += OpenGL
1002endif
1003
1004
1005# Pull in the ui files
1006$(eval VirtualBox_SOURCES += $(FORMS))
1007
1008# Resource files with some OSE differences (VirtualBoxBrand.qrc is created further down).
1009VirtualBox_SOURCES += VirtualBox1.qrc
1010VirtualBox1.qrc_RCCFLAGS = -name BASIC1
1011VirtualBox_SOURCES += VirtualBox2.qrc
1012VirtualBox2.qrc_RCCFLAGS = -name BASIC2
1013VirtualBox_SOURCES += VirtualBox1_x2.qrc
1014VirtualBox1_x2.qrc_RCCFLAGS = -name BASIC1_X2
1015VirtualBox_SOURCES += VirtualBox2_x2.qrc
1016VirtualBox2_x2.qrc_RCCFLAGS = -name BASIC2_X2
1017VirtualBox_SOURCES += VirtualBox1_x3.qrc
1018VirtualBox1_x3.qrc_RCCFLAGS = -name BASIC1_X3
1019VirtualBox_SOURCES += VirtualBox2_x3.qrc
1020VirtualBox2_x3.qrc_RCCFLAGS = -name BASIC2_X3
1021VirtualBox_SOURCES += VirtualBox1_x4.qrc
1022VirtualBox1_x4.qrc_RCCFLAGS = -name BASIC1_X4
1023VirtualBox_SOURCES += VirtualBox2_x4.qrc
1024VirtualBox2_x4.qrc_RCCFLAGS = -name BASIC2_X4
1025VirtualBox_SOURCES += $(VBOX_VIRTUALBOX_OUT_DIR)/VirtualBoxBrand.qrc
1026$(VBOX_VIRTUALBOX_OUT_DIR)/VirtualBoxBrand.qrc_RCCFLAGS = -name BRAND
1027if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
1028 VirtualBox_SOURCES += VirtualBoxShaders.qrc
1029 VirtualBoxShaders.qrc_RCCFLAGS = -name SHADERS
1030endif
1031
1032# Import the translation source from VBoxUI.pro and add the qt_xx_YY counterparts
1033VirtualBox_QT_TRANSLATIONS := $(TRANSLATIONS) \
1034 $(patsubst nls/VirtualBox_%.ts,nls/qt_%.ts, $(filter nls/VirtualBox_%.ts,$(TRANSLATIONS)))
1035# Compress the translation units.
1036VirtualBox_LRCFLAGS = -silent
1037# Where to install the translations (a separate install target, VirtualBox-nls-inst is created).
1038VirtualBox_QT_TRANSLATIONS_INST = $(INST_BIN)nls/
1039
1040
1041## @todo how to detect what tool is used?
1042## @todo GCC3 seems to lack -Wno-missing-base-class-initializer, so we use
1043# more generic -Wno-extra
1044# bird: What about $(if $(VBOX_GCC_Wno-missing-base-class-initializer),$(VBOX_GCC_Wno-missing-base-class-initializer),$(VBOX_GCC_Wno-extra))?
1045ifdef VBOX_WITH_XPCOM
1046 VirtualBox_src/globals/COMDefs.cpp_CXXFLAGS = $(VBOX_GCC_Wno-extra)
1047endif
1048
1049
1050#
1051# Generate the COM wrappers.
1052#
1053includedep $(PATH_TARGET)/VirtualBoxComWrapperFiles.dep
1054VirtualBox_BLDDIRS += $(VirtualBox_0_OUTDIR)/include
1055VirtualBox_INTERMEDIATES += $(VirtualBox_0_OUTDIR)/include/COMWrappers
1056VirtualBox_CLEAN += $(wildcard $(VirtualBox_0_OUTDIR)/include/*) $(PATH_TARGET)/VirtualBoxComWrapperFiles.dep
1057
1058#
1059# VirtualBox - GUI Application.
1060# Build generated COM wrappers as part of app.
1061#
1062VirtualBox_SOURCES += $(VirtualBox_0_OUTDIR)/include/COMWrappers.cpp
1063
1064## @todo kmk doesn't remake optional outputs when they are missing...
1065$$(VirtualBox_0_OUTDIR)/include/COMWrappers \
1066+ $(PATH_TARGET)/VirtualBoxComWrapperFiles.dep \
1067+| $(if-expr defined(VirtualBox_VBOX_COMWRAPPERS) \
1068, $(VirtualBox_VBOX_COMWRAPPERS) \
1069, $$(VirtualBox_0_OUTDIR)/include/COMEnums.h \
1070 $$(VirtualBox_0_OUTDIR)/include/COMWrappers.cpp \
1071): \
1072 $(VBOX_XIDL_FILE) \
1073 $(VBOX_VIRTUALBOX_SRC)/src/globals/COMWrappers.xsl \
1074 $(VBOX_FILESPLIT) \
1075 | $$(dir $$@)
1076 $(call MSG_GENERATE,VirtualBox,$<,$@)
1077 $(QUIET)$(RM) -f -- "$@" "$(PATH_TARGET)/VirtualBoxComWrapperFiles.dep"
1078 $(QUIET)$(VBOX_XSLTPROC) -o $@ \
1079 $(VBOX_VIRTUALBOX_SRC)/src/globals/COMWrappers.xsl $<
1080 $(QUIET)$(VBOX_FILESPLIT) $@ $(VirtualBox_0_OUTDIR)/include \
1081 $(PATH_TARGET)/VirtualBoxComWrapperFiles.dep VirtualBox_VBOX_COMWRAPPERS
1082 $(APPEND) "$@"
1083
1084# alias for generating the COM Wrappers file.
1085testwrappers:: $$(VirtualBox_0_OUTDIR)/include/COMWrappers
1086
1087
1088#
1089# Generate qrc file with branded icons.
1090#
1091VirtualBox_BLDDIRS += $(VBOX_VIRTUALBOX_OUT_DIR)
1092VirtualBox_CLEAN += $(VBOX_VIRTUALBOX_OUT_DIR)/VirtualBoxBrand.qrc
1093$(VBOX_VIRTUALBOX_OUT_DIR)/VirtualBoxBrand.qrc: \
1094 $(VBOX_VIRTUALBOX_SRC)/VirtualBoxBrand.qrc \
1095 $(PATH_ROOT)/Config.kmk \
1096 | $$(dir $$@)
1097 $(call MSG_GENERATE,VirtualBox,$<,$@)
1098 $(QUIET)$(SED) \
1099 -e 's;@VBOX_ABOUT_PNG@;$(VBOX_BRAND_GUI_ABOUT_PNG);g' \
1100 -e 's;@VBOX_ABOUT_HIDPI_PNG@;$(VBOX_BRAND_GUI_ABOUT_HIDPI_PNG);g' \
1101 -e 's;@VBOX_ABOUT_16PX_PNG@;$(VBOX_BRAND_GUI_ABOUT_16PX_PNG);g' \
1102 -e 's;@VBOX_ABOUT_16PX_HIDPI_PNG@;$(VBOX_BRAND_GUI_ABOUT_16PX_HIDPI_PNG);g' \
1103 -e 's;@VBOX_VBOX_16PX_PNG@;$(VBOX_BRAND_GUI_VBOX_16PX_PNG);g' \
1104 -e 's;@VBOX_VBOX_20PX_PNG@;$(VBOX_BRAND_GUI_VBOX_20PX_PNG);g' \
1105 -e 's;@VBOX_VBOX_32PX_PNG@;$(VBOX_BRAND_GUI_VBOX_32PX_PNG);g' \
1106 -e 's;@VBOX_VBOX_40PX_PNG@;$(VBOX_BRAND_GUI_VBOX_40PX_PNG);g' \
1107 -e 's;@VBOX_VBOX_48PX_PNG@;$(VBOX_BRAND_GUI_VBOX_48PX_PNG);g' \
1108 -e 's;@VBOX_VBOX_64PX_PNG@;$(VBOX_BRAND_GUI_VBOX_64PX_PNG);g' \
1109 -e 's;@VBOX_CUBE_42PX_PNG@;$(VBOX_BRAND_GUI_CUBE_42PX_PNG);g' \
1110 -e 's;@VBOX_CUBE_SVG@;$(VBOX_BRAND_GUI_VBOX_SVG);g' \
1111 --output $@ \
1112 $<
1113
1114
1115#
1116# Precompiled header - non-functional atm.
1117#
1118ifdef VBOX_WITH_PRECOMPILED_HEADERS
1119 if1of ($(KBUILD_TARGET),win)
1120 VirtualBox_USES += vccprecomp
1121 VirtualBox_PCH_HDR := $(PATH_SUB_CURRENT)/src/precomp_vcc.h
1122
1123 else # obsolete experiment
1124 VirtualBox_DEFS += VBOX_WITH_PRECOMPILED_HEADERS
1125 VirtualBox_INCS <= $(VirtualBoxPch_0_OUTDIR)/src
1126 VirtualBox_CXXFLAGS += -Winvalid-pch -fpch-preprocess
1127 $(foreach x,$(filter-out include/COMWrappers.cpp, $(filter %.cpp, \
1128 $(VirtualBox_SOURCES) \
1129 $(VirtualBox_SOURCES.$(KBUILD_TARGET)) \
1130 $(VirtualBox_SOURCES.$(KBUILD_TYPE)) \
1131 )),$(eval $(abspath $(PATH_OBJ)/VirtualBox/$(basename $(x)).o): $$$$(VirtualBoxPch_0_OUTDIR)/src/precomp.h.gch))
1132
1133 TOOL_VirtualBoxPchLinker = Linker for VirtualBoxPch
1134 define TOOL_VirtualBoxPchLinker_LINK_MISCBIN_CMDS
1135 $(APPEND) -t $(out)
1136 endef
1137
1138 MISCBINS += VirtualBoxPch
1139 VirtualBoxPch_EXTENDS = VirtualBox
1140 VirtualBoxPch_LDTOOL = VirtualBoxPchLinker
1141 VirtualBoxPch_INSTTYPE = none
1142 VirtualBoxPch_NAME = VirtualBoxPch
1143 VirtualBoxPch_INTERMEDIATES = $(filter-out %.h.gch, $(VirtualBox_INTERMEDIATES))
1144 VirtualBoxPch_SOURCES = src/precomp.h
1145 VirtualBoxPch_CXXFLAGS = $(filter-out -Winvalid-pch -fpch-preprocess, $(VirtualBox_CXXFLAGS)) -x c++-header
1146 VirtualBoxPch_CXXOBJSUFF = .h.gch
1147 VirtualBoxPch_SRC_HANDLERS = .h:def_src_handler_cxx
1148 VirtualBoxPch_SOURCES.darwin = $(NO_SUCH_VARIABLE)
1149 VirtualBoxPch_SOURCES.solaris = $(NO_SUCH_VARIABLE)
1150 VirtualBoxPch_SOURCES.freebsd = $(NO_SUCH_VARIABLE)
1151 VirtualBoxPch_SOURCES.linux = $(NO_SUCH_VARIABLE)
1152 VirtualBoxPch_SOURCES.win = $(NO_SUCH_VARIABLE)
1153 VirtualBoxPch_QT_MODULES = $(VirtualBox_QT_MODULES) # "bug" - not inherited.
1154 VirtualBoxPch_INCS = $(VirtualBox_INCS) # "bug" - missing qtuic and qtmoc
1155 endif # obsolete experiment
1156endif
1157
1158ifeq ($(KBUILD_TARGET),win)
1159#
1160# On Windows we'll have to generate/edit part of the resource file.
1161# The IDI_ICON1 name is Qt specific.
1162#
1163src/platform/win/VirtualBox.rc_INCS = $(VirtualBox_0_OUTDIR)
1164src/platform/win/VirtualBox.rc_DEPS = $(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc
1165src/platform/win/VirtualBox.rc_CLEAN = $(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc
1166
1167$$(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc: $(MAKEFILE_CURRENT) $(VBOX_WINDOWS_ICON_FILE) | $$(dir $$@)
1168 $(APPEND) -t $@ 'IDI_ICON1 ICON "$(subst /,\\,$(VBOX_WINDOWS_ICON_FILE))"'
1169
1170endif # win
1171
1172
1173#
1174# Unset everything that was loaded from VBoxUI.pro.
1175#
1176FORMS :=
1177TRANSLATIONS :=
1178
1179
1180ifeq ($(KBUILD_TARGET),darwin)
1181#
1182# Create directories for each approved language or the application
1183# menu won't be translated.
1184#
1185INSTALLS += VirtualBox.lproj
1186VirtualBox.lproj_INST = $(INST_VIRTUALBOX)Contents/Resources/
1187VirtualBox.lproj_MODE = 755
1188VirtualBox.lproj_DIRS := $(addsuffix .lproj,$(VBOX_APPROVED_GUI_LANGUAGES))
1189
1190#
1191# On OS X (darwin) we need to install icon resources and compulsory bundle contents.
1192# The VirtualBoxVM.app helper is for launching VMs (fixes some issues with the dock).
1193#
1194INSTALLS += VirtualBox.app
1195VirtualBox.app_INST = $(INST_VIRTUALBOX)Contents/
1196VirtualBox.app_MODE = 644
1197VirtualBox.app_SOURCES = \
1198 src/platform/darwin/PkgInfo \
1199 $(VirtualBox.app_0_OUTDIR)/Info.plist \
1200 $(VBOX_MACOSX_ICON_FILE)=>Resources/virtualbox.icns \
1201 $(VBOX_BRAND_GUI_VBOX_64PX_PNG)=>Resources/virtualbox.png \
1202 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vbox.icns=>Resources/virtualbox-vbox.icns \
1203 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vbox-extpack.icns=>Resources/virtualbox-vbox-extpack.icns \
1204 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-ovf.icns=>Resources/virtualbox-ovf.icns \
1205 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-ova.icns=>Resources/virtualbox-ova.icns \
1206 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vdi.icns=>Resources/virtualbox-vdi.icns \
1207 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vmdk.icns=>Resources/virtualbox-vmdk.icns \
1208 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vhd.icns=>Resources/virtualbox-vhd.icns \
1209 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-hdd.icns=>Resources/virtualbox-hdd.icns
1210
1211 # Qt5 requires qt.conf on Mac OS X:
1212 VirtualBox.app_SOURCES += \
1213 $(VirtualBox.app_0_OUTDIR)/qt.conf=>Resources/qt.conf
1214
1215 $$(VirtualBox.app_0_OUTDIR)/Info.plist: $(PATH_SUB_CURRENT)/src/platform/darwin/Info.plist $(VBOX_VERSION_MK) | $$(@D)/
1216 $(call MSG_GENERATE,VirtualBox.app,$<,$@)
1217 $(QUIET)$(RM) -f $@
1218 $(QUIET)$(SED) \
1219 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
1220 -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
1221 -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
1222 -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
1223 -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
1224 -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
1225 -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
1226 $< > $@
1227
1228 $$(VirtualBox.app_0_OUTDIR)/qt.conf: $(PATH_SUB_CURRENT)/Makefile.kmk $(VBOX_VERSION_MK) | $$(@D)/
1229 $(QUIET)$(RM) -f $@
1230 $(QUIET)$(APPEND) $@ "[Paths]"
1231 $(QUIET)$(APPEND) $@ "Prefix =" $(PATH_OUT)/$(VirtualBox.app_INST)
1232
1233 INSTALLS += VirtualBoxVM.app
1234 VirtualBoxVM.app_INST = $(VirtualBox.app_INST)Resources/VirtualBoxVM.app/Contents/
1235 VirtualBoxVM.app_MODE = 644
1236 VirtualBoxVM.app_SOURCES = \
1237 src/platform/darwin/VM-PkgInfo=>PkgInfo \
1238 $(VirtualBoxVM.app_0_OUTDIR)/VM-Info.plist=>Info.plist \
1239 $(foreach mysrc,$(VirtualBox.app_SOURCES),$(if-expr $(pos =>Resources/,$(mysrc)) > 0,$(mysrc),))
1240 VirtualBoxVM.app_SYMLINKS = \
1241 MacOS=>../../../MacOS/
1242
1243 $$(VirtualBoxVM.app_0_OUTDIR)/VM-Info.plist: $(PATH_SUB_CURRENT)/src/platform/darwin/VM-Info.plist $(VBOX_VERSION_MK) | $$(@D)/
1244 $(call MSG_GENERATE,VirtualBoxVM.app,$<,$@)
1245 $(QUIET)$(RM) -f $@
1246 $(QUIET)$(SED) \
1247 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
1248 -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
1249 -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
1250 -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
1251 -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
1252 -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
1253 -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
1254 --output $@ $<
1255
1256 PROGRAMS += vmstarter
1257 vmstarter_TEMPLATE = VBOXR3EXE
1258 ifdef VBOX_WITH_NEW_XCODE
1259 vmstarter_OBJCXXFLAGS += -Wno-error=deprecated-declarations ## @todo fix deprecate API use!
1260 else
1261 vmstarter_OBJCXXFLAGS += -Wno-deprecated-declarations
1262 endif
1263 vmstarter_LDFLAGS += -framework AppKit
1264 vmstarter_SOURCES = src/platform/darwin/vmstarter.mm
1265 vmstarter_INST = $(INST_BIN)vmstarter
1266
1267 INSTALLS += vmstarter.app
1268 vmstarter.app_INST = $(VirtualBox.app_INST)Resources/vmstarter.app/Contents/
1269 vmstarter.app_MODE = 644
1270 vmstarter.app_SOURCES = \
1271 src/platform/darwin/vmstarter-PkgInfo=>PkgInfo \
1272 $(vmstarter.app_0_OUTDIR)/vmstarter-Info.plist=>Info.plist \
1273 $(foreach mysrc,$(VirtualBox.app_SOURCES),$(if-expr $(pos =>Resources/,$(mysrc)) > 0,$(mysrc),))
1274 vmstarter.app_SYMLINKS = \
1275 MacOS=>../../../MacOS \
1276
1277 $$(vmstarter.app_0_OUTDIR)/vmstarter-Info.plist: $(PATH_SUB_CURRENT)/src/platform/darwin/vmstarter-Info.plist $(VBOX_VERSION_MK) | $$(@D)/
1278 $(call MSG_GENERATE,vmstarter.app,$<,$@)
1279 $(QUIET)$(RM) -f $@
1280 $(QUIET)$(SED) \
1281 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
1282 -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
1283 -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
1284 -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
1285 -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
1286 -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
1287 -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
1288 --output $@ $<
1289endif # darwin
1290
1291#
1292# App for testing GL support
1293#
1294if defined(VBOX_WITH_VIDEOHWACCEL)
1295 if1of ($(KBUILD_TARGET), win linux freebsd)
1296 LIBRARIES += VBoxOGL2D
1297 VBoxOGL2D_TEMPLATE = $(if $(VBOX_WITH_VIDEOHWACCEL),$(if $(VBOX_WITH_HARDENING),VBOXQTGUI,VBOXQTGUIEXE),VBOXMAINEXE)
1298 VBoxOGL2D_DEFS = QT_NO_DEBUG QT_THREAD_SUPPORT QT_SHARED HAVE_CONFIG_H VBOX_WITH_VIDEOHWACCEL VBOX_GUI_USE_QGL
1299 VBoxOGL2D_QT_MODULES += OpenGL
1300 VBoxOGL2D_SOURCES = \
1301 src/VBoxGLSupportInfo.cpp
1302 VBoxOGL2D_INCS = include
1303 endif
1304endif
1305
1306
1307#
1308# Testcase for the darwin keyboard routines.
1309#
1310ifdef VBOX_WITH_TESTCASES
1311 PROGRAMS.darwin += tstDarwinKeyboard
1312 tstDarwinKeyboard_TEMPLATE = VBOXR3TSTEXE
1313 tstDarwinKeyboard_DEFS.x86 = USE_HID_FOR_MODIFIERS
1314 tstDarwinKeyboard_INCS = include
1315 tstDarwinKeyboard_SOURCES = \
1316 src/platform/darwin/tstDarwinKeyboard.cpp \
1317 src/platform/darwin/DarwinKeyboard.cpp
1318 tstDarwinKeyboard_SOURCES.amd64 = \
1319 src/platform/darwin/CocoaEventHelper.mm
1320 tstDarwinKeyboard_LDFLAGS = -framework IOKit -framework Carbon -framework AppKit
1321 tstDarwinKeyboard_LIBS = \
1322 $(LIB_RUNTIME)
1323endif
1324
1325
1326#
1327# Testcase for SSL certificate downloading.
1328#
1329if defined(VBOX_WITH_TESTCASES) && defined(VBOX_GUI_WITH_NETWORK_MANAGER)
1330 PROGRAMS += tstSSLCertDownloads
1331 tstSSLCertDownloads_TEMPLATE = VBOXQTGUIEXE
1332 tstSSLCertDownloads_USES = qt5
1333 tstSSLCertDownloads_QTTOOL = QT5
1334 tstSSLCertDownloads_QT_MODULES = Core Gui
1335 tstSSLCertDownloads_DEFS = VBOX_GUI_IN_TST_SSL_CERT_DOWNLOADS
1336 tstSSLCertDownloads_INCS = \
1337 $(VBOX_GUI_INC_DIRS)
1338 tstSSLCertDownloads_SOURCES = \
1339 src/net/tstSSLCertDownloads.cpp
1340endif
1341
1342
1343#
1344# Doxygen documentation.
1345#
1346QTGUI_DOXYFILE_OUTPUT = $(PATH_OUT)/docs/qtgui
1347BLDDIRS += $(QTGUI_DOXYFILE_OUTPUT)
1348OTHER_CLEAN += \
1349 $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui \
1350 $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui.dep \
1351 $(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui
1352
1353QTGUI_DOXYFILE_INPUT_DIRS := \
1354 $(addprefix $(PATH_SUB_CURRENT)/src/, \
1355 converter \
1356 extensions \
1357 extensions/graphics \
1358 extradata \
1359 globals \
1360 medium \
1361 net \
1362 objects \
1363 platform \
1364 platform/darwin \
1365 platform/os2 \
1366 platform/win \
1367 platform/x11 \
1368 runtime \
1369 runtime/fullscreen \
1370 runtime/information \
1371 runtime/guestctrl \
1372 runtime/normal \
1373 runtime/scale \
1374 runtime/seamless \
1375 selector \
1376 selector/graphics \
1377 selector/graphics/chooser \
1378 selector/graphics/details \
1379 settings \
1380 settings/global \
1381 settings/machine \
1382 widgets \
1383 widgets/graphics \
1384 wizards \
1385 wizards/clonevd \
1386 wizards/clonevm \
1387 wizards/exportappliance \
1388 wizards/firstrun \
1389 wizards/importappliance \
1390 wizards/newvd \
1391 wizards/newvm)
1392
1393QTGUI_DOXYFILE_INPUT := \
1394 $(foreach dir, $(QTGUI_DOXYFILE_INPUT_DIRS), \
1395 $(sort $(wildcard $(dir)/*.h)) \
1396 $(sort $(wildcard $(dir)/*.cpp $(dir)/*.m $(dir)/*.mm)))
1397
1398includedep $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui.dep
1399
1400# Generate the Doxyfile
1401$(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui: \
1402 $(PATH_SUB_CURRENT)/Doxyfile \
1403 $(PATH_SUB_CURRENT)/Makefile.kmk \
1404 $(comp-vars QTGUI_DOXYFILE_INPUT,DOXYGEN_QTGUI_INPUT_PREV,FORCE) \
1405 $(comp-vars QTGUI_DOXYFILE_OUTPUT,DOXYGEN_QTGUI_OUTPUT_PREV,FORCE) \
1406 | $$(dir $$@)
1407 $(QUIET)$(RM) -f $@ [email protected] [email protected]
1408 $(QUIET)$(CP) -f $< [email protected]
1409 $(QUIET)$(APPEND) [email protected]
1410 $(QUIET)$(APPEND) [email protected] "OUTPUT_DIRECTORY = $(QTGUI_DOXYFILE_OUTPUT)"
1411 $(QUIET)$(APPEND) [email protected] "WARN_LOGFILE = $(QTGUI_DOXYFILE_OUTPUT)/errors"
1412 $(QUIET)$(APPEND) [email protected] "INCLUDE_PATH = $(PATH_ROOT)/include ."
1413 $(QUIET)$(APPEND) [email protected] "PREDEFINED += $(ARCH_BITS_DEFS)"
1414 $(QUIET)$(APPEND) [email protected]
1415 $(QUIET)$(APPEND) [email protected] 'INPUT = $(foreach x,$(QTGUI_DOXYFILE_INPUT),\$(NLTAB)$(x))'
1416 $(QUIET)$(APPEND) [email protected]
1417 $(QUIET)$(MV) -f [email protected] $@
1418 @$(APPEND) [email protected] "DOXYGEN_QTGUI_OUTPUT_PREV = $(QTGUI_DOXYFILE_OUTPUT)"
1419 @$(APPEND) [email protected] "DOXYGEN_QTGUI_INPUT_PREV = $(QTGUI_DOXYFILE_INPUT)"
1420
1421# Do the actual job.
1422$(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui: $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui $$(QTGUI_DOXYFILE_INPUT) \
1423 | $(QTGUI_DOXYFILE_OUTPUT)/
1424 $(call MSG_L1,doxygen qtgui)
1425 $(QUIET)$(RM) -f $@
1426 $(QUIET)$(RM) -Rf -- $(QTGUI_DOXYFILE_OUTPUT)/html/
1427 doxygen $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui
1428 $(APPEND) $@
1429
1430# aliases
1431docs.qtgui: $(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui
1432if !defined(VBOX_ONLY_DOCS) && defined(VBOX_WITH_ALL_DOXYGEN_TARGETS)
1433docs: $(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui
1434endif
1435
1436
1437
1438# Commit the magic.
1439# (note: before custom rules that make usage of generated variables!).
1440include $(FILE_KBUILD_SUB_FOOTER)
1441
1442
1443#
1444# Update all known NLS translation (.ts) files in the nls/ subdirectory.
1445#
1446# NOTE: This target is intended to be run only by the GUI maintainer shortly
1447# before a new product release. VirtualBox_xx_YY.ts is a template for new
1448# languages and should never be actually translated or installed.
1449#
1450# Use the checknls target for checking again common mistakes done by the
1451# translators.
1452#
1453# For Qt >= 4.6.0 it maybe necessary to add -I $(VBOX_GUI_INC_DIRS) to the
1454# lupdate call
1455#
1456#VirtualBox_QT_TRANSLATIONS = nls/VirtualBox_de.ts
1457checknls::
1458 # Check for missing :/ in image paths
1459 grep -i "src=[^:%]" $(filter-out nls/qt_%.ts,$(VirtualBox_QT_TRANSLATIONS))
1460
1461updatenls:: makeallnls nls/VirtualBox_en.ts
1462
1463makeallnls:: \
1464 $(foreach header,$(VBOX_GUI_INC_DIRS),$(wildcard $(header)/*.h)) \
1465 $(filter-out %.qrc,$(VirtualBox_SOURCES) $(VirtualBox_VBOX_EXTRA_NLS_SOURCES))
1466 $(call MSG_L1,lupdate all languages (nls/*.ts))
1467 $(QUIET)$(TOOL_QT5_LUPDATE) \
1468 $^ \
1469 -ts \
1470 $(filter-out nls/VirtualBox_en.ts,$(filter-out nls/qt_%.ts,$(VirtualBox_QT_TRANSLATIONS))) \
1471 nls/VirtualBox_xx_YY.ts
1472
1473# Create the English translation file. This is something special cause it will
1474# contain the plural forms only.
1475nls/VirtualBox_en.ts: \
1476 $(foreach header,$(VBOX_GUI_INC_DIRS),$(wildcard $(header)/*.h)) \
1477 $(filter-out %.qrc,$(VirtualBox_SOURCES) $(VirtualBox_VBOX_EXTRA_NLS_SOURCES))
1478 $(call MSG_L1,lupdate $@)
1479 $(QUIET)$(TOOL_QT5_LUPDATE) \
1480 $^ \
1481 -ts \
1482 $@
1483 $(QUIET)$(SED) -n -i -e \
1484 '/<context>/,/<\/context>/!p;/<context>/h;/<name>/H;/<message numerus="yes">/,/<\/message>/H;/<\/context>/{H;x;/<message/p}' \
1485 $@
1486
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette