VirtualBox

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

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

FE/Qt: bugref:9049: Detach VBoxGlobal dependencies from Selector and Runtime UIs.

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