VirtualBox

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

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

FE/Qt: Adapting UIPopupPane to support error details

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