VirtualBox

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

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

FE/Qt: bugref:9072 Refactor log viewer classes

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