# $Id: Makefile.kmk 40872 2012-04-11 16:37:35Z vboxsync $ ## @file # Makefile for the VirtualBox Qt GUI. # # # Copyright (C) 2006-2012 Oracle Corporation # # This file is part of VirtualBox Open Source Edition (OSE), as # available from http://www.virtualbox.org. This file is free software; # you can redistribute it and/or modify it under the terms of the GNU # General Public License (GPL) as published by the Free Software # Foundation, in version 2 as it comes in the "COPYING" file of the # VirtualBox OSE distribution. VirtualBox OSE is distributed in the # hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. # SUB_DEPTH = ../../../.. include $(KBUILD_PATH)/subheader.kmk # # Globals. # VBOX_VIRTUALBOX4_SRC := $(PATH_SUB_CURRENT) VBOX_VIRTUALBOX4_OUT_DIR := $(PATH_TARGET)/VirtualBox/misc # Show the update notifier dialog during startup. If this setting is disabled # the user can still update using the menu if desired. ifndef VBOX_OSE VBOX_WITH_UPDATE_REQUEST := 1 endif # # The targets. # ifdef VBOX_WITH_HARDENING PROGRAMS += VirtualBoxHardened DLLS += VirtualBox else PROGRAMS += VirtualBox endif INSTALLS += VirtualBox.nls # # Include the language lists. # include $(PATH_SUB_CURRENT)/nls/ApprovedLanguages.kmk # # Hardened VirtualBox. # VirtualBoxHardened_TEMPLATE = VBOXR3HARDENEDEXE VirtualBoxHardened_SOURCES = src/hardenedmain.cpp VirtualBoxHardened_NAME = VirtualBox VirtualBoxHardened_INST.darwin = $(INST_BIN)VirtualBox $(INST_BIN)VirtualBoxVM # # Include Qt project file, we'll use FORMS and TRANSLATIONS in # the VirtualBox setup below. # SAVED_TEMPLATE := $(TEMPLATE) include $(PATH_SUB_CURRENT)/VBoxUI.pro # # VirtualBox - The GUI program. # USES += qt4 VirtualBox_TEMPLATE := $(if $(VBOX_WITH_HARDENING),VBOXQT4GUI,VBOXQT4GUIEXE) VirtualBox_NAME = VirtualBox ifndef VBOX_WITH_HARDENING # For the launch trick we need different inode numbers. VirtualBox_INST.darwin = $(INST_BIN)VirtualBox $(INST_BIN)VirtualBoxVM endif VirtualBox_SDKS.win = WINPSDK DXSDK if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd os2) # X11 + os2 ## @todo solaris VirtualBox_SDKS += LIBSDL endif VirtualBox_DEFS = VirtualBox_DEFS.debug = VBOX_CHECK_STATE # QT_FATAL_ASSERT VirtualBox_DEFS.darwin = VBOX_GUI_USE_QUARTZ2D VBOX_GUI_USE_QIMAGE ifndef VBOX_WITH_COCOA_QT VirtualBox_DEFS.darwin.x86= USE_HID_FOR_MODIFIERS endif VirtualBox_DEFS.freebsd = VBOX_GUI_USE_QIMAGE VBOX_GUI_USE_SDL VirtualBox_DEFS.linux = VBOX_GUI_USE_QIMAGE VBOX_GUI_USE_SDL VirtualBox_DEFS.netbsd = VBOX_GUI_USE_QIMAGE VBOX_GUI_USE_SDL VirtualBox_DEFS.openbsd = VBOX_GUI_USE_QIMAGE VBOX_GUI_USE_SDL VirtualBox_DEFS.solaris = VBOX_GUI_USE_QIMAGE #VBOX_GUI_USE_SDL VirtualBox_DEFS.win = VBOX_GUI_USE_QIMAGE UNICODE QT_DLL ifdef VBOX_WITH_ICHAT_THEATER VirtualBox_DEFS.darwin += VBOX_WITH_ICHAT_THEATER endif ifneq ($(KBUILD_TYPE),release) # non-release builds has some extra features. VirtualBox_DEFS.win += VBOX_GUI_USE_DDRAW endif VirtualBox_DEFS += \ $(if $(VBOX_WITH_UPDATE_REQUEST),VBOX_WITH_UPDATE_REQUEST) \ $(if $(VBOX_WITH_ALSA),VBOX_WITH_ALSA) \ $(if $(VBOX_WITH_PULSE),VBOX_WITH_PULSE) \ $(if $(VBOX_WITH_SOLARIS_OSS),VBOX_WITH_SOLARIS_OSS) \ $(if $(VBOX_WITH_E1000),VBOX_WITH_E1000) \ $(if $(VBOX_WITH_NETFLT)$(eq $(KBUILD_TARGET),freebsd),VBOX_WITH_NETFLT) \ $(if $(VBOX_WITH_VDE),VBOX_WITH_VDE) \ $(if $(VBOX_WITH_UDPTUNNEL),VBOX_WITH_UDPTUNNEL) \ $(if $(VBOX_WITH_EXTPACK),VBOX_WITH_EXTPACK) \ $(if $(VBOX_WITH_EHCI),VBOX_WITH_EHCI) \ $(if $(VBOX_WITH_DRAG_AND_DROP),VBOX_WITH_DRAG_AND_DROP) \ $(if $(VBOX_WITH_CRHGSMI),VBOX_WITH_CRHGSMI) \ $(if $(VBOX_WITH_VIRTIO),VBOX_WITH_VIRTIO) \ $(if $(VBOX_WITH_WDDM),VBOX_WITH_WDDM) \ $(if $(VBOX_WITH_CROGL),VBOX_WITH_CROGL) \ $(if $(VBOX_GUI_WITH_PIDFILE),VBOX_GUI_WITH_PIDFILE) \ $(if $(VBOX_GUI_WITH_KEYS_RESET_HANDLER),VBOX_GUI_WITH_KEYS_RESET_HANDLER) \ $(if $(VBOX_GUI_WITH_CUSTOMIZATIONS1),VBOX_GUI_WITH_CUSTOMIZATIONS1) ifdef VBOX_WITH_DEBUGGER_GUI VirtualBox_DEFS += VBOX_WITH_DEBUGGER_GUI if "$(KBUILD_TYPE)" != "release" VirtualBox_DEFS += VBOX_WITH_DEBUGGER_GUI_MENU endif endif ifdef VBOX_WITH_VIDEOHWACCEL VirtualBox_DEFS += VBOX_WITH_VIDEOHWACCEL \ VBOX_GUI_USE_QGL else ifdef VBOX_GUI_USE_QGL VirtualBox_DEFS += VBOX_GUI_USE_QGL endif ifdef VBOX_BLEEDING_EDGE VirtualBox_src/selector/UISelectorWindow.cpp_DEFS += \ VBOX_BLEEDING_EDGE=\"$(VBOX_BLEEDING_EDGE)\" VirtualBox_src/runtime/UIMachineWindow.cpp_DEFS += \ VBOX_BLEEDING_EDGE=\"$(VBOX_BLEEDING_EDGE)\" VirtualBox_src/VBoxAboutDlg.cpp_DEFS += \ VBOX_BLEEDING_EDGE=\"$(VBOX_BLEEDING_EDGE)\" VirtualBox_src/main.cpp_DEFS += \ VBOX_BLEEDING_EDGE=\"$(VBOX_BLEEDING_EDGE)\" endif VBOX_GUI_INC_DIRS = \ ./src \ ./src/extensions \ ./src/globals \ ./src/net \ ./src/platform \ ./src/platform/darwin \ ./src/platform/win \ ./src/platform/x11 \ ./src/runtime \ ./src/runtime/fullscreen \ ./src/runtime/normal \ ./src/runtime/scale \ ./src/runtime/seamless \ ./src/selector \ ./src/settings \ ./src/settings/global \ ./src/settings/machine \ ./src/widgets \ ./src/wizards \ ./src/wizards/newvm \ ./src/wizards/newvd \ ./src/wizards/clonevm \ ./src/wizards/clonevd \ ./src/wizards/exportappliance \ ./src/wizards/importappliance \ ./src/wizards/firstrun VirtualBox_INCS = \ $(VBOX_GUI_INC_DIRS) \ $(VirtualBox_0_OUTDIR)/include # Necessary for the hdd backend enumeration VirtualBox_LIBS = $(LIB_DDU) # This library is required for multi-monitor support VirtualBox_LIBS.linux += Xinerama VirtualBox_LIBS.solaris += Xinerama VirtualBox_LIBS.freebsd += Xinerama ifneq ($(KBUILD_TARGET),win) VirtualBox_CXXFLAGS += -Wno-switch endif ifdef VBOX_WITH_VIDEOHWACCEL # Necessary for save state support VirtualBox_LIBS += $(LIB_VMM) endif ifeq ($(KBUILD_TYPE),release) VirtualBox_LDFLAGS.win += /SUBSYSTEM:windows else VirtualBox_LDFLAGS.linux += -rdynamic # for backtrace_symbols() VirtualBox_LDFLAGS.win += /SUBSYSTEM:console endif # delay loading causes VM process crashes due to the misbehave of the current QtOpenGLVBox4.dll we use # (i.e. it does not create the ogl context properly when loaded this way) # # @todo: investigate a better work-around and enable back delay loading since it is needed to avoid # crashes caused by buggy ogl drivers for the case 2D is not used (i.e. no ogl stuff loaded) #if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL) # VirtualBox_LDFLAGS.win += /DelayLoad:QtOpenGLVBox4.dll /DelayLoad:OPENGL32.dll #endif VirtualBox_LDFLAGS.darwin = \ -framework AppKit -framework Carbon \ $(if $(VBOX_WITH_HARDENING),-install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VirtualBox.dylib) ifdef VBOX_WITH_ICHAT_THEATER VirtualBox_LDFLAGS.darwin += -framework InstantMessage -framework QuartzCore endif VirtualBox_LIBS.win = \ $(PATH_SDK_WINPSDK_LIB)/Htmlhelp.Lib \ $(PATH_SDK_DXSDK_LIB)/ddraw.lib \ $(PATH_SDK_DXSDK_LIB)/dxguid.lib if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) # X11 VirtualBox_LIBS += $(PATH_STAGE_DLL)/VBoxKeyboard$(VBOX_SUFF_DLL) endif if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL) VirtualBox_LIBS.win += $(PATH_SDK_WINPSDK_LIB)/Opengl32.lib VirtualBox_LIBS.solaris += GL VirtualBox_LIBS.linux += GL VirtualBox_LIBS.freebsd += GL VirtualBox_LDFLAGS.darwin += -framework OpenGL endif VirtualBox_LIBS += $(PATH_STAGE_LIB)/VBoxOGLTest$(VBOX_SUFF_LIB) # Headers containing definitions of classes that use the Q_OBJECT macro. VirtualBox_QT_MOCHDRS = \ src/UIMediumTypeChangeDialog.h \ src/VBoxAboutDlg.h \ src/VBoxGlobalSettings.h \ src/VBoxLicenseViewer.h \ src/VBoxMediaManagerDlg.h \ src/VBoxSnapshotDetailsDlg.h \ src/VBoxTakeSnapshotDlg.h \ src/VBoxVMInformationDlg.h \ src/UIVMLogViewer.h \ src/extensions/QIAdvancedSlider.h \ src/extensions/QIArrowButtonPress.h \ src/extensions/QIArrowButtonSwitch.h \ src/extensions/QIArrowSplitter.h \ src/extensions/QIDialog.h \ src/extensions/QIFileDialog.h \ src/extensions/QILabel.h \ src/extensions/QILabelSeparator.h \ src/extensions/QIListView.h \ src/extensions/QIMainDialog.h \ src/extensions/QIMessageBox.h \ src/extensions/QIRichTextLabel.h \ src/extensions/QIRichToolButton.h \ src/extensions/QISplitter.h \ src/extensions/QIStateIndicator.h \ src/extensions/QIStatusBar.h \ src/extensions/QITabWidget.h \ src/extensions/QITableView.h \ src/extensions/QIToolButton.h \ src/extensions/QITextEdit.h \ src/extensions/QITreeView.h \ src/extensions/QITreeWidget.h \ src/extensions/QIWidgetValidator.h \ src/globals/UIActionPool.h \ src/globals/UIExtraDataEventHandler.h \ src/globals/UIMainEventListener.h \ src/globals/UIMessageCenter.h \ src/globals/VBoxGlobal.h \ src/globals/VBoxUtils.h \ src/net/UIDownloader.h \ src/net/UIDownloaderAdditions.h \ src/net/UIDownloaderExtensionPack.h \ src/net/UIDownloaderUserManual.h \ src/net/UINetworkManager.h \ src/net/UIUpdateManager.h \ src/net/UINetworkCustomer.h \ src/runtime/UIActionPoolRuntime.h \ src/runtime/UIConsoleEventHandler.h \ src/runtime/UIIndicatorsPool.h \ src/runtime/UIKeyboardHandler.h \ src/runtime/UIMachine.h \ src/runtime/UIMachineLogic.h \ src/runtime/UIMachineView.h \ src/runtime/UIMouseHandler.h \ src/runtime/UIMultiScreenLayout.h \ src/runtime/UISession.h \ src/runtime/UIVMCloseDialog.h \ src/runtime/fullscreen/UIKeyboardHandlerFullscreen.h \ src/runtime/fullscreen/UIMachineLogicFullscreen.h \ src/runtime/fullscreen/UIMachineViewFullscreen.h \ src/runtime/fullscreen/UIMachineWindowFullscreen.h \ src/runtime/normal/UIKeyboardHandlerNormal.h \ src/runtime/normal/UIMachineLogicNormal.h \ src/runtime/normal/UIMachineViewNormal.h \ src/runtime/normal/UIMachineWindowNormal.h \ src/runtime/scale/UIKeyboardHandlerScale.h \ src/runtime/scale/UIMachineLogicScale.h \ src/runtime/scale/UIMachineViewScale.h \ src/runtime/scale/UIMachineWindowScale.h \ src/runtime/seamless/UIKeyboardHandlerSeamless.h \ src/runtime/seamless/UIMachineLogicSeamless.h \ src/runtime/seamless/UIMachineViewSeamless.h \ src/runtime/seamless/UIMachineWindowSeamless.h \ src/selector/UIActionPoolSelector.h \ src/selector/UIVMDesktop.h \ src/selector/UIVMItem.h \ src/selector/UIVMListView.h \ src/selector/UIVMPreviewWindow.h \ src/selector/UIVirtualBoxEventHandler.h \ src/selector/UISelectorWindow.h \ src/selector/VBoxSnapshotsWgt.h \ src/settings/UISettingsDialog.h \ src/settings/UISettingsDialogSpecific.h \ src/settings/UISettingsPage.h \ src/settings/VBoxSettingsSelector.h \ src/settings/global/UIGlobalSettingsExtension.h \ src/settings/global/UIGlobalSettingsGeneral.h \ src/settings/global/UIGlobalSettingsInput.h \ src/settings/global/UIGlobalSettingsLanguage.h \ src/settings/global/UIGlobalSettingsDisplay.h \ src/settings/global/UIGlobalSettingsNetwork.h \ src/settings/global/UIGlobalSettingsNetworkDetails.h \ src/settings/global/UIGlobalSettingsProxy.h \ src/settings/global/UIGlobalSettingsUpdate.h \ src/settings/machine/UIMachineSettingsAudio.h \ src/settings/machine/UIMachineSettingsDisplay.h \ src/settings/machine/UIMachineSettingsGeneral.h \ src/settings/machine/UIMachineSettingsNetwork.h \ src/settings/machine/UIMachineSettingsParallel.h \ src/settings/machine/UIMachineSettingsPortForwardingDlg.h \ src/settings/machine/UIMachineSettingsSF.h \ src/settings/machine/UIMachineSettingsSFDetails.h \ src/settings/machine/UIMachineSettingsSerial.h \ src/settings/machine/UIMachineSettingsStorage.h \ src/settings/machine/UIMachineSettingsSystem.h \ src/settings/machine/UIMachineSettingsUSB.h \ src/settings/machine/UIMachineSettingsUSBFilterDetails.h \ src/widgets/UIApplianceEditorWidget.h \ src/widgets/UIApplianceExportEditorWidget.h \ src/widgets/UIApplianceImportEditorWidget.h \ src/widgets/UIBar.h \ src/widgets/UIBootTable.h \ src/widgets/UIHotKeyEditor.h \ src/widgets/UILineTextEdit.h \ src/widgets/UIPopupBox.h \ src/widgets/UIProgressDialog.h \ src/widgets/UISpacerWidgets.h \ src/widgets/UISpecialControls.h \ src/widgets/VBoxFilePathSelectorWidget.h \ src/widgets/VBoxMediaComboBox.h \ src/widgets/VBoxMiniToolBar.h \ src/widgets/VBoxOSTypeSelectorButton.h \ src/widgets/VBoxOSTypeSelectorWidget.h \ src/widgets/VBoxWarningPane.h \ src/wizards/UIWizard.h \ src/wizards/UIWizardPage.h \ src/wizards/newvm/UIWizardNewVM.h \ src/wizards/newvm/UIWizardNewVMPageBasic1.h \ src/wizards/newvm/UIWizardNewVMPageBasic2.h \ src/wizards/newvm/UIWizardNewVMPageBasic3.h \ src/wizards/newvm/UIWizardNewVMPageBasic4.h \ src/wizards/newvm/UIWizardNewVMPageBasic5.h \ src/wizards/newvd/UIWizardNewVD.h \ src/wizards/newvd/UIWizardNewVDPageBasic1.h \ src/wizards/newvd/UIWizardNewVDPageBasic2.h \ src/wizards/newvd/UIWizardNewVDPageBasic3.h \ src/wizards/newvd/UIWizardNewVDPageBasic4.h \ src/wizards/clonevm/UIWizardCloneVM.h \ src/wizards/clonevm/UIWizardCloneVMPageBasic1.h \ src/wizards/clonevm/UIWizardCloneVMPageBasic2.h \ src/wizards/clonevm/UIWizardCloneVMPageBasic3.h \ src/wizards/clonevd/UIWizardCloneVD.h \ src/wizards/clonevd/UIWizardCloneVDPageBasic1.h \ src/wizards/clonevd/UIWizardCloneVDPageBasic2.h \ src/wizards/clonevd/UIWizardCloneVDPageBasic3.h \ src/wizards/clonevd/UIWizardCloneVDPageBasic4.h \ src/wizards/clonevd/UIWizardCloneVDPageBasic5.h \ src/wizards/exportappliance/UIWizardExportApp.h \ src/wizards/exportappliance/UIWizardExportAppPageBasic1.h \ src/wizards/exportappliance/UIWizardExportAppPageBasic2.h \ src/wizards/exportappliance/UIWizardExportAppPageBasic3.h \ src/wizards/exportappliance/UIWizardExportAppPageBasic4.h \ src/wizards/importappliance/UIWizardImportApp.h \ src/wizards/importappliance/UIWizardImportAppPageBasic1.h \ src/wizards/importappliance/UIWizardImportAppPageBasic2.h \ src/wizards/firstrun/UIWizardFirstRun.h \ src/wizards/firstrun/UIWizardFirstRunPageBasic1.h \ src/wizards/firstrun/UIWizardFirstRunPageBasic2.h \ src/wizards/firstrun/UIWizardFirstRunPageBasic3.h VirtualBox_QT_MOCHDRS.darwin += \ src/platform/darwin/UIWindowMenuManager.h # Sources containing local definitions of classes that use the Q_OBJECT macro. VirtualBox_QT_MOCSRCS = \ src/VBoxMediaManagerDlg.cpp \ src/UIVMLogViewer.cpp \ src/extensions/QISplitter.cpp \ src/globals/UIActionPool.cpp \ src/globals/UIExtraDataEventHandler.cpp \ src/net/UINetworkManager.cpp \ src/net/UIUpdateManager.cpp \ src/runtime/UIActionPoolRuntime.cpp \ src/runtime/UIIndicatorsPool.cpp \ src/runtime/UIMachine.cpp \ src/runtime/UIMachineMenuBar.cpp \ src/selector/UIActionPoolSelector.cpp \ src/selector/UIVMDesktop.cpp \ src/settings/UISettingsDialogSpecific.cpp \ src/settings/machine/UIMachineSettingsPortForwardingDlg.cpp \ src/settings/machine/UIMachineSettingsStorage.cpp \ src/wizards/importappliance/UIWizardImportApp.cpp VirtualBox_QT_MOCSRCS.darwin += \ src/platform/darwin/UIWindowMenuManager.cpp VirtualBox_QT_MOCSRCS.win += \ src/extensions/QIFileDialog.cpp ifdef VBOX_WITH_XPCOM VirtualBox_QT_MOCSRCS += \ src/globals/COMDefs.cpp endif VirtualBox_SOURCES = \ src/UIMediumTypeChangeDialog.cpp \ src/VBoxAboutDlg.cpp \ src/VBoxGlobalSettings.cpp \ src/VBoxLicenseViewer.cpp \ src/VBoxMediaManagerDlg.cpp \ src/VBoxMedium.cpp \ src/VBoxSnapshotDetailsDlg.cpp \ src/VBoxTakeSnapshotDlg.cpp \ src/VBoxVMInformationDlg.cpp \ src/UIVMLogViewer.cpp \ src/extensions/QIAdvancedSlider.cpp \ src/extensions/QIArrowButtonPress.cpp \ src/extensions/QIArrowButtonSwitch.cpp \ src/extensions/QIArrowSplitter.cpp \ src/extensions/QIDialog.cpp \ src/extensions/QIDialogButtonBox.cpp \ src/extensions/QIFileDialog.cpp \ src/extensions/QILabel.cpp \ src/extensions/QILabelSeparator.cpp \ src/extensions/QILineEdit.cpp \ src/extensions/QIListView.cpp \ src/extensions/QIMainDialog.cpp \ src/extensions/QIMessageBox.cpp \ src/extensions/QIRichTextLabel.cpp \ src/extensions/QIRichToolButton.cpp \ src/extensions/QISplitter.cpp \ src/extensions/QIStateIndicator.cpp \ src/extensions/QIStatusBar.cpp \ src/extensions/QITableView.cpp \ src/extensions/QITextEdit.cpp \ src/extensions/QITreeView.cpp \ src/extensions/QITreeWidget.cpp \ src/extensions/QIWidgetValidator.cpp \ src/globals/COMDefs.cpp \ src/globals/UIActionPool.cpp \ src/globals/UIExtraDataEventHandler.cpp \ src/globals/UIIconPool.cpp \ src/globals/UIImageTools.cpp \ src/globals/UIMainEventListener.cpp \ src/globals/UIMessageCenter.cpp \ src/globals/VBoxDefs.cpp \ src/globals/VBoxGlobal.cpp \ src/main.cpp \ src/net/UIDownloader.cpp \ src/net/UIDownloaderAdditions.cpp \ src/net/UIDownloaderExtensionPack.cpp \ src/net/UIDownloaderUserManual.cpp \ src/net/UINetworkManager.cpp \ src/net/UIUpdateDefs.cpp \ src/net/UIUpdateManager.cpp \ src/net/UINetworkCustomer.cpp \ src/runtime/UIActionPoolRuntime.cpp \ src/runtime/UIConsoleEventHandler.cpp \ src/runtime/UIFrameBuffer.cpp \ src/runtime/UIFrameBufferQGL.cpp \ src/runtime/UIFrameBufferQImage.cpp \ src/runtime/UIFrameBufferSDL.cpp \ src/runtime/UIIndicatorsPool.cpp \ src/runtime/UIKeyboardHandler.cpp \ src/runtime/UIMachine.cpp \ src/runtime/UIMachineLogic.cpp \ src/runtime/UIMachineMenuBar.cpp \ src/runtime/UIMachineShortcuts.cpp \ src/runtime/UIMachineView.cpp \ src/runtime/UIMachineWindow.cpp \ src/runtime/UIMouseHandler.cpp \ src/runtime/UIMultiScreenLayout.cpp \ src/runtime/UISession.cpp \ src/runtime/UIVMCloseDialog.cpp \ src/runtime/fullscreen/UIKeyboardHandlerFullscreen.cpp \ src/runtime/fullscreen/UIMachineLogicFullscreen.cpp \ src/runtime/fullscreen/UIMachineViewFullscreen.cpp \ src/runtime/fullscreen/UIMachineWindowFullscreen.cpp \ src/runtime/normal/UIKeyboardHandlerNormal.cpp \ src/runtime/normal/UIMachineLogicNormal.cpp \ src/runtime/normal/UIMachineViewNormal.cpp \ src/runtime/normal/UIMachineWindowNormal.cpp \ src/runtime/scale/UIKeyboardHandlerScale.cpp \ src/runtime/scale/UIMachineLogicScale.cpp \ src/runtime/scale/UIMachineViewScale.cpp \ src/runtime/scale/UIMachineWindowScale.cpp \ src/runtime/seamless/UIKeyboardHandlerSeamless.cpp \ src/runtime/seamless/UIMachineLogicSeamless.cpp \ src/runtime/seamless/UIMachineViewSeamless.cpp \ src/runtime/seamless/UIMachineWindowSeamless.cpp \ src/selector/UIActionPoolSelector.cpp \ src/selector/UISelectorShortcuts.cpp \ src/selector/UIVMDesktop.cpp \ src/selector/UIVMItem.cpp \ src/selector/UIVMListView.cpp \ src/selector/UIVMPreviewWindow.cpp \ src/selector/UIVirtualBoxEventHandler.cpp \ src/selector/UISelectorWindow.cpp \ src/selector/VBoxSnapshotsWgt.cpp \ src/settings/UISettingsDefs.cpp \ src/settings/UISettingsDialog.cpp \ src/settings/UISettingsDialogSpecific.cpp \ src/settings/UISettingsPage.cpp \ src/settings/VBoxSettingsSelector.cpp \ src/settings/global/UIGlobalSettingsExtension.cpp \ src/settings/global/UIGlobalSettingsGeneral.cpp \ src/settings/global/UIGlobalSettingsInput.cpp \ src/settings/global/UIGlobalSettingsLanguage.cpp \ src/settings/global/UIGlobalSettingsDisplay.cpp \ src/settings/global/UIGlobalSettingsNetwork.cpp \ src/settings/global/UIGlobalSettingsNetworkDetails.cpp \ src/settings/global/UIGlobalSettingsProxy.cpp \ src/settings/global/UIGlobalSettingsUpdate.cpp \ src/settings/machine/UIMachineSettingsAudio.cpp \ src/settings/machine/UIMachineSettingsDisplay.cpp \ src/settings/machine/UIMachineSettingsGeneral.cpp \ src/settings/machine/UIMachineSettingsNetwork.cpp \ src/settings/machine/UIMachineSettingsParallel.cpp \ src/settings/machine/UIMachineSettingsPortForwardingDlg.cpp \ src/settings/machine/UIMachineSettingsSF.cpp \ src/settings/machine/UIMachineSettingsSFDetails.cpp \ src/settings/machine/UIMachineSettingsSerial.cpp \ src/settings/machine/UIMachineSettingsStorage.cpp \ src/settings/machine/UIMachineSettingsSystem.cpp \ src/settings/machine/UIMachineSettingsUSB.cpp \ src/settings/machine/UIMachineSettingsUSBFilterDetails.cpp \ src/widgets/UIApplianceEditorWidget.cpp \ src/widgets/UIApplianceExportEditorWidget.cpp \ src/widgets/UIApplianceImportEditorWidget.cpp \ src/widgets/UIBar.cpp \ src/widgets/UIBootTable.cpp \ src/widgets/UIHotKeyEditor.cpp \ src/widgets/UILineTextEdit.cpp \ src/widgets/UIPopupBox.cpp \ src/widgets/UIProgressDialog.cpp \ src/widgets/UISpecialControls.cpp \ src/widgets/UIToolBar.cpp \ src/widgets/VBoxFilePathSelectorWidget.cpp \ src/widgets/VBoxGuestRAMSlider.cpp \ src/widgets/VBoxMediaComboBox.cpp \ src/widgets/VBoxMiniToolBar.cpp \ src/widgets/VBoxOSTypeSelectorButton.cpp \ src/widgets/VBoxOSTypeSelectorWidget.cpp \ src/widgets/VBoxWarningPane.cpp \ src/wizards/UIWizard.cpp \ src/wizards/UIWizardPage.cpp \ src/wizards/newvm/UIWizardNewVM.cpp \ src/wizards/newvm/UIWizardNewVMPageBasic1.cpp \ src/wizards/newvm/UIWizardNewVMPageBasic2.cpp \ src/wizards/newvm/UIWizardNewVMPageBasic3.cpp \ src/wizards/newvm/UIWizardNewVMPageBasic4.cpp \ src/wizards/newvm/UIWizardNewVMPageBasic5.cpp \ src/wizards/newvd/UIWizardNewVD.cpp \ src/wizards/newvd/UIWizardNewVDPageBasic1.cpp \ src/wizards/newvd/UIWizardNewVDPageBasic2.cpp \ src/wizards/newvd/UIWizardNewVDPageBasic3.cpp \ src/wizards/newvd/UIWizardNewVDPageBasic4.cpp \ src/wizards/clonevm/UIWizardCloneVM.cpp \ src/wizards/clonevm/UIWizardCloneVMPageBasic1.cpp \ src/wizards/clonevm/UIWizardCloneVMPageBasic2.cpp \ src/wizards/clonevm/UIWizardCloneVMPageBasic3.cpp \ src/wizards/clonevd/UIWizardCloneVD.cpp \ src/wizards/clonevd/UIWizardCloneVDPageBasic1.cpp \ src/wizards/clonevd/UIWizardCloneVDPageBasic2.cpp \ src/wizards/clonevd/UIWizardCloneVDPageBasic3.cpp \ src/wizards/clonevd/UIWizardCloneVDPageBasic4.cpp \ src/wizards/clonevd/UIWizardCloneVDPageBasic5.cpp \ src/wizards/exportappliance/UIWizardExportApp.cpp \ src/wizards/exportappliance/UIWizardExportAppPageBasic1.cpp \ src/wizards/exportappliance/UIWizardExportAppPageBasic2.cpp \ src/wizards/exportappliance/UIWizardExportAppPageBasic3.cpp \ src/wizards/exportappliance/UIWizardExportAppPageBasic4.cpp \ src/wizards/importappliance/UIWizardImportApp.cpp \ src/wizards/importappliance/UIWizardImportAppPageBasic1.cpp \ src/wizards/importappliance/UIWizardImportAppPageBasic2.cpp \ src/wizards/firstrun/UIWizardFirstRun.cpp \ src/wizards/firstrun/UIWizardFirstRunPageBasic1.cpp \ src/wizards/firstrun/UIWizardFirstRunPageBasic2.cpp \ src/wizards/firstrun/UIWizardFirstRunPageBasic3.cpp VirtualBox_SOURCES.win += \ src/runtime/UIFrameBufferDirectDraw.cpp VirtualBox_SOURCES.darwin += \ src/platform/darwin/UIAbstractDockIconPreview.cpp \ src/platform/darwin/UICocoaDockIconPreview.mm \ src/platform/darwin/UIWindowMenuManager.cpp \ src/runtime/UIFrameBufferQuartz2D.cpp if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) # X11 VirtualBox_SOURCES += \ src/platform/x11/UIDesktopServices_x11.cpp \ src/platform/x11/VBoxX11Helper.cpp \ src/platform/x11/XKeyboard-new.cpp endif VirtualBox_SOURCES.win += \ src/platform/win/VirtualBox.rc \ src/platform/win/UIDesktopServices_win.cpp \ src/platform/win/VBoxUtils-win.cpp VirtualBox_DEFS.darwin += VBOX_DARWIN_USE_NATIVE_CONTROLS VirtualBox_SOURCES.darwin += \ src/platform/darwin/CocoaEventHelper.mm \ src/platform/darwin/DarwinKeyboard.cpp \ src/platform/darwin/UICocoaApplication.mm \ src/platform/darwin/UICocoaSpecialControls.mm \ src/platform/darwin/UIDesktopServices_darwin.cpp \ src/platform/darwin/UIDesktopServices_darwin_cocoa.mm \ src/platform/darwin/VBoxUtils-darwin-cocoa.mm \ src/platform/darwin/VBoxUtils-darwin.cpp VirtualBox_QT_MOCHDRS.darwin += \ src/platform/darwin/UICocoaSpecialControls.h ifdef VBOX_WITH_ICHAT_THEATER VirtualBox_SOURCES.darwin += \ src/platform/darwin/VBoxIChatTheaterWrapper.m endif ifdef VBOX_GUI_WITH_SYSTRAY VirtualBox_DEFS += VBOX_GUI_WITH_SYSTRAY VirtualBox_QT_MOCHDRS += \ src/selector/VBoxTrayIcon.h VirtualBox_SOURCES += \ src/selector/VBoxTrayIcon.cpp endif if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL) VirtualBox_SOURCES += \ src/VBoxFBOverlay.cpp \ src/VBoxFBQGL.cpp \ src/VBoxGLSupportInfo.cpp endif ifdef VBOX_WITH_DRAG_AND_DROP VirtualBox_SOURCES += \ src/runtime/UIDnDHandler.cpp VirtualBox_QT_MOCSRCS += \ src/runtime/UIDnDHandler.cpp endif # The Qt modules we're using. # (The include directory and lib/framework for each module will be added by the Qt4 unit.) VirtualBox_QT_MODULES = Core Gui Network if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL) VirtualBox_QT_MODULES += OpenGL endif # Pull in the ui files $(eval VirtualBox_SOURCES += $(FORMS)) # Resource files with some OSE differences (VirtualBoxBrand.qrc is created further down). VirtualBox_SOURCES += VirtualBox1.qrc VirtualBox1.qrc_RCCFLAGS = -name BASIC1 VirtualBox_SOURCES += VirtualBox2.qrc VirtualBox2.qrc_RCCFLAGS = -name BASIC2 ifeq ($(KBUILD_TARGET),darwin) VirtualBox_SOURCES += VirtualBoxMac.qrc VirtualBoxMac.qrc_RCCFLAGS = -name MAC else VirtualBox_SOURCES += VirtualBoxOther.qrc VirtualBoxOther.qrc_RCCFLAGS = -name OTHER endif VirtualBox_SOURCES += $(VBOX_VIRTUALBOX4_OUT_DIR)/VirtualBoxBrand.qrc $(VBOX_VIRTUALBOX4_OUT_DIR)/VirtualBoxBrand.qrc_RCCFLAGS = -name BRAND if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL) VirtualBox_SOURCES += VirtualBoxShaders.qrc VirtualBoxShaders.qrc_RCCFLAGS = -name SHADERS endif # Import the translation source from VBoxUI.pro and add the qt_xx_YY counterparts VirtualBox_QT_TRANSLATIONS := $(TRANSLATIONS) \ $(patsubst nls/VirtualBox_%.ts,nls/qt_%.ts, $(filter nls/VirtualBox_%.ts,$(TRANSLATIONS))) # Compress the translation units. VirtualBox_LRCFLAGS = -silent # Where to install the translations (a separate install target, VirtualBox-nls-inst is created). VirtualBox_QT_TRANSLATIONS_INST = $(INST_BIN)nls/ ## @todo how to detect what tool is used? ## @todo GCC3 seems to lack -Wno-missing-base-class-initializer, so we use # more generic -Wno-extra # bird: What about $(if $(VBOX_GCC_Wno-missing-base-class-initializer),$(VBOX_GCC_Wno-missing-base-class-initializer),$(VBOX_GCC_Wno-extra))? ifdef VBOX_WITH_XPCOM VirtualBox_src/globals/COMDefs.cpp_CXXFLAGS = $(VBOX_GCC_Wno-extra) endif # # Generate the COM wrappers. # ## @todo This needs some cleaning up perhaps... ## @todo kBuild: Non-existing +| targets should be tried remade or what? VirtualBox_BLDDIRS += $(VirtualBox_0_OUTDIR)/include VirtualBox_INTERMEDIATES += $(VirtualBox_0_OUTDIR)/include/COMWrappers.h VirtualBox_CLEAN += \ $(VirtualBox_0_OUTDIR)/include/COMWrappers \ $(VirtualBox_0_OUTDIR)/include/COMWrappers.tmp \ $(VirtualBox_0_OUTDIR)/include/COMWrappers.h \ $(VirtualBox_0_OUTDIR)/include/COMWrappers.cpp VirtualBox_SOURCES += $(VirtualBox_0_OUTDIR)/include/COMWrappers.cpp $$(VirtualBox_0_OUTDIR)/include/COMWrappers \ +| $$(VirtualBox_0_OUTDIR)/include/COMWrappers.h \ +| $$(VirtualBox_0_OUTDIR)/include/COMWrappers.cpp: \ $(VBOX_XIDL_FILE) \ $(VBOX_VIRTUALBOX4_SRC)/src/globals/COMWrappers.xsl \ | $$(dir $$@) $(call MSG_GENERATE,VirtualBox,$<,$@) $(QUIET)$(RM) -f $@ $@.tmp $@.h $@.cpp $(QUIET)$(VBOX_XSLTPROC) -o $@ $(VBOX_VIRTUALBOX4_SRC)/src/globals/COMWrappers.xsl $< $(QUIET)$(SED) -e '1,/\/\/ wrapper definitions/ !d' \ --output $@.tmp $@ $(QUIET)$(CP) --changed $@.tmp $@.h $(QUIET)$(APPEND) -t -n $@.tmp \ '/*' \ ' * DO NOT EDIT! This is a generated file, see COMWrappers.h for details.' \ ' */' \ '' \ '#include "VBoxGlobal.h"' \ '' $(QUIET)$(SED) -e '/\/\/ wrapper definitions/,9999999 !d' \ -e 's/^inline //' \ --append $@.tmp $@ $(QUIET)$(CP) --changed $@.tmp $@.cpp $(QUIET)$(RM) -f $@.tmp # alias for generating the COM Wrappers file. testwrappers:: $$(VirtualBox_0_OUTDIR)/include/COMWrappers.h # # Generate qrc file with branded icons. # VirtualBox_BLDDIRS += $(VBOX_VIRTUALBOX4_OUT_DIR) VirtualBox_CLEAN += $(VBOX_VIRTUALBOX4_OUT_DIR)/VirtualBoxBrand.qrc $(VBOX_VIRTUALBOX4_OUT_DIR)/VirtualBoxBrand.qrc: \ $(VBOX_VIRTUALBOX4_SRC)/VirtualBoxBrand.qrc \ | $$(dir $$@) $(call MSG_GENERATE,VirtualBox,$<,$@) $(QUIET)$(SED) \ -e 's;@VBOX_ABOUT_PNG@;$(VBOX_BRAND_GUI_ABOUT_PNG);g' \ -e 's;@VBOX_ABOUT_16PX_PNG@;$(VBOX_BRAND_GUI_ABOUT_16PX_PNG);g' \ -e 's;@VBOX_VBOX_16PX_PNG@;$(VBOX_BRAND_GUI_VBOX_16PX_PNG);g' \ -e 's;@VBOX_VBOX_20PX_PNG@;$(VBOX_BRAND_GUI_VBOX_20PX_PNG);g' \ -e 's;@VBOX_VBOX_32PX_PNG@;$(VBOX_BRAND_GUI_VBOX_32PX_PNG);g' \ -e 's;@VBOX_VBOX_40PX_PNG@;$(VBOX_BRAND_GUI_VBOX_40PX_PNG);g' \ -e 's;@VBOX_VBOX_48PX_PNG@;$(VBOX_BRAND_GUI_VBOX_48PX_PNG);g' \ -e 's;@VBOX_VBOX_64PX_PNG@;$(VBOX_BRAND_GUI_VBOX_64PX_PNG);g' \ -e 's;@VBOX_CUBE_42PX_PNG@;$(VBOX_BRAND_GUI_CUBE_42PX_PNG);g' \ --output $@ \ $< # # Precompiled header - non-functional atm. # ifdef VBOX_WITH_PRECOMPILED_HEADERS VirtualBox_INCS <= $(VirtualBox_0_OUTDIR)/include VirtualBox_DEFS += VBOX_WITH_PRECOMPILED_HEADERS VirtualBox_CXXFLAGS += -Winvalid-pch -fpch-preprocess VirtualBox_INTERMEDIATES += $(VirtualBox_0_OUTDIR)/include/precomp.h.gch tstx: $$(VirtualBox_0_OUTDIR)/include/precomp.h.gch $$(VirtualBox_0_OUTDIR)/include/precomp.h.gch: \ $(PATH_SUB_CURRENT)/src/precomp.h \ $$(VirtualBox_0_OUTDIR)/include/COMWrappers.h \ $$(filter %.gen.h, $$(VirtualBox_INTERMEDIATES) ) \ $(VBOX_PATH_SDK)/bindings/xpcom/include/VirtualBox_XPCOM.h \ | $$(dir $$@) time 'g++-4.0' \ '-c' \ '-g' \ $(if-expr "$(KBUILD_TYPE)" == "debug", , -O2 ) \ '-pipe' \ '-Wall' \ '-Wextra' \ '-Wno-missing-field-initializers' \ '-Wno-trigraphs' \ '-frtti' \ '-fno-exceptions' \ '-Wno-non-virtual-dtor' \ '-Wno-long-long' \ \ '-fshort-wchar' \ '-fno-strict-aliasing' \ '-fvisibility=hidden' \ '-DVBOX_HAVE_VISIBILITY_HIDDEN' \ '-DRT_USE_VISIBILITY_DEFAULT' \ '-fvisibility-inlines-hidden' \ '-Winvalid-pch' \ '-fpch-preprocess' \ \ '-F$(PATH_SDK_QT4)/Frameworks' \ '-mmacosx-version-min=10.5' \ '-isysroot' \ '/Developer/SDKs/MacOSX10.5.sdk' \ '-m32' \ \ $(foreach inc,$(VirtualBox_INCS),\$(NL)$(TAB)-I$(inc)) \ '-I$(PATH_ROOT)/include' \ '-I$(PATH_OUT)' \ '-DVBOX' \ '-DVBOX_WITH_DEBUGGER' \ '-DVBOX_WITH_64_BITS_GUESTS' \ $(if-expr "$(KBUILD_TYPE)" == "debug", '-DDEBUG' '-DDEBUG_bird' '-DDEBUG_USERNAME=bird' '-DVBOX_CHECK_STATE' ,) \ '-DRT_OS_DARWIN' \ '-D__DARWIN__' \ '-DRT_ARCH_X86' \ '-D__X86__' \ '-DIN_RING3' \ '-DQT_NO_DEBUG' \ '-DQT_THREAD_SUPPORT' \ '-DQT_SHARED' \ '-DHAVE_CONFIG_H' \ '-DHC_ARCH_BITS=32' \ '-DGC_ARCH_BITS=64' \ '-DVBOX_WITH_XPCOM' \ '-DVBOX_WITH_UPDATE_REQUEST' \ '-DVBOX_WITH_ALSA' \ '-DVBOX_WITH_PULSE' \ '-DVBOX_WITH_E1000' \ '-DVBOX_WITH_NETFLT' \ '-DVBOX_WITH_DEBUGGER_GUI' \ $(if-expr "$(KBUILD_TYPE)" != "release", '-DVBOX_WITH_DEBUGGER_GUI_MENU', ) \ '-DVBOX_WITH_VIDEOHWACCEL' \ '-DVBOX_GUI_USE_QGL' \ '-DVBOX_WITH_VIRTIO' \ '-DVBOX_WITH_PRECOMPILED_HEADERS' \ '-DVBOX_DARWIN_USE_NATIVE_CONTROLS' \ '-DQT_CORE_LIB' \ '-DQT_GUI_LIB' \ '-DQT_NETWORK_LIB' \ '-DQT_OPENGL_LIB' \ '-DMAC_OS_X_VERSION_MIN_REQUIRED=1050' \ '-DMAC_OS_X_VERSION_MAX_ALLOWED=1050' \ '-DVBOX_GUI_USE_QUARTZ2D' \ '-DVBOX_GUI_USE_QIMAGE' \ '-o' $@ $< endif ifeq ($(KBUILD_TARGET),win) # # On Windows we'll have to generate/edit part of the resource file. # The IDI_ICON1 name is Qt specific. # src/platform/win/VirtualBox.rc_INCS = $(VirtualBox_0_OUTDIR) src/platform/win/VirtualBox.rc_DEPS = $(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc src/platform/win/VirtualBox.rc_CLEAN = $(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc $$(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc: $(MAKEFILE_CURRENT) $(VBOX_WINDOWS_ICON_FILE) | $$(dir $$@) $(APPEND) -t $@ 'IDI_ICON1 ICON "$(subst /,\\,$(VBOX_WINDOWS_ICON_FILE))"' endif # win ifeq ($(KBUILD_TARGET),darwin) # # Create directories for each approved language or the application # menu won't be translated. # INSTALLS += VirtualBox.lproj VirtualBox.lproj_INST = $(INST_VIRTUALBOX)Contents/Resources/ VirtualBox.lproj_MODE = 755 VirtualBox.lproj_DIRS := $(addsuffix .lproj,$(VBOX_APPROVED_GUI_LANGUAGES)) # # On OS X (darwin) we need to install icon resources and compulsory bundle contents. # The VirtualBoxVM.app helper is for launching VMs (fixes some issues with the dock). # INSTALLS += VirtualBox.app VirtualBox.app_INST = $(INST_VIRTUALBOX)Contents/ VirtualBox.app_MODE = 644 VirtualBox.app_SOURCES = \ src/platform/darwin/PkgInfo \ $(VirtualBox.app_0_OUTDIR)/Info.plist \ $(VBOX_MACOSX_ICON_FILE)=>Resources/virtualbox.icns \ $(VBOX_BRAND_GUI_VBOX_64PX_PNG)=>Resources/virtualbox.png \ $(PATH_ROOT)/src/VBox/Resources/darwin/virtualbox-vbox.icns=>Resources/virtualbox-vbox.icns \ $(PATH_ROOT)/src/VBox/Resources/darwin/virtualbox-vbox-extpack.icns=>Resources/virtualbox-vbox-extpack.icns \ $(PATH_ROOT)/src/VBox/Resources/darwin/virtualbox-ovf.icns=>Resources/virtualbox-ovf.icns \ $(PATH_ROOT)/src/VBox/Resources/darwin/virtualbox-ova.icns=>Resources/virtualbox-ova.icns \ $(PATH_ROOT)/src/VBox/Resources/darwin/virtualbox-vdi.icns=>Resources/virtualbox-vdi.icns \ $(PATH_ROOT)/src/VBox/Resources/darwin/virtualbox-vmdk.icns=>Resources/virtualbox-vmdk.icns \ $(PATH_ROOT)/src/VBox/Resources/darwin/virtualbox-vhd.icns=>Resources/virtualbox-vhd.icns \ $(PATH_ROOT)/src/VBox/Resources/darwin/virtualbox-hdd.icns=>Resources/virtualbox-hdd.icns $$(VirtualBox.app_0_OUTDIR)/Info.plist: $(PATH_SUB_CURRENT)/src/platform/darwin/Info.plist $(VBOX_VERSION_MK) | $$(@D)/ $(call MSG_GENERATE,VirtualBox.app,$<,$@) $(QUIET)$(RM) -f $@ $(QUIET)$(SED) \ -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \ -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \ -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \ -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \ -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \ -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \ -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \ $< > $@ INSTALLS += VirtualBoxVM.app VirtualBoxVM.app_INST = $(VirtualBox.app_INST)Resources/VirtualBoxVM.app/Contents/ VirtualBoxVM.app_MODE = 644 VirtualBoxVM.app_SOURCES = \ src/platform/darwin/VM-PkgInfo=>PkgInfo \ $(VirtualBoxVM.app_0_OUTDIR)/VM-Info.plist=>Info.plist VirtualBoxVM.app_SYMLINKS = \ MacOS=>../../../MacOS/ \ Resources=>../../../Resources/ $$(VirtualBoxVM.app_0_OUTDIR)/VM-Info.plist: $(PATH_SUB_CURRENT)/src/platform/darwin/VM-Info.plist $(VBOX_VERSION_MK) | $$(@D)/ $(call MSG_GENERATE,VirtualBoxVM.app,$<,$@) $(QUIET)$(RM) -f $@ $(QUIET)$(SED) \ -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \ -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \ -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \ -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \ -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \ -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \ -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \ --output $@ $< PROGRAMS += vmstarter vmstarter_TEMPLATE = VBOXR3EXE vmstarter_SOURCES = src/platform/darwin/vmstarter.mm vmstarter_LDFLAGS += -framework AppKit vmstarter_INST = $(INST_BIN)vmstarter INSTALLS += vmstarter.app vmstarter.app_INST = $(VirtualBox.app_INST)Resources/vmstarter.app/Contents/ vmstarter.app_MODE = 644 vmstarter.app_SOURCES = \ src/platform/darwin/vmstarter-PkgInfo=>PkgInfo \ $(vmstarter.app_0_OUTDIR)/vmstarter-Info.plist=>Info.plist vmstarter.app_SYMLINKS = \ MacOS=>../../../MacOS \ Resources=>../../../Resources $$(vmstarter.app_0_OUTDIR)/vmstarter-Info.plist: $(PATH_SUB_CURRENT)/src/platform/darwin/vmstarter-Info.plist $(VBOX_VERSION_MK) | $$(@D)/ $(call MSG_GENERATE,vmstarter.app,$<,$@) $(QUIET)$(RM) -f $@ $(QUIET)$(SED) \ -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \ -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \ -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \ -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \ -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \ -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \ -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \ --output $@ $< endif # darwin # # App for testing GL support # if defined(VBOX_WITH_VIDEOHWACCEL) if1of ($(KBUILD_TARGET), win linux freebsd) LIBRARIES += VBoxOGL2D VBoxOGL2D_TEMPLATE = VBOXR3STATIC VBoxOGL2D_USES = qt4 VBoxOGL2D_SDKS = QT4 VBoxOGL2D_DEFS = IN_RING3 QT_NO_DEBUG QT_THREAD_SUPPORT QT_SHARED HAVE_CONFIG_H $(ARCH_BITS_DEFS) VBOX_WITH_VIDEOHWACCEL VBOX_GUI_USE_QGL VBoxOGL2D_QT_MODULES += OpenGL VBoxOGL2D_SOURCES = \ src/VBoxGLSupportInfo.cpp VBoxOGL2D_INCS = include endif endif # # Testcase for the darwin keyboard routines. # ifdef VBOX_WITH_TESTCASES PROGRAMS.darwin += tstDarwinKeyboard tstDarwinKeyboard_NAME = tstDarwinKeyboard tstDarwinKeyboard_TEMPLATE = VBOXR3TSTEXE tstDarwinKeyboard_DEFS.x86 = USE_HID_FOR_MODIFIERS tstDarwinKeyboard_INCS = include tstDarwinKeyboard_SOURCES = \ src/platform/darwin/tstDarwinKeyboard.cpp \ src/platform/darwin/DarwinKeyboard.cpp tstDarwinKeyboard_SOURCES.amd64 = \ src/platform/darwin/CocoaEventHelper.mm tstDarwinKeyboard_LDFLAGS = -framework IOKit -framework Carbon -framework AppKit tstDarwinKeyboard_LIBS = \ $(LIB_RUNTIME) endif # Unset everything that was loaded from VBoxUI.pro. TEMPLATE := $(SAVED_TEMPLATE) SAVED_TEMPLATE := LANGUAGE := FORMS := TRANSLATIONS := IMAGES := # Commit the magic. # (note: before custom rules that make usage of generated variables!). include $(KBUILD_PATH)/subfooter.kmk # # Update all known NLS translation (.ts) files in the nls/ subdirectory. # # NOTE: This target is intended to be run only by the GUI maintainer shortly # before a new product release. VirtualBox_xx_YY.ts is a template for new # languages and should never be actually translated or installed. # # Use the checknls target for checking again common mistakes done by the # translators. # # For Qt >= 4.6.0 it maybe necessary to add -I $(VBOX_GUI_INC_DIRS) to the # lupdate call # #VirtualBox_QT_TRANSLATIONS = nls/VirtualBox_de.ts checknls:: # Check for missing :/ in image paths grep -i "src=[^:%]" $(filter-out nls/qt_%.ts,$(VirtualBox_QT_TRANSLATIONS)) updatenls:: makeallnls nls/VirtualBox_en.ts makeallnls:: \ $(foreach header,$(VBOX_GUI_INC_DIRS),$(wildcard $(header)/*.h)) \ $(filter-out %.qrc,$(VirtualBox_SOURCES) $(VirtualBox_VBOX_EXTRA_NLS_SOURCES)) $(call MSG_L1,lupdate all languages (nls/*.ts)) $(QUIET)$(TOOL_QT4_LUPDATE) \ $^ \ -ts \ $(filter-out nls/VirtualBox_en.ts,$(filter-out nls/qt_%.ts,$(VirtualBox_QT_TRANSLATIONS))) \ nls/VirtualBox_xx_YY.ts # Create the English translation file. This is something special cause it will # contain the plural forms only. nls/VirtualBox_en.ts: \ $(foreach header,$(VBOX_GUI_INC_DIRS),$(wildcard $(header)/*.h)) \ $(filter-out %.qrc,$(VirtualBox_SOURCES) $(VirtualBox_VBOX_EXTRA_NLS_SOURCES)) $(call MSG_L1,lupdate $@) $(QUIET)$(TOOL_QT4_LUPDATE) \ $^ \ -ts \ $@ $(QUIET)$(SED) -n -i -e \ '//,/<\/context>/!p;//h;//H;//,/<\/message>/H;/<\/context>/{H;x;/