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