VirtualBox

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

Last change on this file since 71356 was 71348, checked in by vboxsync, 7 years ago

FE/Qt: bugref:9049: Preparing to common library: Build the meta for QIDialogButtonBox, doxygen, cleanup.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 53.3 KB
Line 
1# $Id: Makefile.kmk 71348 2018-03-15 10:21:52Z 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/UIThreadPool.h \
356 src/globals/VBoxGlobal.h \
357 src/globals/VBoxUtils.h \
358 src/hostnetwork/UIHostNetworkDetailsWidget.h \
359 src/hostnetwork/UIHostNetworkManager.h \
360 src/logviewer/UIVMLogPage.h \
361 src/logviewer/UIVMLogViewerBookmarksPanel.h \
362 src/logviewer/UIVMLogViewerDialog.h \
363 src/logviewer/UIVMLogViewerFilterPanel.h \
364 src/logviewer/UIVMLogViewerPanel.h \
365 src/logviewer/UIVMLogViewerSearchPanel.h \
366 src/logviewer/UIVMLogViewerSettingsPanel.h \
367 src/logviewer/UIVMLogViewerTextEdit.h \
368 src/logviewer/UIVMLogViewerWidget.h \
369 src/medium/UIMediumDetailsWidget.h \
370 src/medium/UIMediumEnumerator.h \
371 src/medium/UIMediumManager.h \
372 src/runtime/UIActionPoolRuntime.h \
373 src/runtime/UIAddDiskEncryptionPasswordDialog.h \
374 src/runtime/UIConsoleEventHandler.h \
375 src/runtime/UIFrameBuffer.h \
376 src/runtime/UIIndicatorsPool.h \
377 src/runtime/UIKeyboardHandler.h \
378 src/runtime/UIMachine.h \
379 src/runtime/UIMachineLogic.h \
380 src/runtime/UIMachineWindow.h \
381 src/runtime/UIMachineView.h \
382 src/runtime/UIMenuBarEditorWindow.h \
383 src/runtime/UIMouseHandler.h \
384 src/runtime/UIMultiScreenLayout.h \
385 src/runtime/UISession.h \
386 src/runtime/UISlidingToolBar.h \
387 src/runtime/UIStatusBarEditorWindow.h \
388 src/runtime/UIVMCloseDialog.h \
389 src/runtime/fullscreen/UIKeyboardHandlerFullscreen.h \
390 src/runtime/fullscreen/UIMachineLogicFullscreen.h \
391 src/runtime/fullscreen/UIMachineViewFullscreen.h \
392 src/runtime/fullscreen/UIMachineWindowFullscreen.h \
393 src/runtime/information/UIInformationConfiguration.h \
394 src/runtime/information/UIInformationDataItem.h \
395 src/runtime/information/UIInformationItem.h \
396 src/runtime/information/UIInformationModel.h \
397 src/runtime/information/UIInformationRuntime.h \
398 src/runtime/information/UIInformationView.h \
399 src/runtime/information/UIVMInformationDialog.h \
400 src/runtime/guestctrl/UIGuestControlConsole.h \
401 src/runtime/guestctrl/UIGuestControlFileManager.h \
402 src/runtime/guestctrl/UIGuestControlFileModel.h \
403 src/runtime/guestctrl/UIGuestControlFileTable.h \
404 src/runtime/guestctrl/UIGuestControlInterface.h \
405 src/runtime/guestctrl/UIGuestControlTreeItem.h \
406 src/runtime/guestctrl/UIGuestControlWidget.h \
407 src/runtime/normal/UIKeyboardHandlerNormal.h \
408 src/runtime/normal/UIMachineLogicNormal.h \
409 src/runtime/normal/UIMachineViewNormal.h \
410 src/runtime/normal/UIMachineWindowNormal.h \
411 src/runtime/scale/UIKeyboardHandlerScale.h \
412 src/runtime/scale/UIMachineLogicScale.h \
413 src/runtime/scale/UIMachineViewScale.h \
414 src/runtime/scale/UIMachineWindowScale.h \
415 src/runtime/seamless/UIKeyboardHandlerSeamless.h \
416 src/runtime/seamless/UIMachineLogicSeamless.h \
417 src/runtime/seamless/UIMachineViewSeamless.h \
418 src/runtime/seamless/UIMachineWindowSeamless.h \
419 src/selector/UIActionPoolSelector.h \
420 src/selector/UIDesktopPane.h \
421 src/selector/UIVMItem.h \
422 src/selector/UIVirtualBoxEventHandler.h \
423 src/selector/UISelectorWindow.h \
424 src/selector/UISnapshotDetailsWidget.h \
425 src/selector/UISnapshotPane.h \
426 src/selector/UIToolsPaneGlobal.h \
427 src/selector/UIToolsPaneMachine.h \
428 src/selector/UIToolsToolbar.h \
429 src/selector/graphics/chooser/UIGChooser.h \
430 src/selector/graphics/chooser/UIGChooserModel.h \
431 src/selector/graphics/chooser/UIGChooserView.h \
432 src/selector/graphics/chooser/UIGChooserHandlerMouse.h \
433 src/selector/graphics/chooser/UIGChooserHandlerKeyboard.h \
434 src/selector/graphics/chooser/UIGChooserItem.h \
435 src/selector/graphics/chooser/UIGChooserItemGroup.h \
436 src/selector/graphics/chooser/UIGChooserItemMachine.h \
437 src/selector/graphics/details/UIGDetails.h \
438 src/selector/graphics/details/UIGDetailsModel.h \
439 src/selector/graphics/details/UIGDetailsView.h \
440 src/selector/graphics/details/UIGDetailsItem.h \
441 src/selector/graphics/details/UIGDetailsGroup.h \
442 src/selector/graphics/details/UIGDetailsSet.h \
443 src/selector/graphics/details/UIGDetailsElement.h \
444 src/selector/graphics/details/UIGDetailsElements.h \
445 src/selector/graphics/details/UIGMachinePreview.h \
446 src/settings/UISettingsDialog.h \
447 src/settings/UISettingsDialogSpecific.h \
448 src/settings/UISettingsPage.h \
449 src/settings/UISettingsSelector.h \
450 src/settings/UISettingsSerializer.h \
451 src/settings/global/UIGlobalSettingsExtension.h \
452 src/settings/global/UIGlobalSettingsGeneral.h \
453 src/settings/global/UIGlobalSettingsInput.h \
454 src/settings/global/UIGlobalSettingsLanguage.h \
455 src/settings/global/UIGlobalSettingsDisplay.h \
456 src/settings/global/UIGlobalSettingsNetwork.h \
457 src/settings/global/UIGlobalSettingsNetworkDetailsNAT.h \
458 src/settings/global/UIGlobalSettingsPortForwardingDlg.h \
459 src/settings/machine/UIMachineSettingsAudio.h \
460 src/settings/machine/UIMachineSettingsDisplay.h \
461 src/settings/machine/UIMachineSettingsGeneral.h \
462 src/settings/machine/UIMachineSettingsInterface.h \
463 src/settings/machine/UIMachineSettingsNetwork.h \
464 src/settings/machine/UIMachineSettingsPortForwardingDlg.h \
465 src/settings/machine/UIMachineSettingsSF.h \
466 src/settings/machine/UIMachineSettingsSFDetails.h \
467 src/settings/machine/UIMachineSettingsSerial.h \
468 src/settings/machine/UIMachineSettingsStorage.h \
469 src/settings/machine/UIMachineSettingsSystem.h \
470 src/settings/machine/UIMachineSettingsUSB.h \
471 src/settings/machine/UIMachineSettingsUSBFilterDetails.h \
472 src/widgets/UIApplianceEditorWidget.h \
473 src/widgets/UIApplianceExportEditorWidget.h \
474 src/widgets/UIApplianceImportEditorWidget.h \
475 src/widgets/UIBootTable.h \
476 src/widgets/UIFilePathSelector.h \
477 src/widgets/UIEmptyFilePathSelector.h \
478 src/widgets/UIHostComboEditor.h \
479 src/widgets/UIHotKeyEditor.h \
480 src/widgets/UILineTextEdit.h \
481 src/widgets/UIMediumSizeEditor.h \
482 src/widgets/UIMenuBar.h \
483 src/widgets/UIPopupBox.h \
484 src/widgets/UIPopupPane.h \
485 src/widgets/UIPopupPaneMessage.h \
486 src/widgets/UIPopupPaneDetails.h \
487 src/widgets/UIPopupPaneButtonPane.h \
488 src/widgets/UIPopupStack.h \
489 src/widgets/UIPopupStackViewport.h \
490 src/widgets/UIPortForwardingTable.h \
491 src/widgets/UIProgressDialog.h \
492 src/widgets/UISlidingWidget.h \
493 src/widgets/UISpecialControls.h \
494 src/widgets/UITabBar.h \
495 src/widgets/UIToolBar.h \
496 src/widgets/VBoxMediaComboBox.h \
497 src/widgets/UIMenuToolBar.h \
498 src/widgets/UIMiniToolBar.h \
499 src/widgets/VBoxOSTypeSelectorButton.h \
500 src/widgets/UINameAndSystemEditor.h \
501 src/widgets/UIWarningPane.h \
502 src/widgets/UIFilmContainer.h \
503 src/widgets/graphics/UIGraphicsButton.h \
504 src/widgets/graphics/UIGraphicsRotatorButton.h \
505 src/widgets/graphics/UIGraphicsZoomButton.h \
506 src/widgets/graphics/UIGraphicsToolBar.h \
507 src/widgets/graphics/UIGraphicsTextPane.h \
508 src/wizards/UIWizard.h \
509 src/wizards/UIWizardPage.h \
510 src/wizards/newvm/UIWizardNewVM.h \
511 src/wizards/newvm/UIWizardNewVMPageBasic1.h \
512 src/wizards/newvm/UIWizardNewVMPageBasic2.h \
513 src/wizards/newvm/UIWizardNewVMPageBasic3.h \
514 src/wizards/newvm/UIWizardNewVMPageExpert.h \
515 src/wizards/newvd/UIWizardNewVD.h \
516 src/wizards/newvd/UIWizardNewVDPageBasic1.h \
517 src/wizards/newvd/UIWizardNewVDPageBasic2.h \
518 src/wizards/newvd/UIWizardNewVDPageBasic3.h \
519 src/wizards/newvd/UIWizardNewVDPageExpert.h \
520 src/wizards/clonevm/UIWizardCloneVM.h \
521 src/wizards/clonevm/UIWizardCloneVMPageBasic1.h \
522 src/wizards/clonevm/UIWizardCloneVMPageBasic2.h \
523 src/wizards/clonevm/UIWizardCloneVMPageBasic3.h \
524 src/wizards/clonevm/UIWizardCloneVMPageExpert.h \
525 src/wizards/clonevd/UIWizardCloneVD.h \
526 src/wizards/clonevd/UIWizardCloneVDPageBasic1.h \
527 src/wizards/clonevd/UIWizardCloneVDPageBasic2.h \
528 src/wizards/clonevd/UIWizardCloneVDPageBasic3.h \
529 src/wizards/clonevd/UIWizardCloneVDPageBasic4.h \
530 src/wizards/clonevd/UIWizardCloneVDPageExpert.h \
531 src/wizards/exportappliance/UIWizardExportApp.h \
532 src/wizards/exportappliance/UIWizardExportAppPageBasic1.h \
533 src/wizards/exportappliance/UIWizardExportAppPageBasic2.h \
534 src/wizards/exportappliance/UIWizardExportAppPageBasic3.h \
535 src/wizards/exportappliance/UIWizardExportAppPageBasic4.h \
536 src/wizards/exportappliance/UIWizardExportAppPageExpert.h \
537 src/wizards/importappliance/UIWizardImportApp.h \
538 src/wizards/importappliance/UIWizardImportAppPageBasic1.h \
539 src/wizards/importappliance/UIWizardImportAppPageBasic2.h \
540 src/wizards/importappliance/UIWizardImportAppPageExpert.h \
541 src/wizards/firstrun/UIWizardFirstRun.h \
542 src/wizards/firstrun/UIWizardFirstRunPageBasic.h
543
544ifdef VBOX_GUI_WITH_NETWORK_MANAGER
545 VirtualBox_QT_MOCHDRS += \
546 src/net/UIDownloader.h \
547 src/net/UIDownloaderAdditions.h \
548 src/net/UIDownloaderExtensionPack.h \
549 src/net/UIDownloaderUserManual.h \
550 src/net/UINetworkManager.h \
551 src/net/UINetworkManagerDialog.h \
552 src/net/UINetworkManagerIndicator.h \
553 src/net/UINetworkRequest.h \
554 src/net/UINetworkRequestWidget.h \
555 src/net/UINetworkReply.h \
556 src/net/UINetworkCustomer.h \
557 src/net/UIUpdateManager.h \
558 src/settings/global/UIGlobalSettingsProxy.h \
559 src/settings/global/UIGlobalSettingsUpdate.h
560endif
561
562ifdef VBOX_WITH_DRAG_AND_DROP
563 VirtualBox_QT_MOCHDRS += \
564 src/runtime/UIDnDHandler.h
565 ifdef VBOX_WITH_DRAG_AND_DROP_GH
566 VirtualBox_QT_MOCHDRS += \
567 src/runtime/UIDnDMIMEData.h
568 endif
569endif
570
571VirtualBox_QT_MOCHDRS.darwin += \
572 src/platform/darwin/UIWindowMenuManager.h
573
574
575#
576# VirtualBox - GUI Application.
577# Sources containing local definitions of classes that use the Q_OBJECT macro.
578#
579VirtualBox_QT_MOCSRCS = \
580 src/extensions/QIArrowSplitter.cpp \
581 src/extensions/QISplitter.cpp \
582 src/extradata/UIExtraDataManager.cpp \
583 src/globals/UIActionPool.cpp \
584 src/globals/UIMainEventListener.cpp \
585 src/globals/UIThreadPool.cpp \
586 src/logviewer/UIVMLogViewerFilterPanel.cpp \
587 src/logviewer/UIVMLogViewerSearchPanel.cpp \
588 src/logviewer/UIVMLogViewerTextEdit.cpp \
589 src/medium/UIMediumEnumerator.cpp \
590 src/runtime/UIActionPoolRuntime.cpp \
591 src/runtime/UIAddDiskEncryptionPasswordDialog.cpp \
592 src/runtime/UIConsoleEventHandler.cpp \
593 src/runtime/UIFrameBuffer.cpp \
594 src/runtime/UIIndicatorsPool.cpp \
595 src/runtime/UIStatusBarEditorWindow.cpp \
596 src/runtime/guestctrl/UIGuestControlFileManager.cpp \
597 src/runtime/guestctrl/UIGuestControlFileTable.cpp \
598 src/runtime/guestctrl/UIGuestControlWidget.cpp \
599 src/selector/UIActionPoolSelector.cpp \
600 src/selector/UIDesktopPane.cpp \
601 src/selector/UIVirtualBoxEventHandler.cpp \
602 src/selector/UISnapshotDetailsWidget.cpp \
603 src/selector/UISnapshotPane.cpp \
604 src/settings/global/UIGlobalSettingsInput.cpp \
605 src/settings/machine/UIMachineSettingsNetwork.cpp \
606 src/settings/machine/UIMachineSettingsSerial.cpp \
607 src/settings/machine/UIMachineSettingsStorage.cpp \
608 src/settings/machine/UIMachineSettingsUSB.cpp \
609 src/widgets/UIHotKeyEditor.cpp \
610 src/widgets/UIMenuToolBar.cpp \
611 src/widgets/UIMiniToolBar.cpp \
612 src/widgets/UIPortForwardingTable.cpp \
613 src/widgets/UIProgressDialog.cpp \
614 src/widgets/UITabBar.cpp \
615 src/wizards/importappliance/UIWizardImportApp.cpp
616
617ifdef VBOX_GUI_WITH_NETWORK_MANAGER
618 VirtualBox_QT_MOCSRCS += \
619 src/net/UINetworkReply.cpp \
620 src/net/UIUpdateManager.cpp
621endif
622
623VirtualBox_QT_MOCSRCS.darwin += \
624 src/platform/darwin/UIWindowMenuManager.cpp
625VirtualBox_QT_MOCSRCS.win += \
626 src/extensions/QIFileDialog.cpp
627VirtualBox_QT_MOCSRCS.linux += \
628 src/globals/UIDesktopWidgetWatchdog.cpp
629VirtualBox_QT_MOCSRCS.solaris += \
630 src/globals/UIDesktopWidgetWatchdog.cpp
631VirtualBox_QT_MOCSRCS.freebsd += \
632 src/globals/UIDesktopWidgetWatchdog.cpp
633
634ifdef VBOX_WITH_XPCOM
635 VirtualBox_QT_MOCSRCS += \
636 src/globals/COMDefs.cpp
637endif
638
639
640#
641# VirtualBox - GUI Application.
642# Sources.
643#
644VirtualBox_SOURCES = \
645 src/main.cpp \
646 src/VBoxAboutDlg.cpp \
647 src/VBoxLicenseViewer.cpp \
648 src/UITakeSnapshotDialog.cpp \
649 src/converter/UIConverter.cpp \
650 src/converter/UIConverterBackendCOM.cpp \
651 src/converter/UIConverterBackendGlobal.cpp \
652 src/extensions/QIAdvancedSlider.cpp \
653 src/extensions/QIArrowButtonPress.cpp \
654 src/extensions/QIArrowButtonSwitch.cpp \
655 src/extensions/QIArrowSplitter.cpp \
656 src/extensions/QIComboBox.cpp \
657 src/extensions/QIDialog.cpp \
658 src/extensions/QIDialogButtonBox.cpp \
659 src/extensions/QIFileDialog.cpp \
660 src/extensions/QIFlowLayout.cpp \
661 src/extensions/QILabel.cpp \
662 src/extensions/QILabelSeparator.cpp \
663 src/extensions/QILineEdit.cpp \
664 src/extensions/QIMainDialog.cpp \
665 src/extensions/QIMainWindow.cpp \
666 src/extensions/QIManagerDialog.cpp \
667 src/extensions/QIMenu.cpp \
668 src/extensions/QIMessageBox.cpp \
669 src/extensions/QIProcess.cpp \
670 src/extensions/QIRichTextLabel.cpp \
671 src/extensions/QIRichToolButton.cpp \
672 src/extensions/QISplitter.cpp \
673 src/extensions/QIStatusBar.cpp \
674 src/extensions/QIStatusBarIndicator.cpp \
675 src/extensions/QITableView.cpp \
676 src/extensions/QIToolButton.cpp \
677 src/extensions/QITreeView.cpp \
678 src/extensions/QITreeWidget.cpp \
679 src/extensions/QIWidgetValidator.cpp \
680 src/extensions/graphics/QIGraphicsView.cpp \
681 src/extensions/graphics/QIGraphicsWidget.cpp \
682 src/extradata/UIExtraDataDefs.cpp \
683 src/extradata/UIExtraDataManager.cpp \
684 src/globals/UIDefs.cpp \
685 src/globals/COMDefs.cpp \
686 src/globals/UIActionPool.cpp \
687 src/globals/UIAnimationFramework.cpp \
688 src/globals/UIDesktopWidgetWatchdog.cpp \
689 src/globals/UIIconPool.cpp \
690 src/globals/UIImageTools.cpp \
691 src/globals/UIMainEventListener.cpp \
692 src/globals/UIMessageCenter.cpp \
693 src/globals/UIErrorString.cpp \
694 src/globals/UIModalWindowManager.cpp \
695 src/globals/UIPopupCenter.cpp \
696 src/globals/UIShortcutPool.cpp \
697 src/globals/UIThreadPool.cpp \
698 src/globals/VBoxGlobal.cpp \
699 src/hostnetwork/UIHostNetworkDetailsWidget.cpp \
700 src/hostnetwork/UIHostNetworkManager.cpp \
701 src/hostnetwork/UIHostNetworkUtils.cpp \
702 src/logviewer/UIVMLogPage.cpp \
703 src/logviewer/UIVMLogViewerBookmarksPanel.cpp \
704 src/logviewer/UIVMLogViewerDialog.cpp \
705 src/logviewer/UIVMLogViewerFilterPanel.cpp \
706 src/logviewer/UIVMLogViewerPanel.cpp \
707 src/logviewer/UIVMLogViewerSearchPanel.cpp \
708 src/logviewer/UIVMLogViewerSettingsPanel.cpp \
709 src/logviewer/UIVMLogViewerTextEdit.cpp \
710 src/logviewer/UIVMLogViewerWidget.cpp \
711 src/medium/UIMediumDefs.cpp \
712 src/medium/UIMedium.cpp \
713 src/medium/UIMediumDetailsWidget.cpp \
714 src/medium/UIMediumEnumerator.cpp \
715 src/medium/UIMediumManager.cpp \
716 src/objects/UIRichTextString.cpp \
717 src/runtime/UIActionPoolRuntime.cpp \
718 src/runtime/UIAddDiskEncryptionPasswordDialog.cpp \
719 src/runtime/UIConsoleEventHandler.cpp \
720 src/runtime/UIFrameBuffer.cpp \
721 src/runtime/UIIndicatorsPool.cpp \
722 src/runtime/UIKeyboardHandler.cpp \
723 src/runtime/UIMachine.cpp \
724 src/runtime/UIMachineLogic.cpp \
725 src/runtime/UIMachineView.cpp \
726 src/runtime/UIMachineWindow.cpp \
727 src/runtime/UIMenuBarEditorWindow.cpp \
728 src/runtime/UIMouseHandler.cpp \
729 src/runtime/UIMultiScreenLayout.cpp \
730 src/runtime/UISession.cpp \
731 src/runtime/UISlidingToolBar.cpp \
732 src/runtime/UIStatusBarEditorWindow.cpp \
733 src/runtime/UIVMCloseDialog.cpp \
734 src/runtime/fullscreen/UIKeyboardHandlerFullscreen.cpp \
735 src/runtime/fullscreen/UIMachineLogicFullscreen.cpp \
736 src/runtime/fullscreen/UIMachineViewFullscreen.cpp \
737 src/runtime/fullscreen/UIMachineWindowFullscreen.cpp \
738 src/runtime/information/UIInformationConfiguration.cpp \
739 src/runtime/information/UIInformationDataItem.cpp \
740 src/runtime/information/UIInformationItem.cpp \
741 src/runtime/information/UIInformationModel.cpp \
742 src/runtime/information/UIInformationRuntime.cpp \
743 src/runtime/information/UIInformationView.cpp \
744 src/runtime/information/UIVMInformationDialog.cpp \
745 src/runtime/guestctrl/UIGuestControlConsole.cpp \
746 src/runtime/guestctrl/UIGuestControlFileManager.cpp \
747 src/runtime/guestctrl/UIGuestControlFileModel.cpp \
748 src/runtime/guestctrl/UIGuestControlFileTable.cpp \
749 src/runtime/guestctrl/UIGuestControlInterface.cpp \
750 src/runtime/guestctrl/UIGuestControlTreeItem.cpp \
751 src/runtime/guestctrl/UIGuestControlWidget.cpp \
752 src/runtime/normal/UIKeyboardHandlerNormal.cpp \
753 src/runtime/normal/UIMachineLogicNormal.cpp \
754 src/runtime/normal/UIMachineViewNormal.cpp \
755 src/runtime/normal/UIMachineWindowNormal.cpp \
756 src/runtime/scale/UIKeyboardHandlerScale.cpp \
757 src/runtime/scale/UIMachineLogicScale.cpp \
758 src/runtime/scale/UIMachineViewScale.cpp \
759 src/runtime/scale/UIMachineWindowScale.cpp \
760 src/runtime/seamless/UIKeyboardHandlerSeamless.cpp \
761 src/runtime/seamless/UIMachineLogicSeamless.cpp \
762 src/runtime/seamless/UIMachineViewSeamless.cpp \
763 src/runtime/seamless/UIMachineWindowSeamless.cpp \
764 src/selector/UIActionPoolSelector.cpp \
765 src/selector/UIDesktopPane.cpp \
766 src/selector/UIVMItem.cpp \
767 src/selector/UIVirtualBoxEventHandler.cpp \
768 src/selector/UISelectorWindow.cpp \
769 src/selector/UISnapshotDetailsWidget.cpp \
770 src/selector/UISnapshotPane.cpp \
771 src/selector/UIToolsPaneGlobal.cpp \
772 src/selector/UIToolsPaneMachine.cpp \
773 src/selector/UIToolsToolbar.cpp \
774 src/selector/graphics/chooser/UIGChooser.cpp \
775 src/selector/graphics/chooser/UIGChooserModel.cpp \
776 src/selector/graphics/chooser/UIGChooserView.cpp \
777 src/selector/graphics/chooser/UIGChooserHandlerMouse.cpp \
778 src/selector/graphics/chooser/UIGChooserHandlerKeyboard.cpp \
779 src/selector/graphics/chooser/UIGChooserItem.cpp \
780 src/selector/graphics/chooser/UIGChooserItemGroup.cpp \
781 src/selector/graphics/chooser/UIGChooserItemMachine.cpp \
782 src/selector/graphics/details/UIGDetails.cpp \
783 src/selector/graphics/details/UIGDetailsModel.cpp \
784 src/selector/graphics/details/UIGDetailsView.cpp \
785 src/selector/graphics/details/UIGDetailsItem.cpp \
786 src/selector/graphics/details/UIGDetailsGroup.cpp \
787 src/selector/graphics/details/UIGDetailsSet.cpp \
788 src/selector/graphics/details/UIGDetailsElement.cpp \
789 src/selector/graphics/details/UIGDetailsElements.cpp \
790 src/selector/graphics/details/UIGMachinePreview.cpp \
791 src/settings/UISettingsDefs.cpp \
792 src/settings/UISettingsDialog.cpp \
793 src/settings/UISettingsDialogSpecific.cpp \
794 src/settings/UISettingsPage.cpp \
795 src/settings/UISettingsSelector.cpp \
796 src/settings/UISettingsSerializer.cpp \
797 src/settings/global/UIGlobalSettingsExtension.cpp \
798 src/settings/global/UIGlobalSettingsGeneral.cpp \
799 src/settings/global/UIGlobalSettingsInput.cpp \
800 src/settings/global/UIGlobalSettingsLanguage.cpp \
801 src/settings/global/UIGlobalSettingsDisplay.cpp \
802 src/settings/global/UIGlobalSettingsNetwork.cpp \
803 src/settings/global/UIGlobalSettingsNetworkDetailsNAT.cpp \
804 src/settings/global/UIGlobalSettingsPortForwardingDlg.cpp \
805 src/settings/machine/UIMachineSettingsAudio.cpp \
806 src/settings/machine/UIMachineSettingsDisplay.cpp \
807 src/settings/machine/UIMachineSettingsGeneral.cpp \
808 src/settings/machine/UIMachineSettingsInterface.cpp \
809 src/settings/machine/UIMachineSettingsNetwork.cpp \
810 src/settings/machine/UIMachineSettingsPortForwardingDlg.cpp \
811 src/settings/machine/UIMachineSettingsSF.cpp \
812 src/settings/machine/UIMachineSettingsSFDetails.cpp \
813 src/settings/machine/UIMachineSettingsSerial.cpp \
814 src/settings/machine/UIMachineSettingsStorage.cpp \
815 src/settings/machine/UIMachineSettingsSystem.cpp \
816 src/settings/machine/UIMachineSettingsUSB.cpp \
817 src/settings/machine/UIMachineSettingsUSBFilterDetails.cpp \
818 src/widgets/UIApplianceEditorWidget.cpp \
819 src/widgets/UIApplianceExportEditorWidget.cpp \
820 src/widgets/UIApplianceImportEditorWidget.cpp \
821 src/widgets/UIBootTable.cpp \
822 src/widgets/UIFilePathSelector.cpp \
823 src/widgets/UIEmptyFilePathSelector.cpp \
824 src/widgets/UIHostComboEditor.cpp \
825 src/widgets/UIHotKeyEditor.cpp \
826 src/widgets/UILineTextEdit.cpp \
827 src/widgets/UIMediumSizeEditor.cpp \
828 src/widgets/UIMenuBar.cpp \
829 src/widgets/UIPopupBox.cpp \
830 src/widgets/UIPopupPane.cpp \
831 src/widgets/UIPopupPaneMessage.cpp \
832 src/widgets/UIPopupPaneDetails.cpp \
833 src/widgets/UIPopupPaneButtonPane.cpp \
834 src/widgets/UIPopupStack.cpp \
835 src/widgets/UIPopupStackViewport.cpp \
836 src/widgets/UIPortForwardingTable.cpp \
837 src/widgets/UIProgressDialog.cpp \
838 src/widgets/UISlidingWidget.cpp \
839 src/widgets/UISpecialControls.cpp \
840 src/widgets/UITabBar.cpp \
841 src/widgets/UIToolBar.cpp \
842 src/widgets/VBoxGuestRAMSlider.cpp \
843 src/widgets/VBoxMediaComboBox.cpp \
844 src/widgets/UIMenuToolBar.cpp \
845 src/widgets/UIMiniToolBar.cpp \
846 src/widgets/VBoxOSTypeSelectorButton.cpp \
847 src/widgets/UINameAndSystemEditor.cpp \
848 src/widgets/UIWarningPane.cpp \
849 src/widgets/UIFilmContainer.cpp \
850 src/widgets/graphics/UIGraphicsButton.cpp \
851 src/widgets/graphics/UIGraphicsRotatorButton.cpp \
852 src/widgets/graphics/UIGraphicsZoomButton.cpp \
853 src/widgets/graphics/UIGraphicsToolBar.cpp \
854 src/widgets/graphics/UIGraphicsTextPane.cpp \
855 src/wizards/UIWizard.cpp \
856 src/wizards/UIWizardPage.cpp \
857 src/wizards/newvm/UIWizardNewVM.cpp \
858 src/wizards/newvm/UIWizardNewVMPageBasic1.cpp \
859 src/wizards/newvm/UIWizardNewVMPageBasic2.cpp \
860 src/wizards/newvm/UIWizardNewVMPageBasic3.cpp \
861 src/wizards/newvm/UIWizardNewVMPageExpert.cpp \
862 src/wizards/newvd/UIWizardNewVD.cpp \
863 src/wizards/newvd/UIWizardNewVDPageBasic1.cpp \
864 src/wizards/newvd/UIWizardNewVDPageBasic2.cpp \
865 src/wizards/newvd/UIWizardNewVDPageBasic3.cpp \
866 src/wizards/newvd/UIWizardNewVDPageExpert.cpp \
867 src/wizards/clonevm/UIWizardCloneVM.cpp \
868 src/wizards/clonevm/UIWizardCloneVMPageBasic1.cpp \
869 src/wizards/clonevm/UIWizardCloneVMPageBasic2.cpp \
870 src/wizards/clonevm/UIWizardCloneVMPageBasic3.cpp \
871 src/wizards/clonevm/UIWizardCloneVMPageExpert.cpp \
872 src/wizards/clonevd/UIWizardCloneVD.cpp \
873 src/wizards/clonevd/UIWizardCloneVDPageBasic1.cpp \
874 src/wizards/clonevd/UIWizardCloneVDPageBasic2.cpp \
875 src/wizards/clonevd/UIWizardCloneVDPageBasic3.cpp \
876 src/wizards/clonevd/UIWizardCloneVDPageBasic4.cpp \
877 src/wizards/clonevd/UIWizardCloneVDPageExpert.cpp \
878 src/wizards/exportappliance/UIWizardExportApp.cpp \
879 src/wizards/exportappliance/UIWizardExportAppPageBasic1.cpp \
880 src/wizards/exportappliance/UIWizardExportAppPageBasic2.cpp \
881 src/wizards/exportappliance/UIWizardExportAppPageBasic3.cpp \
882 src/wizards/exportappliance/UIWizardExportAppPageBasic4.cpp \
883 src/wizards/exportappliance/UIWizardExportAppPageExpert.cpp \
884 src/wizards/importappliance/UIWizardImportApp.cpp \
885 src/wizards/importappliance/UIWizardImportAppPageBasic1.cpp \
886 src/wizards/importappliance/UIWizardImportAppPageBasic2.cpp \
887 src/wizards/importappliance/UIWizardImportAppPageExpert.cpp \
888 src/wizards/firstrun/UIWizardFirstRun.cpp \
889 src/wizards/firstrun/UIWizardFirstRunPageBasic.cpp
890
891ifdef VBOX_GUI_WITH_NETWORK_MANAGER
892 VirtualBox_SOURCES += \
893 src/net/UINetworkManager.cpp \
894 src/net/UINetworkManagerDialog.cpp \
895 src/net/UINetworkManagerIndicator.cpp \
896 src/net/UINetworkRequest.cpp \
897 src/net/UINetworkRequestWidget.cpp \
898 src/net/UINetworkReply.cpp \
899 src/net/UINetworkCustomer.cpp \
900 src/net/UIDownloader.cpp \
901 src/net/UIDownloaderAdditions.cpp \
902 src/net/UIDownloaderExtensionPack.cpp \
903 src/net/UIDownloaderUserManual.cpp \
904 src/net/UIUpdateDefs.cpp \
905 src/net/UIUpdateManager.cpp \
906 src/settings/global/UIGlobalSettingsProxy.cpp \
907 src/settings/global/UIGlobalSettingsUpdate.cpp
908endif
909
910VirtualBox_SOURCES.darwin += \
911 src/platform/darwin/UIAbstractDockIconPreview.cpp \
912 src/platform/darwin/UICocoaDockIconPreview.mm \
913 src/platform/darwin/UIWindowMenuManager.cpp \
914
915if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) # X11
916 VirtualBox_SOURCES += \
917 src/platform/x11/UIDesktopServices_x11.cpp \
918 src/platform/x11/VBoxX11Helper.cpp \
919 src/platform/x11/XKeyboard-new.cpp
920endif
921
922VirtualBox_SOURCES.win += \
923 src/platform/win/VirtualBox.rc \
924 src/platform/win/UIDesktopServices_win.cpp \
925 src/platform/win/VBoxUtils-win.cpp \
926 src/platform/win/WinKeyboard.cpp
927
928VirtualBox_SOURCES.darwin += \
929 src/platform/darwin/CocoaEventHelper.mm \
930 src/platform/darwin/DarwinKeyboard.cpp \
931 src/platform/darwin/UICocoaApplication.mm \
932 src/platform/darwin/UICocoaSpecialControls.mm \
933 src/platform/darwin/UIDesktopServices_darwin.cpp \
934 src/platform/darwin/UIDesktopServices_darwin_cocoa.mm \
935 src/platform/darwin/VBoxUtils-darwin-cocoa.mm \
936 src/platform/darwin/VBoxUtils-darwin.cpp
937VirtualBox_QT_MOCHDRS.darwin += \
938 src/platform/darwin/UICocoaSpecialControls.h
939
940ifdef VBOX_WITH_ICHAT_THEATER
941 VirtualBox_SOURCES.darwin += \
942 src/platform/darwin/VBoxIChatTheaterWrapper.m
943endif
944
945if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
946 VirtualBox_SOURCES += \
947 src/VBoxFBOverlay.cpp \
948 src/VBoxGLSupportInfo.cpp
949endif
950
951ifdef VBOX_WITH_DRAG_AND_DROP
952 VirtualBox_SOURCES += \
953 src/runtime/UIDnDHandler.cpp
954 ifdef VBOX_WITH_DRAG_AND_DROP_GH
955 VirtualBox_SOURCES += \
956 src/runtime/UIDnDMIMEData.cpp
957 VirtualBox_SOURCES.win += \
958 src/runtime/UIDnDDropSource_win.cpp \
959 src/runtime/UIDnDDataObject_win.cpp \
960 src/runtime/UIDnDEnumFormat_win.cpp
961 endif
962endif
963
964
965#
966# VirtualBox - GUI Application.
967# Deployment.
968#
969if defined(VBOX_WITH_ORACLE_QT) || defined(VBOX_WITH_QT_PAYLOAD)
970 INSTALLS.linux += VirtualBox.qt.conf
971 INSTALLS.solaris += VirtualBox.qt.conf
972 VirtualBox.qt.conf_INST = $(INST_BIN)
973 VirtualBox.qt.conf_MODE = 644
974 VirtualBox.qt.conf_SOURCES = $(VirtualBox_0_OUTDIR)/qt.conf=>qt.conf
975
976$$(VirtualBox_0_OUTDIR)/qt.conf: $(PATH_SUB_CURRENT)/Makefile.kmk $(VBOX_VERSION_MK) | $$(@D)/
977 $(QUIET)$(RM) -f $@
978 $(QUIET)$(APPEND) $@ "[Paths]"
979 $(QUIET)$(APPEND) $@ "Plugins =" $(PATH_OUT)/$(INST_BIN)/plugins
980endif
981
982
983#
984# VirtualBox - GUI Application.
985# The Qt modules we're using.
986# (The include directory and lib/framework for each module will be added by the Qt unit.)
987#
988VirtualBox_QT_MODULES = Core Gui Widgets PrintSupport
989VirtualBox_QT_MODULES.linux += X11Extras
990VirtualBox_QT_MODULES.solaris += X11Extras
991VirtualBox_QT_MODULES.freebsd += X11Extras
992VirtualBox_QT_MODULES.darwin += MacExtras
993VirtualBox_QT_MODULES.win += WinExtras
994if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
995 VirtualBox_QT_MODULES += OpenGL
996endif
997
998
999# Pull in the ui files
1000$(eval VirtualBox_SOURCES += $(FORMS))
1001
1002# Resource files with some OSE differences (VirtualBoxBrand.qrc is created further down).
1003VirtualBox_SOURCES += VirtualBox1.qrc
1004VirtualBox1.qrc_RCCFLAGS = -name BASIC1
1005VirtualBox_SOURCES += VirtualBox2.qrc
1006VirtualBox2.qrc_RCCFLAGS = -name BASIC2
1007VirtualBox_SOURCES += VirtualBox1_x2.qrc
1008VirtualBox1_x2.qrc_RCCFLAGS = -name BASIC1_X2
1009VirtualBox_SOURCES += VirtualBox2_x2.qrc
1010VirtualBox2_x2.qrc_RCCFLAGS = -name BASIC2_X2
1011VirtualBox_SOURCES += VirtualBox1_x3.qrc
1012VirtualBox1_x3.qrc_RCCFLAGS = -name BASIC1_X3
1013VirtualBox_SOURCES += VirtualBox2_x3.qrc
1014VirtualBox2_x3.qrc_RCCFLAGS = -name BASIC2_X3
1015VirtualBox_SOURCES += VirtualBox1_x4.qrc
1016VirtualBox1_x4.qrc_RCCFLAGS = -name BASIC1_X4
1017VirtualBox_SOURCES += VirtualBox2_x4.qrc
1018VirtualBox2_x4.qrc_RCCFLAGS = -name BASIC2_X4
1019VirtualBox_SOURCES += $(VBOX_VIRTUALBOX_OUT_DIR)/VirtualBoxBrand.qrc
1020$(VBOX_VIRTUALBOX_OUT_DIR)/VirtualBoxBrand.qrc_RCCFLAGS = -name BRAND
1021if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
1022 VirtualBox_SOURCES += VirtualBoxShaders.qrc
1023 VirtualBoxShaders.qrc_RCCFLAGS = -name SHADERS
1024endif
1025
1026# Import the translation source from VBoxUI.pro and add the qt_xx_YY counterparts
1027VirtualBox_QT_TRANSLATIONS := $(TRANSLATIONS) \
1028 $(patsubst nls/VirtualBox_%.ts,nls/qt_%.ts, $(filter nls/VirtualBox_%.ts,$(TRANSLATIONS)))
1029# Compress the translation units.
1030VirtualBox_LRCFLAGS = -silent
1031# Where to install the translations (a separate install target, VirtualBox-nls-inst is created).
1032VirtualBox_QT_TRANSLATIONS_INST = $(INST_BIN)nls/
1033
1034
1035## @todo how to detect what tool is used?
1036## @todo GCC3 seems to lack -Wno-missing-base-class-initializer, so we use
1037# more generic -Wno-extra
1038# bird: What about $(if $(VBOX_GCC_Wno-missing-base-class-initializer),$(VBOX_GCC_Wno-missing-base-class-initializer),$(VBOX_GCC_Wno-extra))?
1039ifdef VBOX_WITH_XPCOM
1040 VirtualBox_src/globals/COMDefs.cpp_CXXFLAGS = $(VBOX_GCC_Wno-extra)
1041endif
1042
1043
1044#
1045# Generate the COM wrappers.
1046#
1047includedep $(PATH_TARGET)/VirtualBoxComWrapperFiles.dep
1048VirtualBox_BLDDIRS += $(VirtualBox_0_OUTDIR)/include
1049VirtualBox_INTERMEDIATES += $(VirtualBox_0_OUTDIR)/include/COMWrappers
1050VirtualBox_CLEAN += $(wildcard $(VirtualBox_0_OUTDIR)/include/*) $(PATH_TARGET)/VirtualBoxComWrapperFiles.dep
1051
1052#
1053# VirtualBox - GUI Application.
1054# Build generated COM wrappers as part of app.
1055#
1056VirtualBox_SOURCES += $(VirtualBox_0_OUTDIR)/include/COMWrappers.cpp
1057
1058## @todo kmk doesn't remake optional outputs when they are missing...
1059$$(VirtualBox_0_OUTDIR)/include/COMWrappers \
1060+ $(PATH_TARGET)/VirtualBoxComWrapperFiles.dep \
1061+| $(if-expr defined(VirtualBox_VBOX_COMWRAPPERS) \
1062, $(VirtualBox_VBOX_COMWRAPPERS) \
1063, $$(VirtualBox_0_OUTDIR)/include/COMEnums.h \
1064 $$(VirtualBox_0_OUTDIR)/include/COMWrappers.cpp \
1065): \
1066 $(VBOX_XIDL_FILE) \
1067 $(VBOX_VIRTUALBOX_SRC)/src/globals/COMWrappers.xsl \
1068 $(VBOX_FILESPLIT) \
1069 | $$(dir $$@)
1070 $(call MSG_GENERATE,VirtualBox,$<,$@)
1071 $(QUIET)$(RM) -f -- "$@" "$(PATH_TARGET)/VirtualBoxComWrapperFiles.dep"
1072 $(QUIET)$(VBOX_XSLTPROC) -o $@ \
1073 $(VBOX_VIRTUALBOX_SRC)/src/globals/COMWrappers.xsl $<
1074 $(QUIET)$(VBOX_FILESPLIT) $@ $(VirtualBox_0_OUTDIR)/include \
1075 $(PATH_TARGET)/VirtualBoxComWrapperFiles.dep VirtualBox_VBOX_COMWRAPPERS
1076 $(APPEND) "$@"
1077
1078# alias for generating the COM Wrappers file.
1079testwrappers:: $$(VirtualBox_0_OUTDIR)/include/COMWrappers
1080
1081
1082#
1083# Generate qrc file with branded icons.
1084#
1085VirtualBox_BLDDIRS += $(VBOX_VIRTUALBOX_OUT_DIR)
1086VirtualBox_CLEAN += $(VBOX_VIRTUALBOX_OUT_DIR)/VirtualBoxBrand.qrc
1087$(VBOX_VIRTUALBOX_OUT_DIR)/VirtualBoxBrand.qrc: \
1088 $(VBOX_VIRTUALBOX_SRC)/VirtualBoxBrand.qrc \
1089 $(PATH_ROOT)/Config.kmk \
1090 | $$(dir $$@)
1091 $(call MSG_GENERATE,VirtualBox,$<,$@)
1092 $(QUIET)$(SED) \
1093 -e 's;@VBOX_ABOUT_PNG@;$(VBOX_BRAND_GUI_ABOUT_PNG);g' \
1094 -e 's;@VBOX_ABOUT_HIDPI_PNG@;$(VBOX_BRAND_GUI_ABOUT_HIDPI_PNG);g' \
1095 -e 's;@VBOX_ABOUT_16PX_PNG@;$(VBOX_BRAND_GUI_ABOUT_16PX_PNG);g' \
1096 -e 's;@VBOX_ABOUT_16PX_HIDPI_PNG@;$(VBOX_BRAND_GUI_ABOUT_16PX_HIDPI_PNG);g' \
1097 -e 's;@VBOX_VBOX_16PX_PNG@;$(VBOX_BRAND_GUI_VBOX_16PX_PNG);g' \
1098 -e 's;@VBOX_VBOX_20PX_PNG@;$(VBOX_BRAND_GUI_VBOX_20PX_PNG);g' \
1099 -e 's;@VBOX_VBOX_32PX_PNG@;$(VBOX_BRAND_GUI_VBOX_32PX_PNG);g' \
1100 -e 's;@VBOX_VBOX_40PX_PNG@;$(VBOX_BRAND_GUI_VBOX_40PX_PNG);g' \
1101 -e 's;@VBOX_VBOX_48PX_PNG@;$(VBOX_BRAND_GUI_VBOX_48PX_PNG);g' \
1102 -e 's;@VBOX_VBOX_64PX_PNG@;$(VBOX_BRAND_GUI_VBOX_64PX_PNG);g' \
1103 -e 's;@VBOX_CUBE_42PX_PNG@;$(VBOX_BRAND_GUI_CUBE_42PX_PNG);g' \
1104 -e 's;@VBOX_CUBE_SVG@;$(VBOX_BRAND_GUI_VBOX_SVG);g' \
1105 --output $@ \
1106 $<
1107
1108
1109#
1110# Precompiled header - non-functional atm.
1111#
1112ifdef VBOX_WITH_PRECOMPILED_HEADERS
1113 if1of ($(KBUILD_TARGET),win)
1114 VirtualBox_USES += vccprecomp
1115 VirtualBox_PCH_HDR := $(PATH_SUB_CURRENT)/src/precomp_vcc.h
1116
1117 else # obsolete experiment
1118 VirtualBox_DEFS += VBOX_WITH_PRECOMPILED_HEADERS
1119 VirtualBox_INCS <= $(VirtualBoxPch_0_OUTDIR)/src
1120 VirtualBox_CXXFLAGS += -Winvalid-pch -fpch-preprocess
1121 $(foreach x,$(filter-out include/COMWrappers.cpp, $(filter %.cpp, \
1122 $(VirtualBox_SOURCES) \
1123 $(VirtualBox_SOURCES.$(KBUILD_TARGET)) \
1124 $(VirtualBox_SOURCES.$(KBUILD_TYPE)) \
1125 )),$(eval $(abspath $(PATH_OBJ)/VirtualBox/$(basename $(x)).o): $$$$(VirtualBoxPch_0_OUTDIR)/src/precomp.h.gch))
1126
1127 TOOL_VirtualBoxPchLinker = Linker for VirtualBoxPch
1128 define TOOL_VirtualBoxPchLinker_LINK_MISCBIN_CMDS
1129 $(APPEND) -t $(out)
1130 endef
1131
1132 MISCBINS += VirtualBoxPch
1133 VirtualBoxPch_EXTENDS = VirtualBox
1134 VirtualBoxPch_LDTOOL = VirtualBoxPchLinker
1135 VirtualBoxPch_INSTTYPE = none
1136 VirtualBoxPch_NAME = VirtualBoxPch
1137 VirtualBoxPch_INTERMEDIATES = $(filter-out %.h.gch, $(VirtualBox_INTERMEDIATES))
1138 VirtualBoxPch_SOURCES = src/precomp.h
1139 VirtualBoxPch_CXXFLAGS = $(filter-out -Winvalid-pch -fpch-preprocess, $(VirtualBox_CXXFLAGS)) -x c++-header
1140 VirtualBoxPch_CXXOBJSUFF = .h.gch
1141 VirtualBoxPch_SRC_HANDLERS = .h:def_src_handler_cxx
1142 VirtualBoxPch_SOURCES.darwin = $(NO_SUCH_VARIABLE)
1143 VirtualBoxPch_SOURCES.solaris = $(NO_SUCH_VARIABLE)
1144 VirtualBoxPch_SOURCES.freebsd = $(NO_SUCH_VARIABLE)
1145 VirtualBoxPch_SOURCES.linux = $(NO_SUCH_VARIABLE)
1146 VirtualBoxPch_SOURCES.win = $(NO_SUCH_VARIABLE)
1147 VirtualBoxPch_QT_MODULES = $(VirtualBox_QT_MODULES) # "bug" - not inherited.
1148 VirtualBoxPch_INCS = $(VirtualBox_INCS) # "bug" - missing qtuic and qtmoc
1149 endif # obsolete experiment
1150endif
1151
1152ifeq ($(KBUILD_TARGET),win)
1153#
1154# On Windows we'll have to generate/edit part of the resource file.
1155# The IDI_ICON1 name is Qt specific.
1156#
1157src/platform/win/VirtualBox.rc_INCS = $(VirtualBox_0_OUTDIR)
1158src/platform/win/VirtualBox.rc_DEPS = $(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc
1159src/platform/win/VirtualBox.rc_CLEAN = $(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc
1160
1161$$(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc: $(MAKEFILE_CURRENT) $(VBOX_WINDOWS_ICON_FILE) | $$(dir $$@)
1162 $(APPEND) -t $@ 'IDI_ICON1 ICON "$(subst /,\\,$(VBOX_WINDOWS_ICON_FILE))"'
1163
1164endif # win
1165
1166
1167#
1168# Unset everything that was loaded from VBoxUI.pro.
1169#
1170FORMS :=
1171TRANSLATIONS :=
1172
1173
1174ifeq ($(KBUILD_TARGET),darwin)
1175#
1176# Create directories for each approved language or the application
1177# menu won't be translated.
1178#
1179INSTALLS += VirtualBox.lproj
1180VirtualBox.lproj_INST = $(INST_VIRTUALBOX)Contents/Resources/
1181VirtualBox.lproj_MODE = 755
1182VirtualBox.lproj_DIRS := $(addsuffix .lproj,$(VBOX_APPROVED_GUI_LANGUAGES))
1183
1184#
1185# On OS X (darwin) we need to install icon resources and compulsory bundle contents.
1186# The VirtualBoxVM.app helper is for launching VMs (fixes some issues with the dock).
1187#
1188INSTALLS += VirtualBox.app
1189VirtualBox.app_INST = $(INST_VIRTUALBOX)Contents/
1190VirtualBox.app_MODE = 644
1191VirtualBox.app_SOURCES = \
1192 src/platform/darwin/PkgInfo \
1193 $(VirtualBox.app_0_OUTDIR)/Info.plist \
1194 $(VBOX_MACOSX_ICON_FILE)=>Resources/virtualbox.icns \
1195 $(VBOX_BRAND_GUI_VBOX_64PX_PNG)=>Resources/virtualbox.png \
1196 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vbox.icns=>Resources/virtualbox-vbox.icns \
1197 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vbox-extpack.icns=>Resources/virtualbox-vbox-extpack.icns \
1198 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-ovf.icns=>Resources/virtualbox-ovf.icns \
1199 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-ova.icns=>Resources/virtualbox-ova.icns \
1200 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vdi.icns=>Resources/virtualbox-vdi.icns \
1201 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vmdk.icns=>Resources/virtualbox-vmdk.icns \
1202 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vhd.icns=>Resources/virtualbox-vhd.icns \
1203 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-hdd.icns=>Resources/virtualbox-hdd.icns
1204
1205 # Qt5 requires qt.conf on Mac OS X:
1206 VirtualBox.app_SOURCES += \
1207 $(VirtualBox.app_0_OUTDIR)/qt.conf=>Resources/qt.conf
1208
1209 $$(VirtualBox.app_0_OUTDIR)/Info.plist: $(PATH_SUB_CURRENT)/src/platform/darwin/Info.plist $(VBOX_VERSION_MK) | $$(@D)/
1210 $(call MSG_GENERATE,VirtualBox.app,$<,$@)
1211 $(QUIET)$(RM) -f $@
1212 $(QUIET)$(SED) \
1213 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
1214 -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
1215 -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
1216 -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
1217 -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
1218 -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
1219 -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
1220 $< > $@
1221
1222 $$(VirtualBox.app_0_OUTDIR)/qt.conf: $(PATH_SUB_CURRENT)/Makefile.kmk $(VBOX_VERSION_MK) | $$(@D)/
1223 $(QUIET)$(RM) -f $@
1224 $(QUIET)$(APPEND) $@ "[Paths]"
1225 $(QUIET)$(APPEND) $@ "Prefix =" $(PATH_OUT)/$(VirtualBox.app_INST)
1226
1227 INSTALLS += VirtualBoxVM.app
1228 VirtualBoxVM.app_INST = $(VirtualBox.app_INST)Resources/VirtualBoxVM.app/Contents/
1229 VirtualBoxVM.app_MODE = 644
1230 VirtualBoxVM.app_SOURCES = \
1231 src/platform/darwin/VM-PkgInfo=>PkgInfo \
1232 $(VirtualBoxVM.app_0_OUTDIR)/VM-Info.plist=>Info.plist \
1233 $(foreach mysrc,$(VirtualBox.app_SOURCES),$(if-expr $(pos =>Resources/,$(mysrc)) > 0,$(mysrc),))
1234 VirtualBoxVM.app_SYMLINKS = \
1235 MacOS=>../../../MacOS/
1236
1237 $$(VirtualBoxVM.app_0_OUTDIR)/VM-Info.plist: $(PATH_SUB_CURRENT)/src/platform/darwin/VM-Info.plist $(VBOX_VERSION_MK) | $$(@D)/
1238 $(call MSG_GENERATE,VirtualBoxVM.app,$<,$@)
1239 $(QUIET)$(RM) -f $@
1240 $(QUIET)$(SED) \
1241 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
1242 -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
1243 -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
1244 -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
1245 -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
1246 -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
1247 -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
1248 --output $@ $<
1249
1250 PROGRAMS += vmstarter
1251 vmstarter_TEMPLATE = VBOXR3EXE
1252 ifdef VBOX_WITH_NEW_XCODE
1253 vmstarter_OBJCXXFLAGS += -Wno-error=deprecated-declarations ## @todo fix deprecate API use!
1254 else
1255 vmstarter_OBJCXXFLAGS += -Wno-deprecated-declarations
1256 endif
1257 vmstarter_LDFLAGS += -framework AppKit
1258 vmstarter_SOURCES = src/platform/darwin/vmstarter.mm
1259 vmstarter_INST = $(INST_BIN)vmstarter
1260
1261 INSTALLS += vmstarter.app
1262 vmstarter.app_INST = $(VirtualBox.app_INST)Resources/vmstarter.app/Contents/
1263 vmstarter.app_MODE = 644
1264 vmstarter.app_SOURCES = \
1265 src/platform/darwin/vmstarter-PkgInfo=>PkgInfo \
1266 $(vmstarter.app_0_OUTDIR)/vmstarter-Info.plist=>Info.plist \
1267 $(foreach mysrc,$(VirtualBox.app_SOURCES),$(if-expr $(pos =>Resources/,$(mysrc)) > 0,$(mysrc),))
1268 vmstarter.app_SYMLINKS = \
1269 MacOS=>../../../MacOS \
1270
1271 $$(vmstarter.app_0_OUTDIR)/vmstarter-Info.plist: $(PATH_SUB_CURRENT)/src/platform/darwin/vmstarter-Info.plist $(VBOX_VERSION_MK) | $$(@D)/
1272 $(call MSG_GENERATE,vmstarter.app,$<,$@)
1273 $(QUIET)$(RM) -f $@
1274 $(QUIET)$(SED) \
1275 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
1276 -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
1277 -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
1278 -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
1279 -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
1280 -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
1281 -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
1282 --output $@ $<
1283endif # darwin
1284
1285#
1286# App for testing GL support
1287#
1288if defined(VBOX_WITH_VIDEOHWACCEL)
1289 if1of ($(KBUILD_TARGET), win linux freebsd)
1290 LIBRARIES += VBoxOGL2D
1291 VBoxOGL2D_TEMPLATE = $(if $(VBOX_WITH_VIDEOHWACCEL),$(if $(VBOX_WITH_HARDENING),VBOXQTGUI,VBOXQTGUIEXE),VBOXMAINEXE)
1292 VBoxOGL2D_DEFS = QT_NO_DEBUG QT_THREAD_SUPPORT QT_SHARED HAVE_CONFIG_H VBOX_WITH_VIDEOHWACCEL VBOX_GUI_USE_QGL
1293 VBoxOGL2D_QT_MODULES += OpenGL
1294 VBoxOGL2D_SOURCES = \
1295 src/VBoxGLSupportInfo.cpp
1296 VBoxOGL2D_INCS = include
1297 endif
1298endif
1299
1300
1301#
1302# Testcase for the darwin keyboard routines.
1303#
1304ifdef VBOX_WITH_TESTCASES
1305 PROGRAMS.darwin += tstDarwinKeyboard
1306 tstDarwinKeyboard_TEMPLATE = VBOXR3TSTEXE
1307 tstDarwinKeyboard_DEFS.x86 = USE_HID_FOR_MODIFIERS
1308 tstDarwinKeyboard_INCS = include
1309 tstDarwinKeyboard_SOURCES = \
1310 src/platform/darwin/tstDarwinKeyboard.cpp \
1311 src/platform/darwin/DarwinKeyboard.cpp
1312 tstDarwinKeyboard_SOURCES.amd64 = \
1313 src/platform/darwin/CocoaEventHelper.mm
1314 tstDarwinKeyboard_LDFLAGS = -framework IOKit -framework Carbon -framework AppKit
1315 tstDarwinKeyboard_LIBS = \
1316 $(LIB_RUNTIME)
1317endif
1318
1319
1320#
1321# Testcase for SSL certificate downloading.
1322#
1323if defined(VBOX_WITH_TESTCASES) && defined(VBOX_GUI_WITH_NETWORK_MANAGER)
1324 PROGRAMS += tstSSLCertDownloads
1325 tstSSLCertDownloads_TEMPLATE = VBOXQTGUIEXE
1326 tstSSLCertDownloads_USES = qt5
1327 tstSSLCertDownloads_QTTOOL = QT5
1328 tstSSLCertDownloads_QT_MODULES = Core Gui
1329 tstSSLCertDownloads_DEFS = VBOX_GUI_IN_TST_SSL_CERT_DOWNLOADS
1330 tstSSLCertDownloads_INCS = \
1331 $(VBOX_GUI_INC_DIRS)
1332 tstSSLCertDownloads_SOURCES = \
1333 src/net/tstSSLCertDownloads.cpp
1334endif
1335
1336
1337#
1338# Doxygen documentation.
1339#
1340QTGUI_DOXYFILE_OUTPUT = $(PATH_OUT)/docs/qtgui
1341BLDDIRS += $(QTGUI_DOXYFILE_OUTPUT)
1342OTHER_CLEAN += \
1343 $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui \
1344 $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui.dep \
1345 $(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui
1346
1347QTGUI_DOXYFILE_INPUT_DIRS := \
1348 $(addprefix $(PATH_SUB_CURRENT)/src/, \
1349 converter \
1350 extensions \
1351 extensions/graphics \
1352 extradata \
1353 globals \
1354 medium \
1355 net \
1356 objects \
1357 platform \
1358 platform/darwin \
1359 platform/os2 \
1360 platform/win \
1361 platform/x11 \
1362 runtime \
1363 runtime/fullscreen \
1364 runtime/information \
1365 runtime/guestctrl \
1366 runtime/normal \
1367 runtime/scale \
1368 runtime/seamless \
1369 selector \
1370 selector/graphics \
1371 selector/graphics/chooser \
1372 selector/graphics/details \
1373 settings \
1374 settings/global \
1375 settings/machine \
1376 widgets \
1377 widgets/graphics \
1378 wizards \
1379 wizards/clonevd \
1380 wizards/clonevm \
1381 wizards/exportappliance \
1382 wizards/firstrun \
1383 wizards/importappliance \
1384 wizards/newvd \
1385 wizards/newvm)
1386
1387QTGUI_DOXYFILE_INPUT := \
1388 $(foreach dir, $(QTGUI_DOXYFILE_INPUT_DIRS), \
1389 $(sort $(wildcard $(dir)/*.h)) \
1390 $(sort $(wildcard $(dir)/*.cpp $(dir)/*.m $(dir)/*.mm)))
1391
1392includedep $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui.dep
1393
1394# Generate the Doxyfile
1395$(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui: \
1396 $(PATH_SUB_CURRENT)/Doxyfile \
1397 $(PATH_SUB_CURRENT)/Makefile.kmk \
1398 $(comp-vars QTGUI_DOXYFILE_INPUT,DOXYGEN_QTGUI_INPUT_PREV,FORCE) \
1399 $(comp-vars QTGUI_DOXYFILE_OUTPUT,DOXYGEN_QTGUI_OUTPUT_PREV,FORCE) \
1400 | $$(dir $$@)
1401 $(QUIET)$(RM) -f $@ [email protected] [email protected]
1402 $(QUIET)$(CP) -f $< [email protected]
1403 $(QUIET)$(APPEND) [email protected]
1404 $(QUIET)$(APPEND) [email protected] "OUTPUT_DIRECTORY = $(QTGUI_DOXYFILE_OUTPUT)"
1405 $(QUIET)$(APPEND) [email protected] "WARN_LOGFILE = $(QTGUI_DOXYFILE_OUTPUT)/errors"
1406 $(QUIET)$(APPEND) [email protected] "INCLUDE_PATH = $(PATH_ROOT)/include ."
1407 $(QUIET)$(APPEND) [email protected] "PREDEFINED += $(ARCH_BITS_DEFS)"
1408 $(QUIET)$(APPEND) [email protected]
1409 $(QUIET)$(APPEND) [email protected] 'INPUT = $(foreach x,$(QTGUI_DOXYFILE_INPUT),\$(NLTAB)$(x))'
1410 $(QUIET)$(APPEND) [email protected]
1411 $(QUIET)$(MV) -f [email protected] $@
1412 @$(APPEND) [email protected] "DOXYGEN_QTGUI_OUTPUT_PREV = $(QTGUI_DOXYFILE_OUTPUT)"
1413 @$(APPEND) [email protected] "DOXYGEN_QTGUI_INPUT_PREV = $(QTGUI_DOXYFILE_INPUT)"
1414
1415# Do the actual job.
1416$(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui: $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui $$(QTGUI_DOXYFILE_INPUT) \
1417 | $(QTGUI_DOXYFILE_OUTPUT)/
1418 $(call MSG_L1,doxygen qtgui)
1419 $(QUIET)$(RM) -f $@
1420 $(QUIET)$(RM) -Rf -- $(QTGUI_DOXYFILE_OUTPUT)/html/
1421 doxygen $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui
1422 $(APPEND) $@
1423
1424# aliases
1425docs.qtgui: $(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui
1426if !defined(VBOX_ONLY_DOCS) && defined(VBOX_WITH_ALL_DOXYGEN_TARGETS)
1427docs: $(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui
1428endif
1429
1430
1431
1432# Commit the magic.
1433# (note: before custom rules that make usage of generated variables!).
1434include $(FILE_KBUILD_SUB_FOOTER)
1435
1436
1437#
1438# Update all known NLS translation (.ts) files in the nls/ subdirectory.
1439#
1440# NOTE: This target is intended to be run only by the GUI maintainer shortly
1441# before a new product release. VirtualBox_xx_YY.ts is a template for new
1442# languages and should never be actually translated or installed.
1443#
1444# Use the checknls target for checking again common mistakes done by the
1445# translators.
1446#
1447# For Qt >= 4.6.0 it maybe necessary to add -I $(VBOX_GUI_INC_DIRS) to the
1448# lupdate call
1449#
1450#VirtualBox_QT_TRANSLATIONS = nls/VirtualBox_de.ts
1451checknls::
1452 # Check for missing :/ in image paths
1453 grep -i "src=[^:%]" $(filter-out nls/qt_%.ts,$(VirtualBox_QT_TRANSLATIONS))
1454
1455updatenls:: makeallnls nls/VirtualBox_en.ts
1456
1457makeallnls:: \
1458 $(foreach header,$(VBOX_GUI_INC_DIRS),$(wildcard $(header)/*.h)) \
1459 $(filter-out %.qrc,$(VirtualBox_SOURCES) $(VirtualBox_VBOX_EXTRA_NLS_SOURCES))
1460 $(call MSG_L1,lupdate all languages (nls/*.ts))
1461 $(QUIET)$(TOOL_QT5_LUPDATE) \
1462 $^ \
1463 -ts \
1464 $(filter-out nls/VirtualBox_en.ts,$(filter-out nls/qt_%.ts,$(VirtualBox_QT_TRANSLATIONS))) \
1465 nls/VirtualBox_xx_YY.ts
1466
1467# Create the English translation file. This is something special cause it will
1468# contain the plural forms only.
1469nls/VirtualBox_en.ts: \
1470 $(foreach header,$(VBOX_GUI_INC_DIRS),$(wildcard $(header)/*.h)) \
1471 $(filter-out %.qrc,$(VirtualBox_SOURCES) $(VirtualBox_VBOX_EXTRA_NLS_SOURCES))
1472 $(call MSG_L1,lupdate $@)
1473 $(QUIET)$(TOOL_QT5_LUPDATE) \
1474 $^ \
1475 -ts \
1476 $@
1477 $(QUIET)$(SED) -n -i -e \
1478 '/<context>/,/<\/context>/!p;/<context>/h;/<name>/H;/<message numerus="yes">/,/<\/message>/H;/<\/context>/{H;x;/<message/p}' \
1479 $@
1480
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