VirtualBox

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

Last change on this file since 57640 was 57480, checked in by vboxsync, 9 years ago

FE/Qt: 7958: Desktop-widget watchdog to be used under X11 to determine working-area values.

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