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