VirtualBox

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

Last change on this file since 56225 was 56015, checked in by vboxsync, 10 years ago

VirtualBox/Makefile.kmk: Remains from failed msc precompiled header experiment.

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