[26634] | 1 | # $Id: Makefile.kmk 43059 2012-08-29 07:48:37Z vboxsync $
|
---|
[2478] | 2 | ## @file
|
---|
[382] | 3 | # Makefile for the VirtualBox Qt GUI.
|
---|
| 4 | #
|
---|
| 5 |
|
---|
| 6 | #
|
---|
[39932] | 7 | # Copyright (C) 2006-2012 Oracle Corporation
|
---|
[4398] | 8 | #
|
---|
[5999] | 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 | #
|
---|
[382] | 17 |
|
---|
[12257] | 18 | SUB_DEPTH = ../../../..
|
---|
| 19 | include $(KBUILD_PATH)/subheader.kmk
|
---|
[10579] | 20 |
|
---|
| 21 | #
|
---|
| 22 | # Globals.
|
---|
| 23 | #
|
---|
| 24 | VBOX_VIRTUALBOX4_SRC := $(PATH_SUB_CURRENT)
|
---|
[16174] | 25 | VBOX_VIRTUALBOX4_OUT_DIR := $(PATH_TARGET)/VirtualBox/misc
|
---|
[10579] | 26 |
|
---|
[10462] | 27 | # Show the update notifier dialog during startup. If this setting is disabled
|
---|
[10597] | 28 | # the user can still update using the menu if desired.
|
---|
[29039] | 29 | ifndef VBOX_OSE
|
---|
[10462] | 30 | VBOX_WITH_UPDATE_REQUEST := 1
|
---|
[29039] | 31 | endif
|
---|
[10462] | 32 |
|
---|
[7373] | 33 | #
|
---|
[4875] | 34 | # The targets.
|
---|
| 35 | #
|
---|
[11725] | 36 | ifdef VBOX_WITH_HARDENING
|
---|
[16174] | 37 | PROGRAMS += VirtualBoxHardened
|
---|
| 38 | DLLS += VirtualBox
|
---|
[11725] | 39 | else
|
---|
[16174] | 40 | PROGRAMS += VirtualBox
|
---|
[11725] | 41 | endif
|
---|
[11805] | 42 |
|
---|
[16174] | 43 | INSTALLS += VirtualBox.nls
|
---|
[959] | 44 |
|
---|
[12519] | 45 |
|
---|
[4875] | 46 | #
|
---|
[12955] | 47 | # Include the language lists.
|
---|
| 48 | #
|
---|
| 49 | include $(PATH_SUB_CURRENT)/nls/ApprovedLanguages.kmk
|
---|
| 50 |
|
---|
| 51 |
|
---|
| 52 | #
|
---|
[16174] | 53 | # Hardened VirtualBox.
|
---|
[11725] | 54 | #
|
---|
[16174] | 55 | VirtualBoxHardened_TEMPLATE = VBOXR3HARDENEDEXE
|
---|
| 56 | VirtualBoxHardened_SOURCES = src/hardenedmain.cpp
|
---|
| 57 | VirtualBoxHardened_NAME = VirtualBox
|
---|
[26736] | 58 | VirtualBoxHardened_INST.darwin = $(INST_BIN)VirtualBox $(INST_BIN)VirtualBoxVM
|
---|
[11725] | 59 |
|
---|
| 60 |
|
---|
| 61 | #
|
---|
[10293] | 62 | # Include Qt project file, we'll use FORMS and TRANSLATIONS in
|
---|
[16174] | 63 | # the VirtualBox setup below.
|
---|
[10344] | 64 | #
|
---|
[10293] | 65 | SAVED_TEMPLATE := $(TEMPLATE)
|
---|
| 66 | include $(PATH_SUB_CURRENT)/VBoxUI.pro
|
---|
| 67 |
|
---|
| 68 |
|
---|
[6560] | 69 | #
|
---|
[16174] | 70 | # VirtualBox - The GUI program.
|
---|
[4875] | 71 | #
|
---|
[12231] | 72 | USES += qt4
|
---|
[16174] | 73 | VirtualBox_TEMPLATE := $(if $(VBOX_WITH_HARDENING),VBOXQT4GUI,VBOXQT4GUIEXE)
|
---|
| 74 | VirtualBox_NAME = VirtualBox
|
---|
[11725] | 75 | ifndef VBOX_WITH_HARDENING # For the launch trick we need different inode numbers.
|
---|
[26736] | 76 | VirtualBox_INST.darwin = $(INST_BIN)VirtualBox $(INST_BIN)VirtualBoxVM
|
---|
[11725] | 77 | endif
|
---|
[42312] | 78 | VirtualBox_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK)
|
---|
[29808] | 79 | if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd os2) # X11 + os2 ## @todo solaris
|
---|
[39797] | 80 | VirtualBox_SDKS += LIBSDL
|
---|
[4875] | 81 | endif
|
---|
[382] | 82 |
|
---|
[29803] | 83 | VirtualBox_DEFS =
|
---|
[16174] | 84 | VirtualBox_DEFS.debug = VBOX_CHECK_STATE # QT_FATAL_ASSERT
|
---|
[29808] | 85 | VirtualBox_DEFS.darwin = VBOX_GUI_USE_QUARTZ2D VBOX_GUI_USE_QIMAGE
|
---|
[16374] | 86 | VirtualBox_DEFS.freebsd = VBOX_GUI_USE_QIMAGE VBOX_GUI_USE_SDL
|
---|
[39797] | 87 | VirtualBox_DEFS.linux = VBOX_GUI_USE_QIMAGE VBOX_GUI_USE_SDL
|
---|
[16374] | 88 | VirtualBox_DEFS.netbsd = VBOX_GUI_USE_QIMAGE VBOX_GUI_USE_SDL
|
---|
| 89 | VirtualBox_DEFS.openbsd = VBOX_GUI_USE_QIMAGE VBOX_GUI_USE_SDL
|
---|
[16174] | 90 | VirtualBox_DEFS.solaris = VBOX_GUI_USE_QIMAGE #VBOX_GUI_USE_SDL
|
---|
| 91 | VirtualBox_DEFS.win = VBOX_GUI_USE_QIMAGE UNICODE QT_DLL
|
---|
[10346] | 92 | ifdef VBOX_WITH_ICHAT_THEATER
|
---|
[16174] | 93 | VirtualBox_DEFS.darwin += VBOX_WITH_ICHAT_THEATER
|
---|
[10346] | 94 | endif
|
---|
| 95 | ifneq ($(KBUILD_TYPE),release)
|
---|
| 96 | # non-release builds has some extra features.
|
---|
[16174] | 97 | VirtualBox_DEFS.win += VBOX_GUI_USE_DDRAW
|
---|
[10346] | 98 | endif
|
---|
[16174] | 99 | VirtualBox_DEFS += \
|
---|
[43059] | 100 | $(if $(VBOX_WITH_ADDITIONS_AUTOUPDATE_UI),VBOX_WITH_ADDITIONS_AUTOUPDATE_UI) \
|
---|
[12475] | 101 | $(if $(VBOX_WITH_UPDATE_REQUEST),VBOX_WITH_UPDATE_REQUEST) \
|
---|
| 102 | $(if $(VBOX_WITH_ALSA),VBOX_WITH_ALSA) \
|
---|
| 103 | $(if $(VBOX_WITH_PULSE),VBOX_WITH_PULSE) \
|
---|
[20501] | 104 | $(if $(VBOX_WITH_SOLARIS_OSS),VBOX_WITH_SOLARIS_OSS) \
|
---|
[12475] | 105 | $(if $(VBOX_WITH_E1000),VBOX_WITH_E1000) \
|
---|
[28406] | 106 | $(if $(VBOX_WITH_NETFLT)$(eq $(KBUILD_TARGET),freebsd),VBOX_WITH_NETFLT) \
|
---|
[31946] | 107 | $(if $(VBOX_WITH_VDE),VBOX_WITH_VDE) \
|
---|
[37200] | 108 | $(if $(VBOX_WITH_UDPTUNNEL),VBOX_WITH_UDPTUNNEL) \
|
---|
[38913] | 109 | $(if $(VBOX_WITH_EXTPACK),VBOX_WITH_EXTPACK) \
|
---|
[35564] | 110 | $(if $(VBOX_WITH_EHCI),VBOX_WITH_EHCI) \
|
---|
[39451] | 111 | $(if $(VBOX_WITH_DRAG_AND_DROP),VBOX_WITH_DRAG_AND_DROP) \
|
---|
[42261] | 112 | $(if $(VBOX_WITH_DRAG_AND_DROP_GH),VBOX_WITH_DRAG_AND_DROP_GH) \
|
---|
[38704] | 113 | $(if $(VBOX_WITH_CRHGSMI),VBOX_WITH_CRHGSMI) \
|
---|
| 114 | $(if $(VBOX_WITH_VIRTIO),VBOX_WITH_VIRTIO) \
|
---|
| 115 | $(if $(VBOX_WITH_WDDM),VBOX_WITH_WDDM) \
|
---|
| 116 | $(if $(VBOX_WITH_CROGL),VBOX_WITH_CROGL) \
|
---|
[35686] | 117 | $(if $(VBOX_GUI_WITH_PIDFILE),VBOX_GUI_WITH_PIDFILE) \
|
---|
[35808] | 118 | $(if $(VBOX_GUI_WITH_KEYS_RESET_HANDLER),VBOX_GUI_WITH_KEYS_RESET_HANDLER) \
|
---|
| 119 | $(if $(VBOX_GUI_WITH_CUSTOMIZATIONS1),VBOX_GUI_WITH_CUSTOMIZATIONS1)
|
---|
[16385] | 120 | ifdef VBOX_WITH_DEBUGGER_GUI
|
---|
| 121 | VirtualBox_DEFS += VBOX_WITH_DEBUGGER_GUI
|
---|
| 122 | if "$(KBUILD_TYPE)" != "release"
|
---|
| 123 | VirtualBox_DEFS += VBOX_WITH_DEBUGGER_GUI_MENU
|
---|
| 124 | endif
|
---|
[12957] | 125 | endif
|
---|
[19961] | 126 | ifdef VBOX_WITH_VIDEOHWACCEL
|
---|
[20242] | 127 | VirtualBox_DEFS += VBOX_WITH_VIDEOHWACCEL \
|
---|
[29808] | 128 | VBOX_GUI_USE_QGL
|
---|
[22099] | 129 | else ifdef VBOX_GUI_USE_QGL
|
---|
| 130 | VirtualBox_DEFS += VBOX_GUI_USE_QGL
|
---|
[19961] | 131 | endif
|
---|
[22391] | 132 | ifdef VBOX_BLEEDING_EDGE
|
---|
[38977] | 133 | VirtualBox_src/selector/UISelectorWindow.cpp_DEFS += \
|
---|
[22391] | 134 | VBOX_BLEEDING_EDGE=\"$(VBOX_BLEEDING_EDGE)\"
|
---|
[29794] | 135 | VirtualBox_src/runtime/UIMachineWindow.cpp_DEFS += \
|
---|
| 136 | VBOX_BLEEDING_EDGE=\"$(VBOX_BLEEDING_EDGE)\"
|
---|
[22391] | 137 | VirtualBox_src/VBoxAboutDlg.cpp_DEFS += \
|
---|
| 138 | VBOX_BLEEDING_EDGE=\"$(VBOX_BLEEDING_EDGE)\"
|
---|
[22434] | 139 | VirtualBox_src/main.cpp_DEFS += \
|
---|
| 140 | VBOX_BLEEDING_EDGE=\"$(VBOX_BLEEDING_EDGE)\"
|
---|
[22391] | 141 | endif
|
---|
| 142 |
|
---|
[25363] | 143 |
|
---|
| 144 | VBOX_GUI_INC_DIRS = \
|
---|
[25171] | 145 | ./src \
|
---|
[41819] | 146 | ./src/converter \
|
---|
[38704] | 147 | ./src/extensions \
|
---|
[42526] | 148 | ./src/extensions/graphics \
|
---|
[25171] | 149 | ./src/globals \
|
---|
[38704] | 150 | ./src/net \
|
---|
[41615] | 151 | ./src/medium \
|
---|
[34401] | 152 | ./src/platform \
|
---|
| 153 | ./src/platform/darwin \
|
---|
| 154 | ./src/platform/win \
|
---|
[38704] | 155 | ./src/platform/x11 \
|
---|
| 156 | ./src/runtime \
|
---|
| 157 | ./src/runtime/fullscreen \
|
---|
| 158 | ./src/runtime/normal \
|
---|
| 159 | ./src/runtime/scale \
|
---|
| 160 | ./src/runtime/seamless \
|
---|
| 161 | ./src/selector \
|
---|
[42526] | 162 | ./src/selector/graphics/chooser \
|
---|
| 163 | ./src/selector/graphics/details \
|
---|
[25171] | 164 | ./src/settings \
|
---|
| 165 | ./src/settings/global \
|
---|
[33882] | 166 | ./src/settings/machine \
|
---|
[38704] | 167 | ./src/widgets \
|
---|
[42526] | 168 | ./src/widgets/graphics \
|
---|
[40870] | 169 | ./src/wizards \
|
---|
| 170 | ./src/wizards/newvm \
|
---|
| 171 | ./src/wizards/newvd \
|
---|
[37468] | 172 | ./src/wizards/clonevm \
|
---|
[40870] | 173 | ./src/wizards/clonevd \
|
---|
[38704] | 174 | ./src/wizards/exportappliance \
|
---|
[25171] | 175 | ./src/wizards/importappliance \
|
---|
[40870] | 176 | ./src/wizards/firstrun
|
---|
[25363] | 177 |
|
---|
| 178 | VirtualBox_INCS = \
|
---|
| 179 | $(VBOX_GUI_INC_DIRS) \
|
---|
[35380] | 180 | $(VirtualBox_0_OUTDIR)/include
|
---|
[10346] | 181 |
|
---|
[12331] | 182 | # Necessary for the hdd backend enumeration
|
---|
[16174] | 183 | VirtualBox_LIBS = $(LIB_DDU)
|
---|
[12331] | 184 |
|
---|
[27427] | 185 | # This library is required for multi-monitor support
|
---|
[38704] | 186 | VirtualBox_LIBS.linux += Xinerama
|
---|
[27434] | 187 | VirtualBox_LIBS.solaris += Xinerama
|
---|
[28498] | 188 | VirtualBox_LIBS.freebsd += Xinerama
|
---|
[27427] | 189 |
|
---|
[33542] | 190 | ifneq ($(KBUILD_TARGET),win)
|
---|
[33540] | 191 | VirtualBox_CXXFLAGS += -Wno-switch
|
---|
[33542] | 192 | endif
|
---|
[33540] | 193 |
|
---|
[22215] | 194 | ifdef VBOX_WITH_VIDEOHWACCEL
|
---|
| 195 | # Necessary for save state support
|
---|
| 196 | VirtualBox_LIBS += $(LIB_VMM)
|
---|
| 197 | endif
|
---|
[10346] | 198 | ifeq ($(KBUILD_TYPE),release)
|
---|
[38704] | 199 | VirtualBox_LDFLAGS.win += /SUBSYSTEM:windows
|
---|
[10346] | 200 | else
|
---|
[38704] | 201 | VirtualBox_LDFLAGS.linux += -rdynamic # for backtrace_symbols()
|
---|
| 202 | VirtualBox_LDFLAGS.win += /SUBSYSTEM:console
|
---|
[10346] | 203 | endif
|
---|
[25213] | 204 |
|
---|
[37551] | 205 | # delay loading causes VM process crashes due to the misbehave of the current QtOpenGLVBox4.dll we use
|
---|
[37494] | 206 | # (i.e. it does not create the ogl context properly when loaded this way)
|
---|
| 207 | #
|
---|
| 208 | # @todo: investigate a better work-around and enable back delay loading since it is needed to avoid
|
---|
[37551] | 209 | # crashes caused by buggy ogl drivers for the case 2D is not used (i.e. no ogl stuff loaded)
|
---|
[37494] | 210 | #if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
|
---|
| 211 | # VirtualBox_LDFLAGS.win += /DelayLoad:QtOpenGLVBox4.dll /DelayLoad:OPENGL32.dll
|
---|
| 212 | #endif
|
---|
[25213] | 213 |
|
---|
[26729] | 214 | VirtualBox_LDFLAGS.darwin = \
|
---|
[29808] | 215 | -framework AppKit -framework Carbon \
|
---|
[12397] | 216 | $(if $(VBOX_WITH_HARDENING),-install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VirtualBox.dylib)
|
---|
[10346] | 217 | ifdef VBOX_WITH_ICHAT_THEATER
|
---|
[16174] | 218 | VirtualBox_LDFLAGS.darwin += -framework InstantMessage -framework QuartzCore
|
---|
[10346] | 219 | endif
|
---|
[22629] | 220 |
|
---|
[16174] | 221 | VirtualBox_LIBS.win = \
|
---|
[42220] | 222 | $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Htmlhelp.Lib \
|
---|
[42312] | 223 | $(PATH_SDK_$(VBOX_WINDDK)_LIB)/ddraw.lib \
|
---|
| 224 | $(PATH_SDK_$(VBOX_WINDDK)_LIB)/dxguid.lib
|
---|
[29808] | 225 | if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) # X11
|
---|
[38082] | 226 | VirtualBox_LIBS += $(PATH_STAGE_DLL)/VBoxKeyboard$(VBOX_SUFF_DLL)
|
---|
[10346] | 227 | endif
|
---|
| 228 |
|
---|
[22904] | 229 | if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
|
---|
[42220] | 230 | VirtualBox_LIBS.win += $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Opengl32.lib
|
---|
[38704] | 231 | VirtualBox_LIBS.solaris += GL
|
---|
| 232 | VirtualBox_LIBS.linux += GL
|
---|
| 233 | VirtualBox_LIBS.freebsd += GL
|
---|
| 234 | VirtualBox_LDFLAGS.darwin += -framework OpenGL
|
---|
[20242] | 235 | endif
|
---|
[41480] | 236 | ifdef VBOX_WITH_CROGL
|
---|
| 237 | VirtualBox_LIBS += $(PATH_STAGE_LIB)/VBoxOGLTest$(VBOX_SUFF_LIB)
|
---|
| 238 | endif
|
---|
[20242] | 239 |
|
---|
[40845] | 240 |
|
---|
[10293] | 241 | # Headers containing definitions of classes that use the Q_OBJECT macro.
|
---|
[16174] | 242 | VirtualBox_QT_MOCHDRS = \
|
---|
[38704] | 243 | src/UIMediumTypeChangeDialog.h \
|
---|
[25171] | 244 | src/VBoxAboutDlg.h \
|
---|
| 245 | src/VBoxGlobalSettings.h \
|
---|
[38704] | 246 | src/VBoxLicenseViewer.h \
|
---|
[25171] | 247 | src/VBoxSnapshotDetailsDlg.h \
|
---|
| 248 | src/VBoxTakeSnapshotDlg.h \
|
---|
| 249 | src/VBoxVMInformationDlg.h \
|
---|
[38973] | 250 | src/UIVMLogViewer.h \
|
---|
[25171] | 251 | src/extensions/QIAdvancedSlider.h \
|
---|
| 252 | src/extensions/QIArrowButtonPress.h \
|
---|
| 253 | src/extensions/QIArrowButtonSwitch.h \
|
---|
| 254 | src/extensions/QIArrowSplitter.h \
|
---|
| 255 | src/extensions/QIDialog.h \
|
---|
| 256 | src/extensions/QIFileDialog.h \
|
---|
| 257 | src/extensions/QILabel.h \
|
---|
| 258 | src/extensions/QILabelSeparator.h \
|
---|
| 259 | src/extensions/QIListView.h \
|
---|
| 260 | src/extensions/QIMainDialog.h \
|
---|
| 261 | src/extensions/QIMessageBox.h \
|
---|
[41590] | 262 | src/extensions/QIProcess.h \
|
---|
[40043] | 263 | src/extensions/QIRichTextLabel.h \
|
---|
[25171] | 264 | src/extensions/QIRichToolButton.h \
|
---|
| 265 | src/extensions/QISplitter.h \
|
---|
| 266 | src/extensions/QIStateIndicator.h \
|
---|
| 267 | src/extensions/QIStatusBar.h \
|
---|
[29972] | 268 | src/extensions/QITabWidget.h \
|
---|
[38704] | 269 | src/extensions/QITableView.h \
|
---|
[25171] | 270 | src/extensions/QIToolButton.h \
|
---|
[39593] | 271 | src/extensions/QITextEdit.h \
|
---|
[25171] | 272 | src/extensions/QITreeView.h \
|
---|
| 273 | src/extensions/QITreeWidget.h \
|
---|
| 274 | src/extensions/QIWidgetValidator.h \
|
---|
[42526] | 275 | src/extensions/QIAdvancedToolBar.h \
|
---|
| 276 | src/extensions/graphics/QIGraphicsWidget.h \
|
---|
[38704] | 277 | src/globals/UIActionPool.h \
|
---|
| 278 | src/globals/UIExtraDataEventHandler.h \
|
---|
| 279 | src/globals/UIMainEventListener.h \
|
---|
| 280 | src/globals/UIMessageCenter.h \
|
---|
| 281 | src/globals/VBoxGlobal.h \
|
---|
| 282 | src/globals/VBoxUtils.h \
|
---|
[41440] | 283 | src/net/UINetworkManager.h \
|
---|
| 284 | src/net/UINetworkManagerDialog.h \
|
---|
[41461] | 285 | src/net/UINetworkManagerIndicator.h \
|
---|
[41440] | 286 | src/net/UINetworkRequest.h \
|
---|
| 287 | src/net/UINetworkRequestWidget.h \
|
---|
| 288 | src/net/UINetworkCustomer.h \
|
---|
| 289 | src/net/UIUpdateManager.h \
|
---|
[38704] | 290 | src/net/UIDownloader.h \
|
---|
| 291 | src/net/UIDownloaderAdditions.h \
|
---|
| 292 | src/net/UIDownloaderExtensionPack.h \
|
---|
| 293 | src/net/UIDownloaderUserManual.h \
|
---|
[41616] | 294 | src/medium/UIMediumManager.h \
|
---|
[38704] | 295 | src/runtime/UIActionPoolRuntime.h \
|
---|
| 296 | src/runtime/UIConsoleEventHandler.h \
|
---|
| 297 | src/runtime/UIIndicatorsPool.h \
|
---|
| 298 | src/runtime/UIKeyboardHandler.h \
|
---|
| 299 | src/runtime/UIMachine.h \
|
---|
| 300 | src/runtime/UIMachineLogic.h \
|
---|
[41107] | 301 | src/runtime/UIMachineWindow.h \
|
---|
[38704] | 302 | src/runtime/UIMachineView.h \
|
---|
| 303 | src/runtime/UIMouseHandler.h \
|
---|
| 304 | src/runtime/UIMultiScreenLayout.h \
|
---|
| 305 | src/runtime/UISession.h \
|
---|
| 306 | src/runtime/UIVMCloseDialog.h \
|
---|
| 307 | src/runtime/fullscreen/UIKeyboardHandlerFullscreen.h \
|
---|
| 308 | src/runtime/fullscreen/UIMachineLogicFullscreen.h \
|
---|
| 309 | src/runtime/fullscreen/UIMachineViewFullscreen.h \
|
---|
| 310 | src/runtime/fullscreen/UIMachineWindowFullscreen.h \
|
---|
| 311 | src/runtime/normal/UIKeyboardHandlerNormal.h \
|
---|
| 312 | src/runtime/normal/UIMachineLogicNormal.h \
|
---|
| 313 | src/runtime/normal/UIMachineViewNormal.h \
|
---|
| 314 | src/runtime/normal/UIMachineWindowNormal.h \
|
---|
| 315 | src/runtime/scale/UIKeyboardHandlerScale.h \
|
---|
| 316 | src/runtime/scale/UIMachineLogicScale.h \
|
---|
| 317 | src/runtime/scale/UIMachineViewScale.h \
|
---|
| 318 | src/runtime/scale/UIMachineWindowScale.h \
|
---|
| 319 | src/runtime/seamless/UIKeyboardHandlerSeamless.h \
|
---|
| 320 | src/runtime/seamless/UIMachineLogicSeamless.h \
|
---|
| 321 | src/runtime/seamless/UIMachineViewSeamless.h \
|
---|
| 322 | src/runtime/seamless/UIMachineWindowSeamless.h \
|
---|
| 323 | src/selector/UIActionPoolSelector.h \
|
---|
| 324 | src/selector/UIVMDesktop.h \
|
---|
| 325 | src/selector/UIVMItem.h \
|
---|
| 326 | src/selector/UIVMListView.h \
|
---|
| 327 | src/selector/UIVMPreviewWindow.h \
|
---|
| 328 | src/selector/UIVirtualBoxEventHandler.h \
|
---|
[38977] | 329 | src/selector/UISelectorWindow.h \
|
---|
[38704] | 330 | src/selector/VBoxSnapshotsWgt.h \
|
---|
[42526] | 331 | src/selector/graphics/chooser/UIGChooser.h \
|
---|
| 332 | src/selector/graphics/chooser/UIGChooserModel.h \
|
---|
| 333 | src/selector/graphics/chooser/UIGChooserView.h \
|
---|
| 334 | src/selector/graphics/chooser/UIGChooserHandlerMouse.h \
|
---|
| 335 | src/selector/graphics/chooser/UIGChooserHandlerKeyboard.h \
|
---|
| 336 | src/selector/graphics/chooser/UIGChooserItem.h \
|
---|
| 337 | src/selector/graphics/chooser/UIGChooserItemGroup.h \
|
---|
| 338 | src/selector/graphics/chooser/UIGChooserItemMachine.h \
|
---|
| 339 | src/selector/graphics/details/UIGDetails.h \
|
---|
| 340 | src/selector/graphics/details/UIGDetailsModel.h \
|
---|
| 341 | src/selector/graphics/details/UIGDetailsView.h \
|
---|
| 342 | src/selector/graphics/details/UIGDetailsItem.h \
|
---|
| 343 | src/selector/graphics/details/UIGDetailsGroup.h \
|
---|
| 344 | src/selector/graphics/details/UIGDetailsSet.h \
|
---|
| 345 | src/selector/graphics/details/UIGDetailsElement.h \
|
---|
| 346 | src/selector/graphics/details/UIGDetailsElements.h \
|
---|
| 347 | src/selector/graphics/details/UIGMachinePreview.h \
|
---|
[32667] | 348 | src/settings/UISettingsDialog.h \
|
---|
| 349 | src/settings/UISettingsDialogSpecific.h \
|
---|
[32814] | 350 | src/settings/UISettingsPage.h \
|
---|
[25171] | 351 | src/settings/VBoxSettingsSelector.h \
|
---|
[38704] | 352 | src/settings/global/UIGlobalSettingsExtension.h \
|
---|
[33882] | 353 | src/settings/global/UIGlobalSettingsGeneral.h \
|
---|
| 354 | src/settings/global/UIGlobalSettingsInput.h \
|
---|
| 355 | src/settings/global/UIGlobalSettingsLanguage.h \
|
---|
[39779] | 356 | src/settings/global/UIGlobalSettingsDisplay.h \
|
---|
[33882] | 357 | src/settings/global/UIGlobalSettingsNetwork.h \
|
---|
| 358 | src/settings/global/UIGlobalSettingsNetworkDetails.h \
|
---|
[37544] | 359 | src/settings/global/UIGlobalSettingsProxy.h \
|
---|
[38704] | 360 | src/settings/global/UIGlobalSettingsUpdate.h \
|
---|
| 361 | src/settings/machine/UIMachineSettingsAudio.h \
|
---|
| 362 | src/settings/machine/UIMachineSettingsDisplay.h \
|
---|
[33882] | 363 | src/settings/machine/UIMachineSettingsGeneral.h \
|
---|
| 364 | src/settings/machine/UIMachineSettingsNetwork.h \
|
---|
[38704] | 365 | src/settings/machine/UIMachineSettingsParallel.h \
|
---|
[33882] | 366 | src/settings/machine/UIMachineSettingsPortForwardingDlg.h \
|
---|
[38704] | 367 | src/settings/machine/UIMachineSettingsSF.h \
|
---|
| 368 | src/settings/machine/UIMachineSettingsSFDetails.h \
|
---|
[33882] | 369 | src/settings/machine/UIMachineSettingsSerial.h \
|
---|
[38704] | 370 | src/settings/machine/UIMachineSettingsStorage.h \
|
---|
| 371 | src/settings/machine/UIMachineSettingsSystem.h \
|
---|
[33882] | 372 | src/settings/machine/UIMachineSettingsUSB.h \
|
---|
| 373 | src/settings/machine/UIMachineSettingsUSBFilterDetails.h \
|
---|
[38704] | 374 | src/widgets/UIApplianceEditorWidget.h \
|
---|
| 375 | src/widgets/UIApplianceExportEditorWidget.h \
|
---|
| 376 | src/widgets/UIApplianceImportEditorWidget.h \
|
---|
[30868] | 377 | src/widgets/UIBar.h \
|
---|
[34479] | 378 | src/widgets/UIBootTable.h \
|
---|
[35730] | 379 | src/widgets/UIHotKeyEditor.h \
|
---|
[38704] | 380 | src/widgets/UILineTextEdit.h \
|
---|
[30868] | 381 | src/widgets/UIPopupBox.h \
|
---|
[34479] | 382 | src/widgets/UIProgressDialog.h \
|
---|
[30356] | 383 | src/widgets/UISpacerWidgets.h \
|
---|
| 384 | src/widgets/UISpecialControls.h \
|
---|
[25171] | 385 | src/widgets/VBoxFilePathSelectorWidget.h \
|
---|
| 386 | src/widgets/VBoxMediaComboBox.h \
|
---|
| 387 | src/widgets/VBoxMiniToolBar.h \
|
---|
| 388 | src/widgets/VBoxOSTypeSelectorButton.h \
|
---|
[41387] | 389 | src/widgets/UINameAndSystemEditor.h \
|
---|
[29794] | 390 | src/widgets/VBoxWarningPane.h \
|
---|
[42526] | 391 | src/widgets/graphics/UIGraphicsButton.h \
|
---|
| 392 | src/widgets/graphics/UIGraphicsRotatorButton.h \
|
---|
| 393 | src/widgets/graphics/UIGraphicsZoomButton.h \
|
---|
| 394 | src/widgets/graphics/UIGraphicsToolBar.h \
|
---|
[40870] | 395 | src/wizards/UIWizard.h \
|
---|
| 396 | src/wizards/UIWizardPage.h \
|
---|
| 397 | src/wizards/newvm/UIWizardNewVM.h \
|
---|
[41373] | 398 | src/wizards/newvm/UIWizardNewVMPageBasic1.h \
|
---|
[40870] | 399 | src/wizards/newvm/UIWizardNewVMPageBasic2.h \
|
---|
| 400 | src/wizards/newvm/UIWizardNewVMPageBasic3.h \
|
---|
[41021] | 401 | src/wizards/newvm/UIWizardNewVMPageExpert.h \
|
---|
[40870] | 402 | src/wizards/newvd/UIWizardNewVD.h \
|
---|
| 403 | src/wizards/newvd/UIWizardNewVDPageBasic1.h \
|
---|
| 404 | src/wizards/newvd/UIWizardNewVDPageBasic2.h \
|
---|
| 405 | src/wizards/newvd/UIWizardNewVDPageBasic3.h \
|
---|
[41021] | 406 | src/wizards/newvd/UIWizardNewVDPageExpert.h \
|
---|
[40870] | 407 | src/wizards/clonevm/UIWizardCloneVM.h \
|
---|
| 408 | src/wizards/clonevm/UIWizardCloneVMPageBasic1.h \
|
---|
| 409 | src/wizards/clonevm/UIWizardCloneVMPageBasic2.h \
|
---|
| 410 | src/wizards/clonevm/UIWizardCloneVMPageBasic3.h \
|
---|
[41021] | 411 | src/wizards/clonevm/UIWizardCloneVMPageExpert.h \
|
---|
[40870] | 412 | src/wizards/clonevd/UIWizardCloneVD.h \
|
---|
| 413 | src/wizards/clonevd/UIWizardCloneVDPageBasic1.h \
|
---|
| 414 | src/wizards/clonevd/UIWizardCloneVDPageBasic2.h \
|
---|
| 415 | src/wizards/clonevd/UIWizardCloneVDPageBasic3.h \
|
---|
| 416 | src/wizards/clonevd/UIWizardCloneVDPageBasic4.h \
|
---|
[41021] | 417 | src/wizards/clonevd/UIWizardCloneVDPageExpert.h \
|
---|
[40870] | 418 | src/wizards/exportappliance/UIWizardExportApp.h \
|
---|
| 419 | src/wizards/exportappliance/UIWizardExportAppPageBasic1.h \
|
---|
| 420 | src/wizards/exportappliance/UIWizardExportAppPageBasic2.h \
|
---|
| 421 | src/wizards/exportappliance/UIWizardExportAppPageBasic3.h \
|
---|
| 422 | src/wizards/exportappliance/UIWizardExportAppPageBasic4.h \
|
---|
[41021] | 423 | src/wizards/exportappliance/UIWizardExportAppPageExpert.h \
|
---|
[40870] | 424 | src/wizards/importappliance/UIWizardImportApp.h \
|
---|
| 425 | src/wizards/importappliance/UIWizardImportAppPageBasic1.h \
|
---|
| 426 | src/wizards/importappliance/UIWizardImportAppPageBasic2.h \
|
---|
[41021] | 427 | src/wizards/importappliance/UIWizardImportAppPageExpert.h \
|
---|
[40870] | 428 | src/wizards/firstrun/UIWizardFirstRun.h \
|
---|
[41373] | 429 | src/wizards/firstrun/UIWizardFirstRunPageBasic.h
|
---|
[382] | 430 |
|
---|
[32835] | 431 | VirtualBox_QT_MOCHDRS.darwin += \
|
---|
[34401] | 432 | src/platform/darwin/UIWindowMenuManager.h
|
---|
[32835] | 433 |
|
---|
[10293] | 434 | # Sources containing local definitions of classes that use the Q_OBJECT macro.
|
---|
[16174] | 435 | VirtualBox_QT_MOCSRCS = \
|
---|
[38973] | 436 | src/UIVMLogViewer.cpp \
|
---|
[38704] | 437 | src/extensions/QISplitter.cpp \
|
---|
[42526] | 438 | src/extensions/QIAdvancedToolBar.cpp \
|
---|
[38704] | 439 | src/globals/UIActionPool.cpp \
|
---|
[30868] | 440 | src/globals/UIExtraDataEventHandler.cpp \
|
---|
[41616] | 441 | src/medium/UIMediumManager.cpp \
|
---|
[39337] | 442 | src/net/UIUpdateManager.cpp \
|
---|
[38348] | 443 | src/runtime/UIActionPoolRuntime.cpp \
|
---|
[26637] | 444 | src/runtime/UIIndicatorsPool.cpp \
|
---|
| 445 | src/runtime/UIMachine.cpp \
|
---|
[37331] | 446 | src/runtime/UIMachineMenuBar.cpp \
|
---|
[38902] | 447 | src/selector/UIActionPoolSelector.cpp \
|
---|
[38704] | 448 | src/selector/UIVMDesktop.cpp \
|
---|
| 449 | src/settings/UISettingsDialogSpecific.cpp \
|
---|
| 450 | src/settings/machine/UIMachineSettingsPortForwardingDlg.cpp \
|
---|
| 451 | src/settings/machine/UIMachineSettingsStorage.cpp \
|
---|
[41591] | 452 | src/settings/machine/UIMachineSettingsUSB.cpp \
|
---|
[40870] | 453 | src/wizards/importappliance/UIWizardImportApp.cpp
|
---|
[30023] | 454 |
|
---|
[32835] | 455 | VirtualBox_QT_MOCSRCS.darwin += \
|
---|
[34401] | 456 | src/platform/darwin/UIWindowMenuManager.cpp
|
---|
[32835] | 457 | VirtualBox_QT_MOCSRCS.win += \
|
---|
| 458 | src/extensions/QIFileDialog.cpp
|
---|
[32789] | 459 |
|
---|
[3405] | 460 | ifdef VBOX_WITH_XPCOM
|
---|
[16174] | 461 | VirtualBox_QT_MOCSRCS += \
|
---|
[25171] | 462 | src/globals/COMDefs.cpp
|
---|
[382] | 463 | endif
|
---|
| 464 |
|
---|
[16174] | 465 | VirtualBox_SOURCES = \
|
---|
[41615] | 466 | src/main.cpp \
|
---|
[38704] | 467 | src/UIMediumTypeChangeDialog.cpp \
|
---|
[25171] | 468 | src/VBoxAboutDlg.cpp \
|
---|
| 469 | src/VBoxGlobalSettings.cpp \
|
---|
[38704] | 470 | src/VBoxLicenseViewer.cpp \
|
---|
[25171] | 471 | src/VBoxSnapshotDetailsDlg.cpp \
|
---|
| 472 | src/VBoxTakeSnapshotDlg.cpp \
|
---|
[7669] | 473 | src/VBoxVMInformationDlg.cpp \
|
---|
[38973] | 474 | src/UIVMLogViewer.cpp \
|
---|
[41819] | 475 | src/converter/UIConverter.cpp \
|
---|
| 476 | src/converter/UIConverterBackendCOM.cpp \
|
---|
| 477 | src/converter/UIConverterBackendGlobal.cpp \
|
---|
[25171] | 478 | src/extensions/QIAdvancedSlider.cpp \
|
---|
| 479 | src/extensions/QIArrowButtonPress.cpp \
|
---|
| 480 | src/extensions/QIArrowButtonSwitch.cpp \
|
---|
| 481 | src/extensions/QIArrowSplitter.cpp \
|
---|
| 482 | src/extensions/QIDialog.cpp \
|
---|
| 483 | src/extensions/QIDialogButtonBox.cpp \
|
---|
| 484 | src/extensions/QIFileDialog.cpp \
|
---|
| 485 | src/extensions/QILabel.cpp \
|
---|
| 486 | src/extensions/QILabelSeparator.cpp \
|
---|
| 487 | src/extensions/QILineEdit.cpp \
|
---|
| 488 | src/extensions/QIListView.cpp \
|
---|
| 489 | src/extensions/QIMainDialog.cpp \
|
---|
| 490 | src/extensions/QIMessageBox.cpp \
|
---|
[41590] | 491 | src/extensions/QIProcess.cpp \
|
---|
[40043] | 492 | src/extensions/QIRichTextLabel.cpp \
|
---|
[25171] | 493 | src/extensions/QIRichToolButton.cpp \
|
---|
| 494 | src/extensions/QISplitter.cpp \
|
---|
| 495 | src/extensions/QIStateIndicator.cpp \
|
---|
| 496 | src/extensions/QIStatusBar.cpp \
|
---|
[31533] | 497 | src/extensions/QITableView.cpp \
|
---|
[39593] | 498 | src/extensions/QITextEdit.cpp \
|
---|
[25171] | 499 | src/extensions/QITreeView.cpp \
|
---|
| 500 | src/extensions/QITreeWidget.cpp \
|
---|
| 501 | src/extensions/QIWidgetValidator.cpp \
|
---|
[42526] | 502 | src/extensions/QIAdvancedToolBar.cpp \
|
---|
| 503 | src/extensions/graphics/QIGraphicsWidget.cpp \
|
---|
[41689] | 504 | src/globals/UIDefs.cpp \
|
---|
[38704] | 505 | src/globals/COMDefs.cpp \
|
---|
| 506 | src/globals/UIActionPool.cpp \
|
---|
| 507 | src/globals/UIExtraDataEventHandler.cpp \
|
---|
| 508 | src/globals/UIIconPool.cpp \
|
---|
| 509 | src/globals/UIImageTools.cpp \
|
---|
| 510 | src/globals/UIMainEventListener.cpp \
|
---|
| 511 | src/globals/UIMessageCenter.cpp \
|
---|
| 512 | src/globals/VBoxGlobal.cpp \
|
---|
[41615] | 513 | src/medium/UIMediumDefs.cpp \
|
---|
| 514 | src/medium/UIMedium.cpp \
|
---|
[41616] | 515 | src/medium/UIMediumManager.cpp \
|
---|
[41440] | 516 | src/net/UINetworkManager.cpp \
|
---|
| 517 | src/net/UINetworkManagerDialog.cpp \
|
---|
[41461] | 518 | src/net/UINetworkManagerIndicator.cpp \
|
---|
[41440] | 519 | src/net/UINetworkRequest.cpp \
|
---|
| 520 | src/net/UINetworkRequestWidget.cpp \
|
---|
| 521 | src/net/UINetworkCustomer.cpp \
|
---|
[38704] | 522 | src/net/UIDownloader.cpp \
|
---|
| 523 | src/net/UIDownloaderAdditions.cpp \
|
---|
| 524 | src/net/UIDownloaderExtensionPack.cpp \
|
---|
| 525 | src/net/UIDownloaderUserManual.cpp \
|
---|
[38476] | 526 | src/net/UIUpdateDefs.cpp \
|
---|
| 527 | src/net/UIUpdateManager.cpp \
|
---|
[38348] | 528 | src/runtime/UIActionPoolRuntime.cpp \
|
---|
[32483] | 529 | src/runtime/UIConsoleEventHandler.cpp \
|
---|
[26637] | 530 | src/runtime/UIFrameBuffer.cpp \
|
---|
[26797] | 531 | src/runtime/UIFrameBufferQGL.cpp \
|
---|
[26823] | 532 | src/runtime/UIFrameBufferQImage.cpp \
|
---|
[26822] | 533 | src/runtime/UIFrameBufferSDL.cpp \
|
---|
[32483] | 534 | src/runtime/UIIndicatorsPool.cpp \
|
---|
| 535 | src/runtime/UIKeyboardHandler.cpp \
|
---|
| 536 | src/runtime/UIMachine.cpp \
|
---|
[26637] | 537 | src/runtime/UIMachineLogic.cpp \
|
---|
[32483] | 538 | src/runtime/UIMachineMenuBar.cpp \
|
---|
[35634] | 539 | src/runtime/UIMachineShortcuts.cpp \
|
---|
[32483] | 540 | src/runtime/UIMachineView.cpp \
|
---|
[26637] | 541 | src/runtime/UIMachineWindow.cpp \
|
---|
[32483] | 542 | src/runtime/UIMouseHandler.cpp \
|
---|
[27335] | 543 | src/runtime/UIMultiScreenLayout.cpp \
|
---|
[32483] | 544 | src/runtime/UISession.cpp \
|
---|
| 545 | src/runtime/UIVMCloseDialog.cpp \
|
---|
| 546 | src/runtime/fullscreen/UIKeyboardHandlerFullscreen.cpp \
|
---|
| 547 | src/runtime/fullscreen/UIMachineLogicFullscreen.cpp \
|
---|
| 548 | src/runtime/fullscreen/UIMachineViewFullscreen.cpp \
|
---|
| 549 | src/runtime/fullscreen/UIMachineWindowFullscreen.cpp \
|
---|
[30637] | 550 | src/runtime/normal/UIKeyboardHandlerNormal.cpp \
|
---|
[26637] | 551 | src/runtime/normal/UIMachineLogicNormal.cpp \
|
---|
[32483] | 552 | src/runtime/normal/UIMachineViewNormal.cpp \
|
---|
[26637] | 553 | src/runtime/normal/UIMachineWindowNormal.cpp \
|
---|
[32483] | 554 | src/runtime/scale/UIKeyboardHandlerScale.cpp \
|
---|
| 555 | src/runtime/scale/UIMachineLogicScale.cpp \
|
---|
| 556 | src/runtime/scale/UIMachineViewScale.cpp \
|
---|
| 557 | src/runtime/scale/UIMachineWindowScale.cpp \
|
---|
[30637] | 558 | src/runtime/seamless/UIKeyboardHandlerSeamless.cpp \
|
---|
[27012] | 559 | src/runtime/seamless/UIMachineLogicSeamless.cpp \
|
---|
[30753] | 560 | src/runtime/seamless/UIMachineViewSeamless.cpp \
|
---|
[38704] | 561 | src/runtime/seamless/UIMachineWindowSeamless.cpp \
|
---|
| 562 | src/selector/UIActionPoolSelector.cpp \
|
---|
| 563 | src/selector/UISelectorShortcuts.cpp \
|
---|
| 564 | src/selector/UIVMDesktop.cpp \
|
---|
| 565 | src/selector/UIVMItem.cpp \
|
---|
| 566 | src/selector/UIVMListView.cpp \
|
---|
| 567 | src/selector/UIVMPreviewWindow.cpp \
|
---|
| 568 | src/selector/UIVirtualBoxEventHandler.cpp \
|
---|
[38977] | 569 | src/selector/UISelectorWindow.cpp \
|
---|
[42526] | 570 | src/selector/graphics/chooser/UIGChooser.cpp \
|
---|
| 571 | src/selector/graphics/chooser/UIGChooserModel.cpp \
|
---|
| 572 | src/selector/graphics/chooser/UIGChooserView.cpp \
|
---|
| 573 | src/selector/graphics/chooser/UIGChooserHandlerMouse.cpp \
|
---|
| 574 | src/selector/graphics/chooser/UIGChooserHandlerKeyboard.cpp \
|
---|
| 575 | src/selector/graphics/chooser/UIGChooserItem.cpp \
|
---|
| 576 | src/selector/graphics/chooser/UIGChooserItemGroup.cpp \
|
---|
| 577 | src/selector/graphics/chooser/UIGChooserItemMachine.cpp \
|
---|
| 578 | src/selector/graphics/details/UIGDetails.cpp \
|
---|
| 579 | src/selector/graphics/details/UIGDetailsModel.cpp \
|
---|
| 580 | src/selector/graphics/details/UIGDetailsView.cpp \
|
---|
| 581 | src/selector/graphics/details/UIGDetailsItem.cpp \
|
---|
| 582 | src/selector/graphics/details/UIGDetailsGroup.cpp \
|
---|
| 583 | src/selector/graphics/details/UIGDetailsSet.cpp \
|
---|
| 584 | src/selector/graphics/details/UIGDetailsElement.cpp \
|
---|
| 585 | src/selector/graphics/details/UIGDetailsElements.cpp \
|
---|
| 586 | src/selector/graphics/details/UIGMachinePreview.cpp \
|
---|
[38704] | 587 | src/selector/VBoxSnapshotsWgt.cpp \
|
---|
| 588 | src/settings/UISettingsDefs.cpp \
|
---|
| 589 | src/settings/UISettingsDialog.cpp \
|
---|
| 590 | src/settings/UISettingsDialogSpecific.cpp \
|
---|
| 591 | src/settings/UISettingsPage.cpp \
|
---|
| 592 | src/settings/VBoxSettingsSelector.cpp \
|
---|
| 593 | src/settings/global/UIGlobalSettingsExtension.cpp \
|
---|
| 594 | src/settings/global/UIGlobalSettingsGeneral.cpp \
|
---|
| 595 | src/settings/global/UIGlobalSettingsInput.cpp \
|
---|
| 596 | src/settings/global/UIGlobalSettingsLanguage.cpp \
|
---|
[39779] | 597 | src/settings/global/UIGlobalSettingsDisplay.cpp \
|
---|
[38704] | 598 | src/settings/global/UIGlobalSettingsNetwork.cpp \
|
---|
| 599 | src/settings/global/UIGlobalSettingsNetworkDetails.cpp \
|
---|
| 600 | src/settings/global/UIGlobalSettingsProxy.cpp \
|
---|
| 601 | src/settings/global/UIGlobalSettingsUpdate.cpp \
|
---|
| 602 | src/settings/machine/UIMachineSettingsAudio.cpp \
|
---|
| 603 | src/settings/machine/UIMachineSettingsDisplay.cpp \
|
---|
| 604 | src/settings/machine/UIMachineSettingsGeneral.cpp \
|
---|
| 605 | src/settings/machine/UIMachineSettingsNetwork.cpp \
|
---|
| 606 | src/settings/machine/UIMachineSettingsParallel.cpp \
|
---|
| 607 | src/settings/machine/UIMachineSettingsPortForwardingDlg.cpp \
|
---|
| 608 | src/settings/machine/UIMachineSettingsSF.cpp \
|
---|
| 609 | src/settings/machine/UIMachineSettingsSFDetails.cpp \
|
---|
| 610 | src/settings/machine/UIMachineSettingsSerial.cpp \
|
---|
| 611 | src/settings/machine/UIMachineSettingsStorage.cpp \
|
---|
| 612 | src/settings/machine/UIMachineSettingsSystem.cpp \
|
---|
| 613 | src/settings/machine/UIMachineSettingsUSB.cpp \
|
---|
| 614 | src/settings/machine/UIMachineSettingsUSBFilterDetails.cpp \
|
---|
| 615 | src/widgets/UIApplianceEditorWidget.cpp \
|
---|
| 616 | src/widgets/UIApplianceExportEditorWidget.cpp \
|
---|
| 617 | src/widgets/UIApplianceImportEditorWidget.cpp \
|
---|
| 618 | src/widgets/UIBar.cpp \
|
---|
| 619 | src/widgets/UIBootTable.cpp \
|
---|
| 620 | src/widgets/UIHotKeyEditor.cpp \
|
---|
| 621 | src/widgets/UILineTextEdit.cpp \
|
---|
| 622 | src/widgets/UIPopupBox.cpp \
|
---|
| 623 | src/widgets/UIProgressDialog.cpp \
|
---|
| 624 | src/widgets/UISpecialControls.cpp \
|
---|
| 625 | src/widgets/UIToolBar.cpp \
|
---|
| 626 | src/widgets/VBoxFilePathSelectorWidget.cpp \
|
---|
| 627 | src/widgets/VBoxGuestRAMSlider.cpp \
|
---|
| 628 | src/widgets/VBoxMediaComboBox.cpp \
|
---|
| 629 | src/widgets/VBoxMiniToolBar.cpp \
|
---|
| 630 | src/widgets/VBoxOSTypeSelectorButton.cpp \
|
---|
[41387] | 631 | src/widgets/UINameAndSystemEditor.cpp \
|
---|
[38704] | 632 | src/widgets/VBoxWarningPane.cpp \
|
---|
[42526] | 633 | src/widgets/graphics/UIGraphicsButton.cpp \
|
---|
| 634 | src/widgets/graphics/UIGraphicsRotatorButton.cpp \
|
---|
| 635 | src/widgets/graphics/UIGraphicsZoomButton.cpp \
|
---|
| 636 | src/widgets/graphics/UIGraphicsToolBar.cpp \
|
---|
[40870] | 637 | src/wizards/UIWizard.cpp \
|
---|
| 638 | src/wizards/UIWizardPage.cpp \
|
---|
| 639 | src/wizards/newvm/UIWizardNewVM.cpp \
|
---|
[41373] | 640 | src/wizards/newvm/UIWizardNewVMPageBasic1.cpp \
|
---|
[40870] | 641 | src/wizards/newvm/UIWizardNewVMPageBasic2.cpp \
|
---|
| 642 | src/wizards/newvm/UIWizardNewVMPageBasic3.cpp \
|
---|
[41021] | 643 | src/wizards/newvm/UIWizardNewVMPageExpert.cpp \
|
---|
[40870] | 644 | src/wizards/newvd/UIWizardNewVD.cpp \
|
---|
| 645 | src/wizards/newvd/UIWizardNewVDPageBasic1.cpp \
|
---|
| 646 | src/wizards/newvd/UIWizardNewVDPageBasic2.cpp \
|
---|
| 647 | src/wizards/newvd/UIWizardNewVDPageBasic3.cpp \
|
---|
[41021] | 648 | src/wizards/newvd/UIWizardNewVDPageExpert.cpp \
|
---|
[40870] | 649 | src/wizards/clonevm/UIWizardCloneVM.cpp \
|
---|
| 650 | src/wizards/clonevm/UIWizardCloneVMPageBasic1.cpp \
|
---|
| 651 | src/wizards/clonevm/UIWizardCloneVMPageBasic2.cpp \
|
---|
| 652 | src/wizards/clonevm/UIWizardCloneVMPageBasic3.cpp \
|
---|
[41021] | 653 | src/wizards/clonevm/UIWizardCloneVMPageExpert.cpp \
|
---|
[40870] | 654 | src/wizards/clonevd/UIWizardCloneVD.cpp \
|
---|
| 655 | src/wizards/clonevd/UIWizardCloneVDPageBasic1.cpp \
|
---|
| 656 | src/wizards/clonevd/UIWizardCloneVDPageBasic2.cpp \
|
---|
| 657 | src/wizards/clonevd/UIWizardCloneVDPageBasic3.cpp \
|
---|
| 658 | src/wizards/clonevd/UIWizardCloneVDPageBasic4.cpp \
|
---|
[41021] | 659 | src/wizards/clonevd/UIWizardCloneVDPageExpert.cpp \
|
---|
[40870] | 660 | src/wizards/exportappliance/UIWizardExportApp.cpp \
|
---|
| 661 | src/wizards/exportappliance/UIWizardExportAppPageBasic1.cpp \
|
---|
| 662 | src/wizards/exportappliance/UIWizardExportAppPageBasic2.cpp \
|
---|
| 663 | src/wizards/exportappliance/UIWizardExportAppPageBasic3.cpp \
|
---|
| 664 | src/wizards/exportappliance/UIWizardExportAppPageBasic4.cpp \
|
---|
[41021] | 665 | src/wizards/exportappliance/UIWizardExportAppPageExpert.cpp \
|
---|
[40870] | 666 | src/wizards/importappliance/UIWizardImportApp.cpp \
|
---|
| 667 | src/wizards/importappliance/UIWizardImportAppPageBasic1.cpp \
|
---|
| 668 | src/wizards/importappliance/UIWizardImportAppPageBasic2.cpp \
|
---|
[41021] | 669 | src/wizards/importappliance/UIWizardImportAppPageExpert.cpp \
|
---|
[40870] | 670 | src/wizards/firstrun/UIWizardFirstRun.cpp \
|
---|
[41373] | 671 | src/wizards/firstrun/UIWizardFirstRunPageBasic.cpp
|
---|
[32835] | 672 |
|
---|
[27335] | 673 | VirtualBox_SOURCES.win += \
|
---|
| 674 | src/runtime/UIFrameBufferDirectDraw.cpp
|
---|
[27215] | 675 | VirtualBox_SOURCES.darwin += \
|
---|
[34401] | 676 | src/platform/darwin/UIAbstractDockIconPreview.cpp \
|
---|
[38704] | 677 | src/platform/darwin/UICocoaDockIconPreview.mm \
|
---|
[34401] | 678 | src/platform/darwin/UIWindowMenuManager.cpp \
|
---|
[38704] | 679 | src/runtime/UIFrameBufferQuartz2D.cpp
|
---|
[382] | 680 |
|
---|
[29808] | 681 | if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) # X11
|
---|
[16174] | 682 | VirtualBox_SOURCES += \
|
---|
[38704] | 683 | src/platform/x11/UIDesktopServices_x11.cpp \
|
---|
[34401] | 684 | src/platform/x11/VBoxX11Helper.cpp \
|
---|
[38704] | 685 | src/platform/x11/XKeyboard-new.cpp
|
---|
[9105] | 686 | endif
|
---|
[4875] | 687 |
|
---|
[16174] | 688 | VirtualBox_SOURCES.win += \
|
---|
[34401] | 689 | src/platform/win/VirtualBox.rc \
|
---|
[35940] | 690 | src/platform/win/UIDesktopServices_win.cpp \
|
---|
| 691 | src/platform/win/VBoxUtils-win.cpp
|
---|
[382] | 692 |
|
---|
[34401] | 693 | VirtualBox_DEFS.darwin += VBOX_DARWIN_USE_NATIVE_CONTROLS
|
---|
[27215] | 694 | VirtualBox_SOURCES.darwin += \
|
---|
[38704] | 695 | src/platform/darwin/CocoaEventHelper.mm \
|
---|
[34401] | 696 | src/platform/darwin/DarwinKeyboard.cpp \
|
---|
| 697 | src/platform/darwin/UICocoaApplication.mm \
|
---|
| 698 | src/platform/darwin/UICocoaSpecialControls.mm \
|
---|
| 699 | src/platform/darwin/UIDesktopServices_darwin.cpp \
|
---|
[38704] | 700 | src/platform/darwin/UIDesktopServices_darwin_cocoa.mm \
|
---|
| 701 | src/platform/darwin/VBoxUtils-darwin-cocoa.mm \
|
---|
| 702 | src/platform/darwin/VBoxUtils-darwin.cpp
|
---|
[34401] | 703 | VirtualBox_QT_MOCHDRS.darwin += \
|
---|
| 704 | src/platform/darwin/UICocoaSpecialControls.h
|
---|
[1285] | 705 |
|
---|
[7177] | 706 | ifdef VBOX_WITH_ICHAT_THEATER
|
---|
[16174] | 707 | VirtualBox_SOURCES.darwin += \
|
---|
[38973] | 708 | src/platform/darwin/VBoxIChatTheaterWrapper.m
|
---|
[7177] | 709 | endif
|
---|
| 710 |
|
---|
[32758] | 711 | ifdef VBOX_GUI_WITH_SYSTRAY
|
---|
| 712 | VirtualBox_DEFS += VBOX_GUI_WITH_SYSTRAY
|
---|
| 713 | VirtualBox_QT_MOCHDRS += \
|
---|
| 714 | src/selector/VBoxTrayIcon.h
|
---|
| 715 | VirtualBox_SOURCES += \
|
---|
| 716 | src/selector/VBoxTrayIcon.cpp
|
---|
| 717 | endif
|
---|
| 718 |
|
---|
[22099] | 719 | if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
|
---|
[20243] | 720 | VirtualBox_SOURCES += \
|
---|
[38973] | 721 | src/VBoxFBOverlay.cpp \
|
---|
| 722 | src/VBoxFBQGL.cpp \
|
---|
| 723 | src/VBoxGLSupportInfo.cpp
|
---|
[20243] | 724 | endif
|
---|
[38704] | 725 |
|
---|
[39451] | 726 | ifdef VBOX_WITH_DRAG_AND_DROP
|
---|
| 727 | VirtualBox_SOURCES += \
|
---|
| 728 | src/runtime/UIDnDHandler.cpp
|
---|
| 729 | VirtualBox_QT_MOCSRCS += \
|
---|
| 730 | src/runtime/UIDnDHandler.cpp
|
---|
| 731 | endif
|
---|
| 732 |
|
---|
[10597] | 733 | # The Qt modules we're using.
|
---|
| 734 | # (The include directory and lib/framework for each module will be added by the Qt4 unit.)
|
---|
[16174] | 735 | VirtualBox_QT_MODULES = Core Gui Network
|
---|
[22099] | 736 | if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
|
---|
[29808] | 737 | VirtualBox_QT_MODULES += OpenGL
|
---|
[20242] | 738 | endif
|
---|
| 739 |
|
---|
[38704] | 740 | # Pull in the ui files
|
---|
[16174] | 741 | $(eval VirtualBox_SOURCES += $(FORMS))
|
---|
[10580] | 742 |
|
---|
[12519] | 743 | # Resource files with some OSE differences (VirtualBoxBrand.qrc is created further down).
|
---|
[38704] | 744 | VirtualBox_SOURCES += VirtualBox1.qrc
|
---|
| 745 | VirtualBox1.qrc_RCCFLAGS = -name BASIC1
|
---|
| 746 | VirtualBox_SOURCES += VirtualBox2.qrc
|
---|
| 747 | VirtualBox2.qrc_RCCFLAGS = -name BASIC2
|
---|
[26187] | 748 | ifeq ($(KBUILD_TARGET),darwin)
|
---|
[38704] | 749 | VirtualBox_SOURCES += VirtualBoxMac.qrc
|
---|
| 750 | VirtualBoxMac.qrc_RCCFLAGS = -name MAC
|
---|
[26537] | 751 | else
|
---|
| 752 | VirtualBox_SOURCES += VirtualBoxOther.qrc
|
---|
[38704] | 753 | VirtualBoxOther.qrc_RCCFLAGS = -name OTHER
|
---|
[26187] | 754 | endif
|
---|
[16174] | 755 | VirtualBox_SOURCES += $(VBOX_VIRTUALBOX4_OUT_DIR)/VirtualBoxBrand.qrc
|
---|
[12580] | 756 | $(VBOX_VIRTUALBOX4_OUT_DIR)/VirtualBoxBrand.qrc_RCCFLAGS = -name BRAND
|
---|
[22099] | 757 | if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
|
---|
[26736] | 758 | VirtualBox_SOURCES += VirtualBoxShaders.qrc
|
---|
| 759 | VirtualBoxShaders.qrc_RCCFLAGS = -name SHADERS
|
---|
[21939] | 760 | endif
|
---|
[22904] | 761 |
|
---|
[10597] | 762 | # Import the translation source from VBoxUI.pro and add the qt_xx_YY counterparts
|
---|
[16174] | 763 | VirtualBox_QT_TRANSLATIONS := $(TRANSLATIONS) \
|
---|
[10597] | 764 | $(patsubst nls/VirtualBox_%.ts,nls/qt_%.ts, $(filter nls/VirtualBox_%.ts,$(TRANSLATIONS)))
|
---|
| 765 | # Compress the translation units.
|
---|
[16174] | 766 | VirtualBox_LRCFLAGS = -silent
|
---|
| 767 | # Where to install the translations (a separate install target, VirtualBox-nls-inst is created).
|
---|
| 768 | VirtualBox_QT_TRANSLATIONS_INST = $(INST_BIN)nls/
|
---|
[10488] | 769 |
|
---|
[10344] | 770 |
|
---|
[10293] | 771 | ## @todo how to detect what tool is used?
|
---|
| 772 | ## @todo GCC3 seems to lack -Wno-missing-base-class-initializer, so we use
|
---|
| 773 | # more generic -Wno-extra
|
---|
| 774 | # bird: What about $(if $(VBOX_GCC_Wno-missing-base-class-initializer),$(VBOX_GCC_Wno-missing-base-class-initializer),$(VBOX_GCC_Wno-extra))?
|
---|
| 775 | ifdef VBOX_WITH_XPCOM
|
---|
[25171] | 776 | VirtualBox_src/globals/COMDefs.cpp_CXXFLAGS = $(VBOX_GCC_Wno-extra)
|
---|
[10293] | 777 | endif
|
---|
| 778 |
|
---|
| 779 |
|
---|
[12256] | 780 | #
|
---|
| 781 | # Generate the COM wrappers.
|
---|
| 782 | #
|
---|
[41631] | 783 | includedep $(PATH_TARGET)/VirtualBoxComWrapperFiles.dep
|
---|
[35380] | 784 | VirtualBox_BLDDIRS += $(VirtualBox_0_OUTDIR)/include
|
---|
[41626] | 785 | VirtualBox_INTERMEDIATES += $(VirtualBox_0_OUTDIR)/include/COMWrappers
|
---|
[41631] | 786 | VirtualBox_CLEAN += $(wildcard $(VirtualBox_0_OUTDIR)/include/*) $(PATH_TARGET)/VirtualBoxComWrapperFiles.dep
|
---|
[35380] | 787 | VirtualBox_SOURCES += $(VirtualBox_0_OUTDIR)/include/COMWrappers.cpp
|
---|
[10293] | 788 |
|
---|
[41625] | 789 | ## @todo kmk doesn't remake optional outputs when they are missing...
|
---|
[35380] | 790 | $$(VirtualBox_0_OUTDIR)/include/COMWrappers \
|
---|
[41631] | 791 | + $(PATH_TARGET)/VirtualBoxComWrapperFiles.dep \
|
---|
[41632] | 792 | +| $(if-expr defined(VirtualBox_VBOX_COMWRAPPERS) \
|
---|
[41631] | 793 | , $(VirtualBox_VBOX_COMWRAPPERS) \
|
---|
| 794 | , $$(VirtualBox_0_OUTDIR)/include/COMEnums.h \
|
---|
| 795 | $$(VirtualBox_0_OUTDIR)/include/COMWrappers.cpp \
|
---|
| 796 | ): \
|
---|
[16676] | 797 | $(VBOX_XIDL_FILE) \
|
---|
[25171] | 798 | $(VBOX_VIRTUALBOX4_SRC)/src/globals/COMWrappers.xsl \
|
---|
[41588] | 799 | $(VBOX_FILESPLIT) \
|
---|
[12256] | 800 | | $$(dir $$@)
|
---|
[16174] | 801 | $(call MSG_GENERATE,VirtualBox,$<,$@)
|
---|
[41631] | 802 | $(QUIET)$(RM) -f -- "$@" "$(PATH_TARGET)/VirtualBoxComWrapperFiles.dep"
|
---|
[25171] | 803 | $(QUIET)$(VBOX_XSLTPROC) -o $@ $(VBOX_VIRTUALBOX4_SRC)/src/globals/COMWrappers.xsl $<
|
---|
[41631] | 804 | $(QUIET)$(VBOX_FILESPLIT) $@ $(VirtualBox_0_OUTDIR)/include \
|
---|
| 805 | $(PATH_TARGET)/VirtualBoxComWrapperFiles.dep VirtualBox_VBOX_COMWRAPPERS
|
---|
| 806 | $(APPEND) "$@"
|
---|
[12256] | 807 |
|
---|
[14571] | 808 | # alias for generating the COM Wrappers file.
|
---|
[41621] | 809 | testwrappers:: $$(VirtualBox_0_OUTDIR)/include/COMWrappers
|
---|
[14571] | 810 |
|
---|
| 811 |
|
---|
[12491] | 812 | #
|
---|
| 813 | # Generate qrc file with branded icons.
|
---|
| 814 | #
|
---|
[16174] | 815 | VirtualBox_BLDDIRS += $(VBOX_VIRTUALBOX4_OUT_DIR)
|
---|
| 816 | VirtualBox_CLEAN += $(VBOX_VIRTUALBOX4_OUT_DIR)/VirtualBoxBrand.qrc
|
---|
[12519] | 817 | $(VBOX_VIRTUALBOX4_OUT_DIR)/VirtualBoxBrand.qrc: \
|
---|
| 818 | $(VBOX_VIRTUALBOX4_SRC)/VirtualBoxBrand.qrc \
|
---|
| 819 | | $$(dir $$@)
|
---|
[16174] | 820 | $(call MSG_GENERATE,VirtualBox,$<,$@)
|
---|
[12484] | 821 | $(QUIET)$(SED) \
|
---|
[26737] | 822 | -e 's;@VBOX_ABOUT_PNG@;$(VBOX_BRAND_GUI_ABOUT_PNG);g' \
|
---|
| 823 | -e 's;@VBOX_ABOUT_16PX_PNG@;$(VBOX_BRAND_GUI_ABOUT_16PX_PNG);g' \
|
---|
| 824 | -e 's;@VBOX_VBOX_16PX_PNG@;$(VBOX_BRAND_GUI_VBOX_16PX_PNG);g' \
|
---|
| 825 | -e 's;@VBOX_VBOX_20PX_PNG@;$(VBOX_BRAND_GUI_VBOX_20PX_PNG);g' \
|
---|
| 826 | -e 's;@VBOX_VBOX_32PX_PNG@;$(VBOX_BRAND_GUI_VBOX_32PX_PNG);g' \
|
---|
| 827 | -e 's;@VBOX_VBOX_40PX_PNG@;$(VBOX_BRAND_GUI_VBOX_40PX_PNG);g' \
|
---|
| 828 | -e 's;@VBOX_VBOX_48PX_PNG@;$(VBOX_BRAND_GUI_VBOX_48PX_PNG);g' \
|
---|
| 829 | -e 's;@VBOX_VBOX_64PX_PNG@;$(VBOX_BRAND_GUI_VBOX_64PX_PNG);g' \
|
---|
| 830 | -e 's;@VBOX_CUBE_42PX_PNG@;$(VBOX_BRAND_GUI_CUBE_42PX_PNG);g' \
|
---|
[12491] | 831 | --output $@ \
|
---|
| 832 | $<
|
---|
[12484] | 833 |
|
---|
[12256] | 834 |
|
---|
[25526] | 835 | #
|
---|
| 836 | # Precompiled header - non-functional atm.
|
---|
| 837 | #
|
---|
| 838 | ifdef VBOX_WITH_PRECOMPILED_HEADERS
|
---|
| 839 | VirtualBox_INCS <= $(VirtualBox_0_OUTDIR)/include
|
---|
| 840 | VirtualBox_DEFS += VBOX_WITH_PRECOMPILED_HEADERS
|
---|
[26187] | 841 | VirtualBox_CXXFLAGS += -Winvalid-pch -fpch-preprocess
|
---|
[25526] | 842 | VirtualBox_INTERMEDIATES += $(VirtualBox_0_OUTDIR)/include/precomp.h.gch
|
---|
| 843 |
|
---|
| 844 | tstx: $$(VirtualBox_0_OUTDIR)/include/precomp.h.gch
|
---|
| 845 |
|
---|
| 846 | $$(VirtualBox_0_OUTDIR)/include/precomp.h.gch: \
|
---|
| 847 | $(PATH_SUB_CURRENT)/src/precomp.h \
|
---|
| 848 | $$(VirtualBox_0_OUTDIR)/include/COMWrappers.h \
|
---|
| 849 | $$(filter %.gen.h, $$(VirtualBox_INTERMEDIATES) ) \
|
---|
| 850 | $(VBOX_PATH_SDK)/bindings/xpcom/include/VirtualBox_XPCOM.h \
|
---|
| 851 | | $$(dir $$@)
|
---|
| 852 | time 'g++-4.0' \
|
---|
| 853 | '-c' \
|
---|
| 854 | '-g' \
|
---|
| 855 | $(if-expr "$(KBUILD_TYPE)" == "debug", , -O2 ) \
|
---|
| 856 | '-pipe' \
|
---|
| 857 | '-Wall' \
|
---|
| 858 | '-Wextra' \
|
---|
| 859 | '-Wno-missing-field-initializers' \
|
---|
| 860 | '-Wno-trigraphs' \
|
---|
| 861 | '-frtti' \
|
---|
| 862 | '-fno-exceptions' \
|
---|
| 863 | '-Wno-non-virtual-dtor' \
|
---|
| 864 | '-Wno-long-long' \
|
---|
| 865 | \
|
---|
| 866 | '-fshort-wchar' \
|
---|
| 867 | '-fno-strict-aliasing' \
|
---|
| 868 | '-fvisibility=hidden' \
|
---|
| 869 | '-DVBOX_HAVE_VISIBILITY_HIDDEN' \
|
---|
| 870 | '-DRT_USE_VISIBILITY_DEFAULT' \
|
---|
| 871 | '-fvisibility-inlines-hidden' \
|
---|
| 872 | '-Winvalid-pch' \
|
---|
| 873 | '-fpch-preprocess' \
|
---|
| 874 | \
|
---|
| 875 | '-F$(PATH_SDK_QT4)/Frameworks' \
|
---|
| 876 | '-mmacosx-version-min=10.5' \
|
---|
| 877 | '-isysroot' \
|
---|
| 878 | '/Developer/SDKs/MacOSX10.5.sdk' \
|
---|
| 879 | '-m32' \
|
---|
| 880 | \
|
---|
[25527] | 881 | $(foreach inc,$(VirtualBox_INCS),\$(NL)$(TAB)-I$(inc)) \
|
---|
[25526] | 882 | '-I$(PATH_ROOT)/include' \
|
---|
| 883 | '-I$(PATH_OUT)' \
|
---|
| 884 | '-DVBOX' \
|
---|
| 885 | '-DVBOX_WITH_DEBUGGER' \
|
---|
| 886 | '-DVBOX_WITH_64_BITS_GUESTS' \
|
---|
| 887 | $(if-expr "$(KBUILD_TYPE)" == "debug", '-DDEBUG' '-DDEBUG_bird' '-DDEBUG_USERNAME=bird' '-DVBOX_CHECK_STATE' ,) \
|
---|
| 888 | '-DRT_OS_DARWIN' \
|
---|
| 889 | '-D__DARWIN__' \
|
---|
| 890 | '-DRT_ARCH_X86' \
|
---|
| 891 | '-D__X86__' \
|
---|
| 892 | '-DIN_RING3' \
|
---|
| 893 | '-DQT_NO_DEBUG' \
|
---|
| 894 | '-DQT_THREAD_SUPPORT' \
|
---|
| 895 | '-DQT_SHARED' \
|
---|
| 896 | '-DHAVE_CONFIG_H' \
|
---|
| 897 | '-DHC_ARCH_BITS=32' \
|
---|
| 898 | '-DGC_ARCH_BITS=64' \
|
---|
| 899 | '-DVBOX_WITH_XPCOM' \
|
---|
| 900 | '-DVBOX_WITH_UPDATE_REQUEST' \
|
---|
| 901 | '-DVBOX_WITH_ALSA' \
|
---|
| 902 | '-DVBOX_WITH_PULSE' \
|
---|
| 903 | '-DVBOX_WITH_E1000' \
|
---|
| 904 | '-DVBOX_WITH_NETFLT' \
|
---|
| 905 | '-DVBOX_WITH_DEBUGGER_GUI' \
|
---|
| 906 | $(if-expr "$(KBUILD_TYPE)" != "release", '-DVBOX_WITH_DEBUGGER_GUI_MENU', ) \
|
---|
| 907 | '-DVBOX_WITH_VIDEOHWACCEL' \
|
---|
| 908 | '-DVBOX_GUI_USE_QGL' \
|
---|
| 909 | '-DVBOX_WITH_VIRTIO' \
|
---|
| 910 | '-DVBOX_WITH_PRECOMPILED_HEADERS' \
|
---|
| 911 | '-DVBOX_DARWIN_USE_NATIVE_CONTROLS' \
|
---|
| 912 | '-DQT_CORE_LIB' \
|
---|
| 913 | '-DQT_GUI_LIB' \
|
---|
| 914 | '-DQT_NETWORK_LIB' \
|
---|
| 915 | '-DQT_OPENGL_LIB' \
|
---|
| 916 | '-DMAC_OS_X_VERSION_MIN_REQUIRED=1050' \
|
---|
| 917 | '-DMAC_OS_X_VERSION_MAX_ALLOWED=1050' \
|
---|
| 918 | '-DVBOX_GUI_USE_QUARTZ2D' \
|
---|
| 919 | '-DVBOX_GUI_USE_QIMAGE' \
|
---|
| 920 | '-o' $@ $<
|
---|
| 921 | endif
|
---|
| 922 |
|
---|
[12259] | 923 | ifeq ($(KBUILD_TARGET),win)
|
---|
[9094] | 924 | #
|
---|
[18271] | 925 | # On Windows we'll have to generate/edit part of the resource file.
|
---|
[9094] | 926 | # The IDI_ICON1 name is Qt specific.
|
---|
| 927 | #
|
---|
[35380] | 928 | src/platform/win/VirtualBox.rc_INCS = $(VirtualBox_0_OUTDIR)
|
---|
| 929 | src/platform/win/VirtualBox.rc_DEPS = $(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc
|
---|
| 930 | src/platform/win/VirtualBox.rc_CLEAN = $(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc
|
---|
[382] | 931 |
|
---|
[35380] | 932 | $$(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc: $(MAKEFILE_CURRENT) $(VBOX_WINDOWS_ICON_FILE) | $$(dir $$@)
|
---|
[18271] | 933 | $(APPEND) -t $@ 'IDI_ICON1 ICON "$(subst /,\\,$(VBOX_WINDOWS_ICON_FILE))"'
|
---|
| 934 |
|
---|
[12259] | 935 | endif # win
|
---|
[9094] | 936 |
|
---|
| 937 |
|
---|
[12366] | 938 | ifeq ($(KBUILD_TARGET),darwin)
|
---|
[959] | 939 | #
|
---|
[12951] | 940 | # Create directories for each approved language or the application
|
---|
| 941 | # menu won't be translated.
|
---|
[12946] | 942 | #
|
---|
[16174] | 943 | INSTALLS += VirtualBox.lproj
|
---|
| 944 | VirtualBox.lproj_INST = $(INST_VIRTUALBOX)Contents/Resources/
|
---|
| 945 | VirtualBox.lproj_MODE = 755
|
---|
[25114] | 946 | VirtualBox.lproj_DIRS := $(addsuffix .lproj,$(VBOX_APPROVED_GUI_LANGUAGES))
|
---|
[12946] | 947 |
|
---|
[12829] | 948 | #
|
---|
[10625] | 949 | # On OS X (darwin) we need to install icon resources and compulsory bundle contents.
|
---|
[10293] | 950 | # The VirtualBoxVM.app helper is for launching VMs (fixes some issues with the dock).
|
---|
| 951 | #
|
---|
[16174] | 952 | INSTALLS += VirtualBox.app
|
---|
| 953 | VirtualBox.app_INST = $(INST_VIRTUALBOX)Contents/
|
---|
| 954 | VirtualBox.app_MODE = 644
|
---|
| 955 | VirtualBox.app_SOURCES = \
|
---|
[34401] | 956 | src/platform/darwin/PkgInfo \
|
---|
[35414] | 957 | $(VirtualBox.app_0_OUTDIR)/Info.plist \
|
---|
[34275] | 958 | $(VBOX_MACOSX_ICON_FILE)=>Resources/virtualbox.icns \
|
---|
[34737] | 959 | $(VBOX_BRAND_GUI_VBOX_64PX_PNG)=>Resources/virtualbox.png \
|
---|
[34275] | 960 | $(PATH_ROOT)/src/VBox/Resources/darwin/virtualbox-vbox.icns=>Resources/virtualbox-vbox.icns \
|
---|
| 961 | $(PATH_ROOT)/src/VBox/Resources/darwin/virtualbox-vbox-extpack.icns=>Resources/virtualbox-vbox-extpack.icns \
|
---|
| 962 | $(PATH_ROOT)/src/VBox/Resources/darwin/virtualbox-ovf.icns=>Resources/virtualbox-ovf.icns \
|
---|
[37551] | 963 | $(PATH_ROOT)/src/VBox/Resources/darwin/virtualbox-ova.icns=>Resources/virtualbox-ova.icns \
|
---|
| 964 | $(PATH_ROOT)/src/VBox/Resources/darwin/virtualbox-vdi.icns=>Resources/virtualbox-vdi.icns \
|
---|
| 965 | $(PATH_ROOT)/src/VBox/Resources/darwin/virtualbox-vmdk.icns=>Resources/virtualbox-vmdk.icns \
|
---|
| 966 | $(PATH_ROOT)/src/VBox/Resources/darwin/virtualbox-vhd.icns=>Resources/virtualbox-vhd.icns \
|
---|
| 967 | $(PATH_ROOT)/src/VBox/Resources/darwin/virtualbox-hdd.icns=>Resources/virtualbox-hdd.icns
|
---|
[959] | 968 |
|
---|
[35414] | 969 | $$(VirtualBox.app_0_OUTDIR)/Info.plist: $(PATH_SUB_CURRENT)/src/platform/darwin/Info.plist $(VBOX_VERSION_MK) | $$(@D)/
|
---|
[16174] | 970 | $(call MSG_GENERATE,VirtualBox.app,$<,$@)
|
---|
[2456] | 971 | $(QUIET)$(RM) -f $@
|
---|
| 972 | $(QUIET)$(SED) \
|
---|
[1397] | 973 | -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
|
---|
[959] | 974 | -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
|
---|
| 975 | -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
|
---|
| 976 | -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
|
---|
[26187] | 977 | -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
|
---|
| 978 | -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
|
---|
[26633] | 979 | -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
|
---|
[959] | 980 | $< > $@
|
---|
| 981 |
|
---|
[16174] | 982 | INSTALLS += VirtualBoxVM.app
|
---|
| 983 | VirtualBoxVM.app_INST = $(VirtualBox.app_INST)Resources/VirtualBoxVM.app/Contents/
|
---|
| 984 | VirtualBoxVM.app_MODE = 644
|
---|
| 985 | VirtualBoxVM.app_SOURCES = \
|
---|
[34401] | 986 | src/platform/darwin/VM-PkgInfo=>PkgInfo \
|
---|
[42730] | 987 | $(VirtualBoxVM.app_0_OUTDIR)/VM-Info.plist=>Info.plist \
|
---|
| 988 | $(foreach mysrc,$(VirtualBox.app_SOURCES),$(if-expr $(pos =>Resources/,$(mysrc)) > 0,$(mysrc),))
|
---|
[16174] | 989 | VirtualBoxVM.app_SYMLINKS = \
|
---|
[42730] | 990 | MacOS=>../../../MacOS/
|
---|
[2406] | 991 |
|
---|
[35380] | 992 | $$(VirtualBoxVM.app_0_OUTDIR)/VM-Info.plist: $(PATH_SUB_CURRENT)/src/platform/darwin/VM-Info.plist $(VBOX_VERSION_MK) | $$(@D)/
|
---|
[16174] | 993 | $(call MSG_GENERATE,VirtualBoxVM.app,$<,$@)
|
---|
[2456] | 994 | $(QUIET)$(RM) -f $@
|
---|
| 995 | $(QUIET)$(SED) \
|
---|
[2406] | 996 | -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
|
---|
| 997 | -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
|
---|
| 998 | -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
|
---|
| 999 | -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
|
---|
[26187] | 1000 | -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
|
---|
| 1001 | -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
|
---|
[26633] | 1002 | -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
|
---|
[5898] | 1003 | --output $@ $<
|
---|
[34275] | 1004 |
|
---|
| 1005 | PROGRAMS += vmstarter
|
---|
| 1006 | vmstarter_TEMPLATE = VBOXR3EXE
|
---|
[34401] | 1007 | vmstarter_SOURCES = src/platform/darwin/vmstarter.mm
|
---|
[34275] | 1008 | vmstarter_LDFLAGS += -framework AppKit
|
---|
| 1009 | vmstarter_INST = $(INST_BIN)vmstarter
|
---|
| 1010 |
|
---|
| 1011 | INSTALLS += vmstarter.app
|
---|
[38002] | 1012 | vmstarter.app_INST = $(VirtualBox.app_INST)Resources/vmstarter.app/Contents/
|
---|
[34275] | 1013 | vmstarter.app_MODE = 644
|
---|
| 1014 | vmstarter.app_SOURCES = \
|
---|
[34401] | 1015 | src/platform/darwin/vmstarter-PkgInfo=>PkgInfo \
|
---|
[42730] | 1016 | $(vmstarter.app_0_OUTDIR)/vmstarter-Info.plist=>Info.plist \
|
---|
| 1017 | $(foreach mysrc,$(VirtualBox.app_SOURCES),$(if-expr $(pos =>Resources/,$(mysrc)) > 0,$(mysrc),))
|
---|
[34275] | 1018 | vmstarter.app_SYMLINKS = \
|
---|
[42730] | 1019 | MacOS=>../../../MacOS \
|
---|
[34275] | 1020 |
|
---|
[35380] | 1021 | $$(vmstarter.app_0_OUTDIR)/vmstarter-Info.plist: $(PATH_SUB_CURRENT)/src/platform/darwin/vmstarter-Info.plist $(VBOX_VERSION_MK) | $$(@D)/
|
---|
[34275] | 1022 | $(call MSG_GENERATE,vmstarter.app,$<,$@)
|
---|
| 1023 | $(QUIET)$(RM) -f $@
|
---|
| 1024 | $(QUIET)$(SED) \
|
---|
| 1025 | -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
|
---|
| 1026 | -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
|
---|
| 1027 | -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
|
---|
| 1028 | -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
|
---|
| 1029 | -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
|
---|
| 1030 | -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
|
---|
| 1031 | -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
|
---|
| 1032 | --output $@ $<
|
---|
[12256] | 1033 | endif # darwin
|
---|
[2406] | 1034 |
|
---|
[23732] | 1035 | #
|
---|
| 1036 | # App for testing GL support
|
---|
| 1037 | #
|
---|
| 1038 | if defined(VBOX_WITH_VIDEOHWACCEL)
|
---|
[32833] | 1039 | if1of ($(KBUILD_TARGET), win linux freebsd)
|
---|
[23740] | 1040 | LIBRARIES += VBoxOGL2D
|
---|
| 1041 | VBoxOGL2D_TEMPLATE = VBOXR3STATIC
|
---|
| 1042 | VBoxOGL2D_USES = qt4
|
---|
| 1043 | VBoxOGL2D_SDKS = QT4
|
---|
[23746] | 1044 | 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
|
---|
[23740] | 1045 | VBoxOGL2D_QT_MODULES += OpenGL
|
---|
| 1046 | VBoxOGL2D_SOURCES = \
|
---|
[38973] | 1047 | src/VBoxGLSupportInfo.cpp
|
---|
[23746] | 1048 | VBoxOGL2D_INCS = include
|
---|
[23747] | 1049 | endif
|
---|
[23732] | 1050 | endif
|
---|
[12256] | 1051 |
|
---|
[1688] | 1052 | #
|
---|
[2311] | 1053 | # Testcase for the darwin keyboard routines.
|
---|
| 1054 | #
|
---|
| 1055 | ifdef VBOX_WITH_TESTCASES
|
---|
[30122] | 1056 | PROGRAMS.darwin += tstDarwinKeyboard
|
---|
[16696] | 1057 | tstDarwinKeyboard_NAME = tstDarwinKeyboard
|
---|
| 1058 | tstDarwinKeyboard_TEMPLATE = VBOXR3TSTEXE
|
---|
| 1059 | tstDarwinKeyboard_DEFS.x86 = USE_HID_FOR_MODIFIERS
|
---|
| 1060 | tstDarwinKeyboard_INCS = include
|
---|
| 1061 | tstDarwinKeyboard_SOURCES = \
|
---|
[34401] | 1062 | src/platform/darwin/tstDarwinKeyboard.cpp \
|
---|
| 1063 | src/platform/darwin/DarwinKeyboard.cpp
|
---|
[17070] | 1064 | tstDarwinKeyboard_SOURCES.amd64 = \
|
---|
[38973] | 1065 | src/platform/darwin/CocoaEventHelper.mm
|
---|
[16696] | 1066 | tstDarwinKeyboard_LDFLAGS = -framework IOKit -framework Carbon -framework AppKit
|
---|
| 1067 | tstDarwinKeyboard_LIBS = \
|
---|
[2311] | 1068 | $(LIB_RUNTIME)
|
---|
| 1069 | endif
|
---|
[1688] | 1070 |
|
---|
[2311] | 1071 |
|
---|
[10293] | 1072 | # Unset everything that was loaded from VBoxUI.pro.
|
---|
| 1073 | TEMPLATE := $(SAVED_TEMPLATE)
|
---|
| 1074 | SAVED_TEMPLATE :=
|
---|
| 1075 | LANGUAGE :=
|
---|
| 1076 | FORMS :=
|
---|
| 1077 | TRANSLATIONS :=
|
---|
| 1078 | IMAGES :=
|
---|
| 1079 |
|
---|
| 1080 |
|
---|
[1688] | 1081 | # Commit the magic.
|
---|
| 1082 | # (note: before custom rules that make usage of generated variables!).
|
---|
[41477] | 1083 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
[382] | 1084 |
|
---|
| 1085 | #
|
---|
[10488] | 1086 | # Update all known NLS translation (.ts) files in the nls/ subdirectory.
|
---|
| 1087 | #
|
---|
[10625] | 1088 | # NOTE: This target is intended to be run only by the GUI maintainer shortly
|
---|
[10488] | 1089 | # before a new product release. VirtualBox_xx_YY.ts is a template for new
|
---|
| 1090 | # languages and should never be actually translated or installed.
|
---|
| 1091 | #
|
---|
[38753] | 1092 | # Use the checknls target for checking again common mistakes done by the
|
---|
| 1093 | # translators.
|
---|
| 1094 | #
|
---|
[25363] | 1095 | # For Qt >= 4.6.0 it maybe necessary to add -I $(VBOX_GUI_INC_DIRS) to the
|
---|
| 1096 | # lupdate call
|
---|
| 1097 | #
|
---|
[29794] | 1098 | #VirtualBox_QT_TRANSLATIONS = nls/VirtualBox_de.ts
|
---|
[38753] | 1099 | checknls::
|
---|
| 1100 | # Check for missing :/ in image paths
|
---|
| 1101 | grep -i "src=[^:%]" $(filter-out nls/qt_%.ts,$(VirtualBox_QT_TRANSLATIONS))
|
---|
| 1102 |
|
---|
[25114] | 1103 | updatenls:: makeallnls nls/VirtualBox_en.ts
|
---|
| 1104 |
|
---|
| 1105 | makeallnls:: \
|
---|
[25363] | 1106 | $(foreach header,$(VBOX_GUI_INC_DIRS),$(wildcard $(header)/*.h)) \
|
---|
| 1107 | $(filter-out %.qrc,$(VirtualBox_SOURCES) $(VirtualBox_VBOX_EXTRA_NLS_SOURCES))
|
---|
[10488] | 1108 | $(call MSG_L1,lupdate all languages (nls/*.ts))
|
---|
| 1109 | $(QUIET)$(TOOL_QT4_LUPDATE) \
|
---|
| 1110 | $^ \
|
---|
| 1111 | -ts \
|
---|
[25114] | 1112 | $(filter-out nls/VirtualBox_en.ts,$(filter-out nls/qt_%.ts,$(VirtualBox_QT_TRANSLATIONS))) \
|
---|
[10488] | 1113 | nls/VirtualBox_xx_YY.ts
|
---|
[12829] | 1114 |
|
---|
[25114] | 1115 | # Create the English translation file. This is something special cause it will
|
---|
| 1116 | # contain the plural forms only.
|
---|
| 1117 | nls/VirtualBox_en.ts: \
|
---|
[25363] | 1118 | $(foreach header,$(VBOX_GUI_INC_DIRS),$(wildcard $(header)/*.h)) \
|
---|
| 1119 | $(filter-out %.qrc,$(VirtualBox_SOURCES) $(VirtualBox_VBOX_EXTRA_NLS_SOURCES))
|
---|
[25114] | 1120 | $(call MSG_L1,lupdate $@)
|
---|
| 1121 | $(QUIET)$(TOOL_QT4_LUPDATE) \
|
---|
| 1122 | $^ \
|
---|
| 1123 | -ts \
|
---|
| 1124 | $@
|
---|
| 1125 | $(QUIET)$(SED) -n -i -e \
|
---|
| 1126 | '/<context>/,/<\/context>/!p;/<context>/h;/<name>/H;/<message numerus="yes">/,/<\/message>/H;/<\/context>/{H;x;/<message/p}' \
|
---|
| 1127 | $@
|
---|
| 1128 |
|
---|