VirtualBox

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

Last change on this file since 58849 was 58722, checked in by vboxsync, 9 years ago

FE/Qt: ​​bugref:8088: Rework session-information window: Enabling build for runtime-information implementation files added in r104117.

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