VirtualBox

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

Last change on this file since 60538 was 60496, checked in by vboxsync, 9 years ago

FE/Qt: ​​bugref:7456: Port Forwarding UI: Possibility to manually commit embedded-editor data to QITableView. It's used in Port Forwarding UI to prevent loosing edited data when dialog is closed with Ok while editor still opened.

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