1 | # $Id: Makefile.kmk 39797 2012-01-18 16:25:41Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Makefile for the VirtualBox Qt GUI.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2011 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 = WINPSDK DXSDK
|
---|
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 | ifndef VBOX_WITH_COCOA_QT
|
---|
87 | VirtualBox_DEFS.darwin.x86= USE_HID_FOR_MODIFIERS
|
---|
88 | endif
|
---|
89 | VirtualBox_DEFS.freebsd = VBOX_GUI_USE_QIMAGE VBOX_GUI_USE_SDL
|
---|
90 | VirtualBox_DEFS.linux = VBOX_GUI_USE_QIMAGE VBOX_GUI_USE_SDL
|
---|
91 | VirtualBox_DEFS.netbsd = VBOX_GUI_USE_QIMAGE VBOX_GUI_USE_SDL
|
---|
92 | VirtualBox_DEFS.openbsd = VBOX_GUI_USE_QIMAGE VBOX_GUI_USE_SDL
|
---|
93 | VirtualBox_DEFS.solaris = VBOX_GUI_USE_QIMAGE #VBOX_GUI_USE_SDL
|
---|
94 | VirtualBox_DEFS.win = VBOX_GUI_USE_QIMAGE UNICODE QT_DLL
|
---|
95 | ifdef VBOX_WITH_ICHAT_THEATER
|
---|
96 | VirtualBox_DEFS.darwin += VBOX_WITH_ICHAT_THEATER
|
---|
97 | endif
|
---|
98 | ifneq ($(KBUILD_TYPE),release)
|
---|
99 | # non-release builds has some extra features.
|
---|
100 | VirtualBox_DEFS.win += VBOX_GUI_USE_DDRAW
|
---|
101 | endif
|
---|
102 | VirtualBox_DEFS += \
|
---|
103 | $(if $(VBOX_WITH_UPDATE_REQUEST),VBOX_WITH_UPDATE_REQUEST) \
|
---|
104 | $(if $(VBOX_WITH_ALSA),VBOX_WITH_ALSA) \
|
---|
105 | $(if $(VBOX_WITH_PULSE),VBOX_WITH_PULSE) \
|
---|
106 | $(if $(VBOX_WITH_SOLARIS_OSS),VBOX_WITH_SOLARIS_OSS) \
|
---|
107 | $(if $(VBOX_WITH_E1000),VBOX_WITH_E1000) \
|
---|
108 | $(if $(VBOX_WITH_NETFLT)$(eq $(KBUILD_TARGET),freebsd),VBOX_WITH_NETFLT) \
|
---|
109 | $(if $(VBOX_WITH_VDE),VBOX_WITH_VDE) \
|
---|
110 | $(if $(VBOX_WITH_UDPTUNNEL),VBOX_WITH_UDPTUNNEL) \
|
---|
111 | $(if $(VBOX_WITH_EXTPACK),VBOX_WITH_EXTPACK) \
|
---|
112 | $(if $(VBOX_WITH_EHCI),VBOX_WITH_EHCI) \
|
---|
113 | $(if $(VBOX_WITH_DRAG_AND_DROP),VBOX_WITH_DRAG_AND_DROP) \
|
---|
114 | $(if $(VBOX_WITH_CRHGSMI),VBOX_WITH_CRHGSMI) \
|
---|
115 | $(if $(VBOX_WITH_VIRTIO),VBOX_WITH_VIRTIO) \
|
---|
116 | $(if $(VBOX_WITH_WDDM),VBOX_WITH_WDDM) \
|
---|
117 | $(if $(VBOX_WITH_CROGL),VBOX_WITH_CROGL) \
|
---|
118 | $(if $(VBOX_GUI_WITH_PIDFILE),VBOX_GUI_WITH_PIDFILE) \
|
---|
119 | $(if $(VBOX_GUI_WITH_KEYS_RESET_HANDLER),VBOX_GUI_WITH_KEYS_RESET_HANDLER) \
|
---|
120 | $(if $(VBOX_GUI_WITH_CUSTOMIZATIONS1),VBOX_GUI_WITH_CUSTOMIZATIONS1)
|
---|
121 | ifdef VBOX_WITH_DEBUGGER_GUI
|
---|
122 | VirtualBox_DEFS += VBOX_WITH_DEBUGGER_GUI
|
---|
123 | if "$(KBUILD_TYPE)" != "release"
|
---|
124 | VirtualBox_DEFS += VBOX_WITH_DEBUGGER_GUI_MENU
|
---|
125 | endif
|
---|
126 | endif
|
---|
127 | ifdef VBOX_WITH_VIDEOHWACCEL
|
---|
128 | VirtualBox_DEFS += VBOX_WITH_VIDEOHWACCEL \
|
---|
129 | VBOX_GUI_USE_QGL
|
---|
130 | else ifdef VBOX_GUI_USE_QGL
|
---|
131 | VirtualBox_DEFS += VBOX_GUI_USE_QGL
|
---|
132 | endif
|
---|
133 | ifdef VBOX_BLEEDING_EDGE
|
---|
134 | VirtualBox_src/selector/UISelectorWindow.cpp_DEFS += \
|
---|
135 | VBOX_BLEEDING_EDGE=\"$(VBOX_BLEEDING_EDGE)\"
|
---|
136 | VirtualBox_src/runtime/UIMachineWindow.cpp_DEFS += \
|
---|
137 | VBOX_BLEEDING_EDGE=\"$(VBOX_BLEEDING_EDGE)\"
|
---|
138 | VirtualBox_src/VBoxAboutDlg.cpp_DEFS += \
|
---|
139 | VBOX_BLEEDING_EDGE=\"$(VBOX_BLEEDING_EDGE)\"
|
---|
140 | VirtualBox_src/main.cpp_DEFS += \
|
---|
141 | VBOX_BLEEDING_EDGE=\"$(VBOX_BLEEDING_EDGE)\"
|
---|
142 | endif
|
---|
143 |
|
---|
144 |
|
---|
145 | VBOX_GUI_INC_DIRS = \
|
---|
146 | ./src \
|
---|
147 | ./src/extensions \
|
---|
148 | ./src/globals \
|
---|
149 | ./src/net \
|
---|
150 | ./src/platform \
|
---|
151 | ./src/platform/darwin \
|
---|
152 | ./src/platform/win \
|
---|
153 | ./src/platform/x11 \
|
---|
154 | ./src/runtime \
|
---|
155 | ./src/runtime/fullscreen \
|
---|
156 | ./src/runtime/normal \
|
---|
157 | ./src/runtime/scale \
|
---|
158 | ./src/runtime/seamless \
|
---|
159 | ./src/selector \
|
---|
160 | ./src/settings \
|
---|
161 | ./src/settings/global \
|
---|
162 | ./src/settings/machine \
|
---|
163 | ./src/widgets \
|
---|
164 | ./src/wizards/clonevm \
|
---|
165 | ./src/wizards/exportappliance \
|
---|
166 | ./src/wizards/firstrun \
|
---|
167 | ./src/wizards/importappliance \
|
---|
168 | ./src/wizards/newhd \
|
---|
169 | ./src/wizards/newvm
|
---|
170 |
|
---|
171 | VirtualBox_INCS = \
|
---|
172 | $(VBOX_GUI_INC_DIRS) \
|
---|
173 | $(VirtualBox_0_OUTDIR)/include
|
---|
174 |
|
---|
175 | # Necessary for the hdd backend enumeration
|
---|
176 | VirtualBox_LIBS = $(LIB_DDU)
|
---|
177 |
|
---|
178 | # This library is required for multi-monitor support
|
---|
179 | VirtualBox_LIBS.linux += Xinerama
|
---|
180 | VirtualBox_LIBS.solaris += Xinerama
|
---|
181 | VirtualBox_LIBS.freebsd += Xinerama
|
---|
182 |
|
---|
183 | ifneq ($(KBUILD_TARGET),win)
|
---|
184 | VirtualBox_CXXFLAGS += -Wno-switch
|
---|
185 | endif
|
---|
186 |
|
---|
187 | ifdef VBOX_WITH_VIDEOHWACCEL
|
---|
188 | # Necessary for save state support
|
---|
189 | VirtualBox_LIBS += $(LIB_VMM)
|
---|
190 | endif
|
---|
191 | ifeq ($(KBUILD_TYPE),release)
|
---|
192 | VirtualBox_LDFLAGS.win += /SUBSYSTEM:windows
|
---|
193 | else
|
---|
194 | VirtualBox_LDFLAGS.linux += -rdynamic # for backtrace_symbols()
|
---|
195 | VirtualBox_LDFLAGS.win += /SUBSYSTEM:console
|
---|
196 | endif
|
---|
197 |
|
---|
198 | # delay loading causes VM process crashes due to the misbehave of the current QtOpenGLVBox4.dll we use
|
---|
199 | # (i.e. it does not create the ogl context properly when loaded this way)
|
---|
200 | #
|
---|
201 | # @todo: investigate a better work-around and enable back delay loading since it is needed to avoid
|
---|
202 | # crashes caused by buggy ogl drivers for the case 2D is not used (i.e. no ogl stuff loaded)
|
---|
203 | #if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
|
---|
204 | # VirtualBox_LDFLAGS.win += /DelayLoad:QtOpenGLVBox4.dll /DelayLoad:OPENGL32.dll
|
---|
205 | #endif
|
---|
206 |
|
---|
207 | VirtualBox_LDFLAGS.darwin = \
|
---|
208 | -framework AppKit -framework Carbon \
|
---|
209 | $(if $(VBOX_WITH_HARDENING),-install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VirtualBox.dylib)
|
---|
210 | ifdef VBOX_WITH_ICHAT_THEATER
|
---|
211 | VirtualBox_LDFLAGS.darwin += -framework InstantMessage -framework QuartzCore
|
---|
212 | endif
|
---|
213 |
|
---|
214 | VirtualBox_LIBS.win = \
|
---|
215 | $(PATH_SDK_WINPSDK_LIB)/Htmlhelp.Lib \
|
---|
216 | $(PATH_SDK_DXSDK_LIB)/ddraw.lib \
|
---|
217 | $(PATH_SDK_DXSDK_LIB)/dxguid.lib
|
---|
218 | if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) # X11
|
---|
219 | VirtualBox_LIBS += $(PATH_STAGE_DLL)/VBoxKeyboard$(VBOX_SUFF_DLL)
|
---|
220 | endif
|
---|
221 |
|
---|
222 | if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
|
---|
223 | VirtualBox_LIBS.win += $(PATH_SDK_WINPSDK_LIB)/Opengl32.lib
|
---|
224 | VirtualBox_LIBS.solaris += GL
|
---|
225 | VirtualBox_LIBS.linux += GL
|
---|
226 | VirtualBox_LIBS.freebsd += GL
|
---|
227 | VirtualBox_LDFLAGS.darwin += -framework OpenGL
|
---|
228 | endif
|
---|
229 |
|
---|
230 | # Headers containing definitions of classes that use the Q_OBJECT macro.
|
---|
231 | VirtualBox_QT_MOCHDRS = \
|
---|
232 | src/UIMediumTypeChangeDialog.h \
|
---|
233 | src/VBoxAboutDlg.h \
|
---|
234 | src/VBoxGlobalSettings.h \
|
---|
235 | src/VBoxLicenseViewer.h \
|
---|
236 | src/VBoxMediaManagerDlg.h \
|
---|
237 | src/VBoxSnapshotDetailsDlg.h \
|
---|
238 | src/VBoxTakeSnapshotDlg.h \
|
---|
239 | src/VBoxVMInformationDlg.h \
|
---|
240 | src/UIVMLogViewer.h \
|
---|
241 | src/extensions/QIAdvancedSlider.h \
|
---|
242 | src/extensions/QIArrowButtonPress.h \
|
---|
243 | src/extensions/QIArrowButtonSwitch.h \
|
---|
244 | src/extensions/QIArrowSplitter.h \
|
---|
245 | src/extensions/QIDialog.h \
|
---|
246 | src/extensions/QIFileDialog.h \
|
---|
247 | src/extensions/QILabel.h \
|
---|
248 | src/extensions/QILabelSeparator.h \
|
---|
249 | src/extensions/QIListView.h \
|
---|
250 | src/extensions/QIMainDialog.h \
|
---|
251 | src/extensions/QIMessageBox.h \
|
---|
252 | src/extensions/QIRichToolButton.h \
|
---|
253 | src/extensions/QISplitter.h \
|
---|
254 | src/extensions/QIStateIndicator.h \
|
---|
255 | src/extensions/QIStatusBar.h \
|
---|
256 | src/extensions/QITabWidget.h \
|
---|
257 | src/extensions/QITableView.h \
|
---|
258 | src/extensions/QIToolButton.h \
|
---|
259 | src/extensions/QITextEdit.h \
|
---|
260 | src/extensions/QITreeView.h \
|
---|
261 | src/extensions/QITreeWidget.h \
|
---|
262 | src/extensions/QIWidgetValidator.h \
|
---|
263 | src/extensions/QIWizard.h \
|
---|
264 | src/globals/UIActionPool.h \
|
---|
265 | src/globals/UIExtraDataEventHandler.h \
|
---|
266 | src/globals/UIMainEventListener.h \
|
---|
267 | src/globals/UIMessageCenter.h \
|
---|
268 | src/globals/VBoxGlobal.h \
|
---|
269 | src/globals/VBoxUtils.h \
|
---|
270 | src/net/UIDownloader.h \
|
---|
271 | src/net/UIDownloaderAdditions.h \
|
---|
272 | src/net/UIDownloaderExtensionPack.h \
|
---|
273 | src/net/UIDownloaderUserManual.h \
|
---|
274 | src/net/UINetworkManager.h \
|
---|
275 | src/net/UIUpdateManager.h \
|
---|
276 | src/runtime/UIActionPoolRuntime.h \
|
---|
277 | src/runtime/UIConsoleEventHandler.h \
|
---|
278 | src/runtime/UIIndicatorsPool.h \
|
---|
279 | src/runtime/UIKeyboardHandler.h \
|
---|
280 | src/runtime/UIMachine.h \
|
---|
281 | src/runtime/UIMachineLogic.h \
|
---|
282 | src/runtime/UIMachineView.h \
|
---|
283 | src/runtime/UIMouseHandler.h \
|
---|
284 | src/runtime/UIMultiScreenLayout.h \
|
---|
285 | src/runtime/UISession.h \
|
---|
286 | src/runtime/UIVMCloseDialog.h \
|
---|
287 | src/runtime/fullscreen/UIKeyboardHandlerFullscreen.h \
|
---|
288 | src/runtime/fullscreen/UIMachineLogicFullscreen.h \
|
---|
289 | src/runtime/fullscreen/UIMachineViewFullscreen.h \
|
---|
290 | src/runtime/fullscreen/UIMachineWindowFullscreen.h \
|
---|
291 | src/runtime/normal/UIKeyboardHandlerNormal.h \
|
---|
292 | src/runtime/normal/UIMachineLogicNormal.h \
|
---|
293 | src/runtime/normal/UIMachineViewNormal.h \
|
---|
294 | src/runtime/normal/UIMachineWindowNormal.h \
|
---|
295 | src/runtime/scale/UIKeyboardHandlerScale.h \
|
---|
296 | src/runtime/scale/UIMachineLogicScale.h \
|
---|
297 | src/runtime/scale/UIMachineViewScale.h \
|
---|
298 | src/runtime/scale/UIMachineWindowScale.h \
|
---|
299 | src/runtime/seamless/UIKeyboardHandlerSeamless.h \
|
---|
300 | src/runtime/seamless/UIMachineLogicSeamless.h \
|
---|
301 | src/runtime/seamless/UIMachineViewSeamless.h \
|
---|
302 | src/runtime/seamless/UIMachineWindowSeamless.h \
|
---|
303 | src/selector/UIActionPoolSelector.h \
|
---|
304 | src/selector/UIVMDesktop.h \
|
---|
305 | src/selector/UIVMItem.h \
|
---|
306 | src/selector/UIVMListView.h \
|
---|
307 | src/selector/UIVMPreviewWindow.h \
|
---|
308 | src/selector/UIVirtualBoxEventHandler.h \
|
---|
309 | src/selector/UISelectorWindow.h \
|
---|
310 | src/selector/VBoxSnapshotsWgt.h \
|
---|
311 | src/settings/UISettingsDialog.h \
|
---|
312 | src/settings/UISettingsDialogSpecific.h \
|
---|
313 | src/settings/UISettingsPage.h \
|
---|
314 | src/settings/VBoxSettingsSelector.h \
|
---|
315 | src/settings/global/UIGlobalSettingsExtension.h \
|
---|
316 | src/settings/global/UIGlobalSettingsGeneral.h \
|
---|
317 | src/settings/global/UIGlobalSettingsInput.h \
|
---|
318 | src/settings/global/UIGlobalSettingsLanguage.h \
|
---|
319 | src/settings/global/UIGlobalSettingsDisplay.h \
|
---|
320 | src/settings/global/UIGlobalSettingsNetwork.h \
|
---|
321 | src/settings/global/UIGlobalSettingsNetworkDetails.h \
|
---|
322 | src/settings/global/UIGlobalSettingsProxy.h \
|
---|
323 | src/settings/global/UIGlobalSettingsUpdate.h \
|
---|
324 | src/settings/machine/UIMachineSettingsAudio.h \
|
---|
325 | src/settings/machine/UIMachineSettingsDisplay.h \
|
---|
326 | src/settings/machine/UIMachineSettingsGeneral.h \
|
---|
327 | src/settings/machine/UIMachineSettingsNetwork.h \
|
---|
328 | src/settings/machine/UIMachineSettingsParallel.h \
|
---|
329 | src/settings/machine/UIMachineSettingsPortForwardingDlg.h \
|
---|
330 | src/settings/machine/UIMachineSettingsSF.h \
|
---|
331 | src/settings/machine/UIMachineSettingsSFDetails.h \
|
---|
332 | src/settings/machine/UIMachineSettingsSerial.h \
|
---|
333 | src/settings/machine/UIMachineSettingsStorage.h \
|
---|
334 | src/settings/machine/UIMachineSettingsSystem.h \
|
---|
335 | src/settings/machine/UIMachineSettingsUSB.h \
|
---|
336 | src/settings/machine/UIMachineSettingsUSBFilterDetails.h \
|
---|
337 | src/widgets/UIApplianceEditorWidget.h \
|
---|
338 | src/widgets/UIApplianceExportEditorWidget.h \
|
---|
339 | src/widgets/UIApplianceImportEditorWidget.h \
|
---|
340 | src/widgets/UIBar.h \
|
---|
341 | src/widgets/UIBootTable.h \
|
---|
342 | src/widgets/UIHotKeyEditor.h \
|
---|
343 | src/widgets/UILineTextEdit.h \
|
---|
344 | src/widgets/UIPopupBox.h \
|
---|
345 | src/widgets/UIProgressDialog.h \
|
---|
346 | src/widgets/UISpacerWidgets.h \
|
---|
347 | src/widgets/UISpecialControls.h \
|
---|
348 | src/widgets/VBoxFilePathSelectorWidget.h \
|
---|
349 | src/widgets/VBoxMediaComboBox.h \
|
---|
350 | src/widgets/VBoxMiniToolBar.h \
|
---|
351 | src/widgets/VBoxOSTypeSelectorButton.h \
|
---|
352 | src/widgets/VBoxOSTypeSelectorWidget.h \
|
---|
353 | src/widgets/VBoxWarningPane.h \
|
---|
354 | src/wizards/clonevm/UICloneVMWizard.h \
|
---|
355 | src/wizards/exportappliance/UIExportApplianceWzd.h \
|
---|
356 | src/wizards/firstrun/UIFirstRunWzd.h \
|
---|
357 | src/wizards/importappliance/UIImportApplianceWzd.h \
|
---|
358 | src/wizards/newhd/UINewHDWizard.h \
|
---|
359 | src/wizards/newvm/UINewVMWzd.h
|
---|
360 |
|
---|
361 | VirtualBox_QT_MOCHDRS.darwin += \
|
---|
362 | src/platform/darwin/UIWindowMenuManager.h
|
---|
363 |
|
---|
364 | # Sources containing local definitions of classes that use the Q_OBJECT macro.
|
---|
365 | VirtualBox_QT_MOCSRCS = \
|
---|
366 | src/VBoxMediaManagerDlg.cpp \
|
---|
367 | src/UIVMLogViewer.cpp \
|
---|
368 | src/extensions/QISplitter.cpp \
|
---|
369 | src/globals/UIActionPool.cpp \
|
---|
370 | src/globals/UIExtraDataEventHandler.cpp \
|
---|
371 | src/net/UIUpdateManager.cpp \
|
---|
372 | src/runtime/UIActionPoolRuntime.cpp \
|
---|
373 | src/runtime/UIIndicatorsPool.cpp \
|
---|
374 | src/runtime/UIMachine.cpp \
|
---|
375 | src/runtime/UIMachineMenuBar.cpp \
|
---|
376 | src/selector/UIActionPoolSelector.cpp \
|
---|
377 | src/selector/UIVMDesktop.cpp \
|
---|
378 | src/settings/UISettingsDialogSpecific.cpp \
|
---|
379 | src/settings/machine/UIMachineSettingsPortForwardingDlg.cpp \
|
---|
380 | src/settings/machine/UIMachineSettingsStorage.cpp \
|
---|
381 | src/wizards/newhd/UINewHDWizard.cpp
|
---|
382 |
|
---|
383 | VirtualBox_QT_MOCSRCS.darwin += \
|
---|
384 | src/platform/darwin/UIWindowMenuManager.cpp
|
---|
385 | VirtualBox_QT_MOCSRCS.win += \
|
---|
386 | src/extensions/QIFileDialog.cpp
|
---|
387 |
|
---|
388 | ifdef VBOX_WITH_XPCOM
|
---|
389 | VirtualBox_QT_MOCSRCS += \
|
---|
390 | src/globals/COMDefs.cpp
|
---|
391 | endif
|
---|
392 |
|
---|
393 | VirtualBox_SOURCES = \
|
---|
394 | src/UIMediumTypeChangeDialog.cpp \
|
---|
395 | src/VBoxAboutDlg.cpp \
|
---|
396 | src/VBoxGlobalSettings.cpp \
|
---|
397 | src/VBoxLicenseViewer.cpp \
|
---|
398 | src/VBoxMediaManagerDlg.cpp \
|
---|
399 | src/VBoxMedium.cpp \
|
---|
400 | src/VBoxSnapshotDetailsDlg.cpp \
|
---|
401 | src/VBoxTakeSnapshotDlg.cpp \
|
---|
402 | src/VBoxVMInformationDlg.cpp \
|
---|
403 | src/UIVMLogViewer.cpp \
|
---|
404 | src/extensions/QIAdvancedSlider.cpp \
|
---|
405 | src/extensions/QIArrowButtonPress.cpp \
|
---|
406 | src/extensions/QIArrowButtonSwitch.cpp \
|
---|
407 | src/extensions/QIArrowSplitter.cpp \
|
---|
408 | src/extensions/QIDialog.cpp \
|
---|
409 | src/extensions/QIDialogButtonBox.cpp \
|
---|
410 | src/extensions/QIFileDialog.cpp \
|
---|
411 | src/extensions/QILabel.cpp \
|
---|
412 | src/extensions/QILabelSeparator.cpp \
|
---|
413 | src/extensions/QILineEdit.cpp \
|
---|
414 | src/extensions/QIListView.cpp \
|
---|
415 | src/extensions/QIMainDialog.cpp \
|
---|
416 | src/extensions/QIMessageBox.cpp \
|
---|
417 | src/extensions/QIRichToolButton.cpp \
|
---|
418 | src/extensions/QISplitter.cpp \
|
---|
419 | src/extensions/QIStateIndicator.cpp \
|
---|
420 | src/extensions/QIStatusBar.cpp \
|
---|
421 | src/extensions/QITableView.cpp \
|
---|
422 | src/extensions/QITextEdit.cpp \
|
---|
423 | src/extensions/QITreeView.cpp \
|
---|
424 | src/extensions/QITreeWidget.cpp \
|
---|
425 | src/extensions/QIWidgetValidator.cpp \
|
---|
426 | src/extensions/QIWizard.cpp \
|
---|
427 | src/globals/COMDefs.cpp \
|
---|
428 | src/globals/UIActionPool.cpp \
|
---|
429 | src/globals/UIExtraDataEventHandler.cpp \
|
---|
430 | src/globals/UIIconPool.cpp \
|
---|
431 | src/globals/UIImageTools.cpp \
|
---|
432 | src/globals/UIMainEventListener.cpp \
|
---|
433 | src/globals/UIMessageCenter.cpp \
|
---|
434 | src/globals/VBoxDefs.cpp \
|
---|
435 | src/globals/VBoxGlobal.cpp \
|
---|
436 | src/main.cpp \
|
---|
437 | src/net/UIDownloader.cpp \
|
---|
438 | src/net/UIDownloaderAdditions.cpp \
|
---|
439 | src/net/UIDownloaderExtensionPack.cpp \
|
---|
440 | src/net/UIDownloaderUserManual.cpp \
|
---|
441 | src/net/UINetworkManager.cpp \
|
---|
442 | src/net/UIUpdateDefs.cpp \
|
---|
443 | src/net/UIUpdateManager.cpp \
|
---|
444 | src/runtime/UIActionPoolRuntime.cpp \
|
---|
445 | src/runtime/UIConsoleEventHandler.cpp \
|
---|
446 | src/runtime/UIFrameBuffer.cpp \
|
---|
447 | src/runtime/UIFrameBufferQGL.cpp \
|
---|
448 | src/runtime/UIFrameBufferQImage.cpp \
|
---|
449 | src/runtime/UIFrameBufferSDL.cpp \
|
---|
450 | src/runtime/UIIndicatorsPool.cpp \
|
---|
451 | src/runtime/UIKeyboardHandler.cpp \
|
---|
452 | src/runtime/UIMachine.cpp \
|
---|
453 | src/runtime/UIMachineLogic.cpp \
|
---|
454 | src/runtime/UIMachineMenuBar.cpp \
|
---|
455 | src/runtime/UIMachineShortcuts.cpp \
|
---|
456 | src/runtime/UIMachineView.cpp \
|
---|
457 | src/runtime/UIMachineWindow.cpp \
|
---|
458 | src/runtime/UIMouseHandler.cpp \
|
---|
459 | src/runtime/UIMultiScreenLayout.cpp \
|
---|
460 | src/runtime/UISession.cpp \
|
---|
461 | src/runtime/UIVMCloseDialog.cpp \
|
---|
462 | src/runtime/fullscreen/UIKeyboardHandlerFullscreen.cpp \
|
---|
463 | src/runtime/fullscreen/UIMachineLogicFullscreen.cpp \
|
---|
464 | src/runtime/fullscreen/UIMachineViewFullscreen.cpp \
|
---|
465 | src/runtime/fullscreen/UIMachineWindowFullscreen.cpp \
|
---|
466 | src/runtime/normal/UIKeyboardHandlerNormal.cpp \
|
---|
467 | src/runtime/normal/UIMachineLogicNormal.cpp \
|
---|
468 | src/runtime/normal/UIMachineViewNormal.cpp \
|
---|
469 | src/runtime/normal/UIMachineWindowNormal.cpp \
|
---|
470 | src/runtime/scale/UIKeyboardHandlerScale.cpp \
|
---|
471 | src/runtime/scale/UIMachineLogicScale.cpp \
|
---|
472 | src/runtime/scale/UIMachineViewScale.cpp \
|
---|
473 | src/runtime/scale/UIMachineWindowScale.cpp \
|
---|
474 | src/runtime/seamless/UIKeyboardHandlerSeamless.cpp \
|
---|
475 | src/runtime/seamless/UIMachineLogicSeamless.cpp \
|
---|
476 | src/runtime/seamless/UIMachineViewSeamless.cpp \
|
---|
477 | src/runtime/seamless/UIMachineWindowSeamless.cpp \
|
---|
478 | src/selector/UIActionPoolSelector.cpp \
|
---|
479 | src/selector/UISelectorShortcuts.cpp \
|
---|
480 | src/selector/UIVMDesktop.cpp \
|
---|
481 | src/selector/UIVMItem.cpp \
|
---|
482 | src/selector/UIVMListView.cpp \
|
---|
483 | src/selector/UIVMPreviewWindow.cpp \
|
---|
484 | src/selector/UIVirtualBoxEventHandler.cpp \
|
---|
485 | src/selector/UISelectorWindow.cpp \
|
---|
486 | src/selector/VBoxSnapshotsWgt.cpp \
|
---|
487 | src/settings/UISettingsDefs.cpp \
|
---|
488 | src/settings/UISettingsDialog.cpp \
|
---|
489 | src/settings/UISettingsDialogSpecific.cpp \
|
---|
490 | src/settings/UISettingsPage.cpp \
|
---|
491 | src/settings/VBoxSettingsSelector.cpp \
|
---|
492 | src/settings/global/UIGlobalSettingsExtension.cpp \
|
---|
493 | src/settings/global/UIGlobalSettingsGeneral.cpp \
|
---|
494 | src/settings/global/UIGlobalSettingsInput.cpp \
|
---|
495 | src/settings/global/UIGlobalSettingsLanguage.cpp \
|
---|
496 | src/settings/global/UIGlobalSettingsDisplay.cpp \
|
---|
497 | src/settings/global/UIGlobalSettingsNetwork.cpp \
|
---|
498 | src/settings/global/UIGlobalSettingsNetworkDetails.cpp \
|
---|
499 | src/settings/global/UIGlobalSettingsProxy.cpp \
|
---|
500 | src/settings/global/UIGlobalSettingsUpdate.cpp \
|
---|
501 | src/settings/machine/UIMachineSettingsAudio.cpp \
|
---|
502 | src/settings/machine/UIMachineSettingsDisplay.cpp \
|
---|
503 | src/settings/machine/UIMachineSettingsGeneral.cpp \
|
---|
504 | src/settings/machine/UIMachineSettingsNetwork.cpp \
|
---|
505 | src/settings/machine/UIMachineSettingsParallel.cpp \
|
---|
506 | src/settings/machine/UIMachineSettingsPortForwardingDlg.cpp \
|
---|
507 | src/settings/machine/UIMachineSettingsSF.cpp \
|
---|
508 | src/settings/machine/UIMachineSettingsSFDetails.cpp \
|
---|
509 | src/settings/machine/UIMachineSettingsSerial.cpp \
|
---|
510 | src/settings/machine/UIMachineSettingsStorage.cpp \
|
---|
511 | src/settings/machine/UIMachineSettingsSystem.cpp \
|
---|
512 | src/settings/machine/UIMachineSettingsUSB.cpp \
|
---|
513 | src/settings/machine/UIMachineSettingsUSBFilterDetails.cpp \
|
---|
514 | src/widgets/UIApplianceEditorWidget.cpp \
|
---|
515 | src/widgets/UIApplianceExportEditorWidget.cpp \
|
---|
516 | src/widgets/UIApplianceImportEditorWidget.cpp \
|
---|
517 | src/widgets/UIBar.cpp \
|
---|
518 | src/widgets/UIBootTable.cpp \
|
---|
519 | src/widgets/UIHotKeyEditor.cpp \
|
---|
520 | src/widgets/UILineTextEdit.cpp \
|
---|
521 | src/widgets/UIPopupBox.cpp \
|
---|
522 | src/widgets/UIProgressDialog.cpp \
|
---|
523 | src/widgets/UISpecialControls.cpp \
|
---|
524 | src/widgets/UIToolBar.cpp \
|
---|
525 | src/widgets/VBoxFilePathSelectorWidget.cpp \
|
---|
526 | src/widgets/VBoxGuestRAMSlider.cpp \
|
---|
527 | src/widgets/VBoxMediaComboBox.cpp \
|
---|
528 | src/widgets/VBoxMiniToolBar.cpp \
|
---|
529 | src/widgets/VBoxOSTypeSelectorButton.cpp \
|
---|
530 | src/widgets/VBoxOSTypeSelectorWidget.cpp \
|
---|
531 | src/widgets/VBoxWarningPane.cpp \
|
---|
532 | src/wizards/clonevm/UICloneVMWizard.cpp \
|
---|
533 | src/wizards/exportappliance/UIExportApplianceWzd.cpp \
|
---|
534 | src/wizards/firstrun/UIFirstRunWzd.cpp \
|
---|
535 | src/wizards/importappliance/UIImportApplianceWzd.cpp \
|
---|
536 | src/wizards/newhd/UINewHDWizard.cpp \
|
---|
537 | src/wizards/newvm/UINewVMWzd.cpp
|
---|
538 |
|
---|
539 | VirtualBox_SOURCES.win += \
|
---|
540 | src/runtime/UIFrameBufferDirectDraw.cpp
|
---|
541 | VirtualBox_SOURCES.darwin += \
|
---|
542 | src/platform/darwin/UIAbstractDockIconPreview.cpp \
|
---|
543 | src/platform/darwin/UICocoaDockIconPreview.mm \
|
---|
544 | src/platform/darwin/UIWindowMenuManager.cpp \
|
---|
545 | src/runtime/UIFrameBufferQuartz2D.cpp
|
---|
546 |
|
---|
547 | if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) # X11
|
---|
548 | VirtualBox_SOURCES += \
|
---|
549 | src/platform/x11/UIDesktopServices_x11.cpp \
|
---|
550 | src/platform/x11/VBoxX11Helper.cpp \
|
---|
551 | src/platform/x11/XKeyboard-new.cpp
|
---|
552 | endif
|
---|
553 |
|
---|
554 | VirtualBox_SOURCES.win += \
|
---|
555 | src/platform/win/VirtualBox.rc \
|
---|
556 | src/platform/win/UIDesktopServices_win.cpp \
|
---|
557 | src/platform/win/VBoxUtils-win.cpp
|
---|
558 |
|
---|
559 | VirtualBox_DEFS.darwin += VBOX_DARWIN_USE_NATIVE_CONTROLS
|
---|
560 | VirtualBox_SOURCES.darwin += \
|
---|
561 | src/platform/darwin/CocoaEventHelper.mm \
|
---|
562 | src/platform/darwin/DarwinKeyboard.cpp \
|
---|
563 | src/platform/darwin/UICocoaApplication.mm \
|
---|
564 | src/platform/darwin/UICocoaSpecialControls.mm \
|
---|
565 | src/platform/darwin/UIDesktopServices_darwin.cpp \
|
---|
566 | src/platform/darwin/UIDesktopServices_darwin_cocoa.mm \
|
---|
567 | src/platform/darwin/VBoxUtils-darwin-cocoa.mm \
|
---|
568 | src/platform/darwin/VBoxUtils-darwin.cpp
|
---|
569 | VirtualBox_QT_MOCHDRS.darwin += \
|
---|
570 | src/platform/darwin/UICocoaSpecialControls.h
|
---|
571 |
|
---|
572 | ifdef VBOX_WITH_ICHAT_THEATER
|
---|
573 | VirtualBox_SOURCES.darwin += \
|
---|
574 | src/platform/darwin/VBoxIChatTheaterWrapper.m
|
---|
575 | endif
|
---|
576 |
|
---|
577 | ifdef VBOX_GUI_WITH_SYSTRAY
|
---|
578 | VirtualBox_DEFS += VBOX_GUI_WITH_SYSTRAY
|
---|
579 | VirtualBox_QT_MOCHDRS += \
|
---|
580 | src/selector/VBoxTrayIcon.h
|
---|
581 | VirtualBox_SOURCES += \
|
---|
582 | src/selector/VBoxTrayIcon.cpp
|
---|
583 | endif
|
---|
584 |
|
---|
585 | if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
|
---|
586 | VirtualBox_SOURCES += \
|
---|
587 | src/VBoxFBOverlay.cpp \
|
---|
588 | src/VBoxFBQGL.cpp \
|
---|
589 | src/VBoxGLSupportInfo.cpp
|
---|
590 | endif
|
---|
591 |
|
---|
592 | ifdef VBOX_WITH_DRAG_AND_DROP
|
---|
593 | VirtualBox_SOURCES += \
|
---|
594 | src/runtime/UIDnDHandler.cpp
|
---|
595 | VirtualBox_QT_MOCSRCS += \
|
---|
596 | src/runtime/UIDnDHandler.cpp
|
---|
597 | endif
|
---|
598 |
|
---|
599 | # The Qt modules we're using.
|
---|
600 | # (The include directory and lib/framework for each module will be added by the Qt4 unit.)
|
---|
601 | VirtualBox_QT_MODULES = Core Gui Network
|
---|
602 | if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
|
---|
603 | VirtualBox_QT_MODULES += OpenGL
|
---|
604 | endif
|
---|
605 |
|
---|
606 | # Pull in the ui files
|
---|
607 | $(eval VirtualBox_SOURCES += $(FORMS))
|
---|
608 |
|
---|
609 | # Resource files with some OSE differences (VirtualBoxBrand.qrc is created further down).
|
---|
610 | VirtualBox_SOURCES += VirtualBox1.qrc
|
---|
611 | VirtualBox1.qrc_RCCFLAGS = -name BASIC1
|
---|
612 | VirtualBox_SOURCES += VirtualBox2.qrc
|
---|
613 | VirtualBox2.qrc_RCCFLAGS = -name BASIC2
|
---|
614 | ifeq ($(KBUILD_TARGET),darwin)
|
---|
615 | VirtualBox_SOURCES += VirtualBoxMac.qrc
|
---|
616 | VirtualBoxMac.qrc_RCCFLAGS = -name MAC
|
---|
617 | else
|
---|
618 | VirtualBox_SOURCES += VirtualBoxOther.qrc
|
---|
619 | VirtualBoxOther.qrc_RCCFLAGS = -name OTHER
|
---|
620 | endif
|
---|
621 | VirtualBox_SOURCES += $(VBOX_VIRTUALBOX4_OUT_DIR)/VirtualBoxBrand.qrc
|
---|
622 | $(VBOX_VIRTUALBOX4_OUT_DIR)/VirtualBoxBrand.qrc_RCCFLAGS = -name BRAND
|
---|
623 | if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
|
---|
624 | VirtualBox_SOURCES += VirtualBoxShaders.qrc
|
---|
625 | VirtualBoxShaders.qrc_RCCFLAGS = -name SHADERS
|
---|
626 | endif
|
---|
627 |
|
---|
628 | # Import the translation source from VBoxUI.pro and add the qt_xx_YY counterparts
|
---|
629 | VirtualBox_QT_TRANSLATIONS := $(TRANSLATIONS) \
|
---|
630 | $(patsubst nls/VirtualBox_%.ts,nls/qt_%.ts, $(filter nls/VirtualBox_%.ts,$(TRANSLATIONS)))
|
---|
631 | # Compress the translation units.
|
---|
632 | VirtualBox_LRCFLAGS = -silent
|
---|
633 | # Where to install the translations (a separate install target, VirtualBox-nls-inst is created).
|
---|
634 | VirtualBox_QT_TRANSLATIONS_INST = $(INST_BIN)nls/
|
---|
635 |
|
---|
636 |
|
---|
637 | ## @todo how to detect what tool is used?
|
---|
638 | ## @todo GCC3 seems to lack -Wno-missing-base-class-initializer, so we use
|
---|
639 | # more generic -Wno-extra
|
---|
640 | # bird: What about $(if $(VBOX_GCC_Wno-missing-base-class-initializer),$(VBOX_GCC_Wno-missing-base-class-initializer),$(VBOX_GCC_Wno-extra))?
|
---|
641 | ifdef VBOX_WITH_XPCOM
|
---|
642 | VirtualBox_src/globals/COMDefs.cpp_CXXFLAGS = $(VBOX_GCC_Wno-extra)
|
---|
643 | endif
|
---|
644 |
|
---|
645 |
|
---|
646 | #
|
---|
647 | # Generate the COM wrappers.
|
---|
648 | #
|
---|
649 | ## @todo This needs some cleaning up perhaps...
|
---|
650 | ## @todo kBuild: Non-existing +| targets should be tried remade or what?
|
---|
651 | VirtualBox_BLDDIRS += $(VirtualBox_0_OUTDIR)/include
|
---|
652 | VirtualBox_INTERMEDIATES += $(VirtualBox_0_OUTDIR)/include/COMWrappers.h
|
---|
653 | VirtualBox_CLEAN += \
|
---|
654 | $(VirtualBox_0_OUTDIR)/include/COMWrappers \
|
---|
655 | $(VirtualBox_0_OUTDIR)/include/COMWrappers.tmp \
|
---|
656 | $(VirtualBox_0_OUTDIR)/include/COMWrappers.h \
|
---|
657 | $(VirtualBox_0_OUTDIR)/include/COMWrappers.cpp
|
---|
658 | VirtualBox_SOURCES += $(VirtualBox_0_OUTDIR)/include/COMWrappers.cpp
|
---|
659 |
|
---|
660 | $$(VirtualBox_0_OUTDIR)/include/COMWrappers \
|
---|
661 | +| $$(VirtualBox_0_OUTDIR)/include/COMWrappers.h \
|
---|
662 | +| $$(VirtualBox_0_OUTDIR)/include/COMWrappers.cpp: \
|
---|
663 | $(VBOX_XIDL_FILE) \
|
---|
664 | $(VBOX_VIRTUALBOX4_SRC)/src/globals/COMWrappers.xsl \
|
---|
665 | | $$(dir $$@)
|
---|
666 | $(call MSG_GENERATE,VirtualBox,$<,$@)
|
---|
667 | $(QUIET)$(RM) -f $@ [email protected] [email protected] [email protected]
|
---|
668 | $(QUIET)$(VBOX_XSLTPROC) -o $@ $(VBOX_VIRTUALBOX4_SRC)/src/globals/COMWrappers.xsl $<
|
---|
669 |
|
---|
670 | $(QUIET)$(SED) -e '1,/\/\/ wrapper definitions/ !d' \
|
---|
671 | --output [email protected] $@
|
---|
672 | $(QUIET)$(CP) --changed [email protected] [email protected]
|
---|
673 |
|
---|
674 | $(QUIET)$(APPEND) -t -n [email protected] \
|
---|
675 | '/*' \
|
---|
676 | ' * DO NOT EDIT! This is a generated file, see COMWrappers.h for details.' \
|
---|
677 | ' */' \
|
---|
678 | '' \
|
---|
679 | '#include "VBoxGlobal.h"' \
|
---|
680 | ''
|
---|
681 | $(QUIET)$(SED) -e '/\/\/ wrapper definitions/,9999999 !d' \
|
---|
682 | -e 's/^inline //' \
|
---|
683 | --append [email protected] $@
|
---|
684 | $(QUIET)$(CP) --changed [email protected] [email protected]
|
---|
685 | $(QUIET)$(RM) -f [email protected]
|
---|
686 |
|
---|
687 |
|
---|
688 | # alias for generating the COM Wrappers file.
|
---|
689 | testwrappers:: $$(VirtualBox_0_OUTDIR)/include/COMWrappers.h
|
---|
690 |
|
---|
691 |
|
---|
692 | #
|
---|
693 | # Generate qrc file with branded icons.
|
---|
694 | #
|
---|
695 | VirtualBox_BLDDIRS += $(VBOX_VIRTUALBOX4_OUT_DIR)
|
---|
696 | VirtualBox_CLEAN += $(VBOX_VIRTUALBOX4_OUT_DIR)/VirtualBoxBrand.qrc
|
---|
697 | $(VBOX_VIRTUALBOX4_OUT_DIR)/VirtualBoxBrand.qrc: \
|
---|
698 | $(VBOX_VIRTUALBOX4_SRC)/VirtualBoxBrand.qrc \
|
---|
699 | | $$(dir $$@)
|
---|
700 | $(call MSG_GENERATE,VirtualBox,$<,$@)
|
---|
701 | $(QUIET)$(SED) \
|
---|
702 | -e 's;@VBOX_ABOUT_PNG@;$(VBOX_BRAND_GUI_ABOUT_PNG);g' \
|
---|
703 | -e 's;@VBOX_ABOUT_16PX_PNG@;$(VBOX_BRAND_GUI_ABOUT_16PX_PNG);g' \
|
---|
704 | -e 's;@VBOX_VBOX_16PX_PNG@;$(VBOX_BRAND_GUI_VBOX_16PX_PNG);g' \
|
---|
705 | -e 's;@VBOX_VBOX_20PX_PNG@;$(VBOX_BRAND_GUI_VBOX_20PX_PNG);g' \
|
---|
706 | -e 's;@VBOX_VBOX_32PX_PNG@;$(VBOX_BRAND_GUI_VBOX_32PX_PNG);g' \
|
---|
707 | -e 's;@VBOX_VBOX_40PX_PNG@;$(VBOX_BRAND_GUI_VBOX_40PX_PNG);g' \
|
---|
708 | -e 's;@VBOX_VBOX_48PX_PNG@;$(VBOX_BRAND_GUI_VBOX_48PX_PNG);g' \
|
---|
709 | -e 's;@VBOX_VBOX_64PX_PNG@;$(VBOX_BRAND_GUI_VBOX_64PX_PNG);g' \
|
---|
710 | -e 's;@VBOX_CUBE_42PX_PNG@;$(VBOX_BRAND_GUI_CUBE_42PX_PNG);g' \
|
---|
711 | --output $@ \
|
---|
712 | $<
|
---|
713 |
|
---|
714 |
|
---|
715 | #
|
---|
716 | # Precompiled header - non-functional atm.
|
---|
717 | #
|
---|
718 | ifdef VBOX_WITH_PRECOMPILED_HEADERS
|
---|
719 | VirtualBox_INCS <= $(VirtualBox_0_OUTDIR)/include
|
---|
720 | VirtualBox_DEFS += VBOX_WITH_PRECOMPILED_HEADERS
|
---|
721 | VirtualBox_CXXFLAGS += -Winvalid-pch -fpch-preprocess
|
---|
722 | VirtualBox_INTERMEDIATES += $(VirtualBox_0_OUTDIR)/include/precomp.h.gch
|
---|
723 |
|
---|
724 | tstx: $$(VirtualBox_0_OUTDIR)/include/precomp.h.gch
|
---|
725 |
|
---|
726 | $$(VirtualBox_0_OUTDIR)/include/precomp.h.gch: \
|
---|
727 | $(PATH_SUB_CURRENT)/src/precomp.h \
|
---|
728 | $$(VirtualBox_0_OUTDIR)/include/COMWrappers.h \
|
---|
729 | $$(filter %.gen.h, $$(VirtualBox_INTERMEDIATES) ) \
|
---|
730 | $(VBOX_PATH_SDK)/bindings/xpcom/include/VirtualBox_XPCOM.h \
|
---|
731 | | $$(dir $$@)
|
---|
732 | time 'g++-4.0' \
|
---|
733 | '-c' \
|
---|
734 | '-g' \
|
---|
735 | $(if-expr "$(KBUILD_TYPE)" == "debug", , -O2 ) \
|
---|
736 | '-pipe' \
|
---|
737 | '-Wall' \
|
---|
738 | '-Wextra' \
|
---|
739 | '-Wno-missing-field-initializers' \
|
---|
740 | '-Wno-trigraphs' \
|
---|
741 | '-frtti' \
|
---|
742 | '-fno-exceptions' \
|
---|
743 | '-Wno-non-virtual-dtor' \
|
---|
744 | '-Wno-long-long' \
|
---|
745 | \
|
---|
746 | '-fshort-wchar' \
|
---|
747 | '-fno-strict-aliasing' \
|
---|
748 | '-fvisibility=hidden' \
|
---|
749 | '-DVBOX_HAVE_VISIBILITY_HIDDEN' \
|
---|
750 | '-DRT_USE_VISIBILITY_DEFAULT' \
|
---|
751 | '-fvisibility-inlines-hidden' \
|
---|
752 | '-Winvalid-pch' \
|
---|
753 | '-fpch-preprocess' \
|
---|
754 | \
|
---|
755 | '-F$(PATH_SDK_QT4)/Frameworks' \
|
---|
756 | '-mmacosx-version-min=10.5' \
|
---|
757 | '-isysroot' \
|
---|
758 | '/Developer/SDKs/MacOSX10.5.sdk' \
|
---|
759 | '-m32' \
|
---|
760 | \
|
---|
761 | $(foreach inc,$(VirtualBox_INCS),\$(NL)$(TAB)-I$(inc)) \
|
---|
762 | '-I$(PATH_ROOT)/include' \
|
---|
763 | '-I$(PATH_OUT)' \
|
---|
764 | '-DVBOX' \
|
---|
765 | '-DVBOX_WITH_DEBUGGER' \
|
---|
766 | '-DVBOX_WITH_64_BITS_GUESTS' \
|
---|
767 | $(if-expr "$(KBUILD_TYPE)" == "debug", '-DDEBUG' '-DDEBUG_bird' '-DDEBUG_USERNAME=bird' '-DVBOX_CHECK_STATE' ,) \
|
---|
768 | '-DRT_OS_DARWIN' \
|
---|
769 | '-D__DARWIN__' \
|
---|
770 | '-DRT_ARCH_X86' \
|
---|
771 | '-D__X86__' \
|
---|
772 | '-DIN_RING3' \
|
---|
773 | '-DQT_NO_DEBUG' \
|
---|
774 | '-DQT_THREAD_SUPPORT' \
|
---|
775 | '-DQT_SHARED' \
|
---|
776 | '-DHAVE_CONFIG_H' \
|
---|
777 | '-DHC_ARCH_BITS=32' \
|
---|
778 | '-DGC_ARCH_BITS=64' \
|
---|
779 | '-DVBOX_WITH_XPCOM' \
|
---|
780 | '-DVBOX_WITH_UPDATE_REQUEST' \
|
---|
781 | '-DVBOX_WITH_ALSA' \
|
---|
782 | '-DVBOX_WITH_PULSE' \
|
---|
783 | '-DVBOX_WITH_E1000' \
|
---|
784 | '-DVBOX_WITH_NETFLT' \
|
---|
785 | '-DVBOX_WITH_DEBUGGER_GUI' \
|
---|
786 | $(if-expr "$(KBUILD_TYPE)" != "release", '-DVBOX_WITH_DEBUGGER_GUI_MENU', ) \
|
---|
787 | '-DVBOX_WITH_VIDEOHWACCEL' \
|
---|
788 | '-DVBOX_GUI_USE_QGL' \
|
---|
789 | '-DVBOX_WITH_VIRTIO' \
|
---|
790 | '-DVBOX_WITH_PRECOMPILED_HEADERS' \
|
---|
791 | '-DVBOX_DARWIN_USE_NATIVE_CONTROLS' \
|
---|
792 | '-DQT_CORE_LIB' \
|
---|
793 | '-DQT_GUI_LIB' \
|
---|
794 | '-DQT_NETWORK_LIB' \
|
---|
795 | '-DQT_OPENGL_LIB' \
|
---|
796 | '-DMAC_OS_X_VERSION_MIN_REQUIRED=1050' \
|
---|
797 | '-DMAC_OS_X_VERSION_MAX_ALLOWED=1050' \
|
---|
798 | '-DVBOX_GUI_USE_QUARTZ2D' \
|
---|
799 | '-DVBOX_GUI_USE_QIMAGE' \
|
---|
800 | '-o' $@ $<
|
---|
801 | endif
|
---|
802 |
|
---|
803 | ifeq ($(KBUILD_TARGET),win)
|
---|
804 | #
|
---|
805 | # On Windows we'll have to generate/edit part of the resource file.
|
---|
806 | # The IDI_ICON1 name is Qt specific.
|
---|
807 | #
|
---|
808 | src/platform/win/VirtualBox.rc_INCS = $(VirtualBox_0_OUTDIR)
|
---|
809 | src/platform/win/VirtualBox.rc_DEPS = $(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc
|
---|
810 | src/platform/win/VirtualBox.rc_CLEAN = $(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc
|
---|
811 |
|
---|
812 | $$(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc: $(MAKEFILE_CURRENT) $(VBOX_WINDOWS_ICON_FILE) | $$(dir $$@)
|
---|
813 | $(APPEND) -t $@ 'IDI_ICON1 ICON "$(subst /,\\,$(VBOX_WINDOWS_ICON_FILE))"'
|
---|
814 |
|
---|
815 | endif # win
|
---|
816 |
|
---|
817 |
|
---|
818 | ifeq ($(KBUILD_TARGET),darwin)
|
---|
819 | #
|
---|
820 | # Create directories for each approved language or the application
|
---|
821 | # menu won't be translated.
|
---|
822 | #
|
---|
823 | INSTALLS += VirtualBox.lproj
|
---|
824 | VirtualBox.lproj_INST = $(INST_VIRTUALBOX)Contents/Resources/
|
---|
825 | VirtualBox.lproj_MODE = 755
|
---|
826 | VirtualBox.lproj_DIRS := $(addsuffix .lproj,$(VBOX_APPROVED_GUI_LANGUAGES))
|
---|
827 |
|
---|
828 | #
|
---|
829 | # On OS X (darwin) we need to install icon resources and compulsory bundle contents.
|
---|
830 | # The VirtualBoxVM.app helper is for launching VMs (fixes some issues with the dock).
|
---|
831 | #
|
---|
832 | INSTALLS += VirtualBox.app
|
---|
833 | VirtualBox.app_INST = $(INST_VIRTUALBOX)Contents/
|
---|
834 | VirtualBox.app_MODE = 644
|
---|
835 | VirtualBox.app_SOURCES = \
|
---|
836 | src/platform/darwin/PkgInfo \
|
---|
837 | $(VirtualBox.app_0_OUTDIR)/Info.plist \
|
---|
838 | $(VBOX_MACOSX_ICON_FILE)=>Resources/virtualbox.icns \
|
---|
839 | $(VBOX_BRAND_GUI_VBOX_64PX_PNG)=>Resources/virtualbox.png \
|
---|
840 | $(PATH_ROOT)/src/VBox/Resources/darwin/virtualbox-vbox.icns=>Resources/virtualbox-vbox.icns \
|
---|
841 | $(PATH_ROOT)/src/VBox/Resources/darwin/virtualbox-vbox-extpack.icns=>Resources/virtualbox-vbox-extpack.icns \
|
---|
842 | $(PATH_ROOT)/src/VBox/Resources/darwin/virtualbox-ovf.icns=>Resources/virtualbox-ovf.icns \
|
---|
843 | $(PATH_ROOT)/src/VBox/Resources/darwin/virtualbox-ova.icns=>Resources/virtualbox-ova.icns \
|
---|
844 | $(PATH_ROOT)/src/VBox/Resources/darwin/virtualbox-vdi.icns=>Resources/virtualbox-vdi.icns \
|
---|
845 | $(PATH_ROOT)/src/VBox/Resources/darwin/virtualbox-vmdk.icns=>Resources/virtualbox-vmdk.icns \
|
---|
846 | $(PATH_ROOT)/src/VBox/Resources/darwin/virtualbox-vhd.icns=>Resources/virtualbox-vhd.icns \
|
---|
847 | $(PATH_ROOT)/src/VBox/Resources/darwin/virtualbox-hdd.icns=>Resources/virtualbox-hdd.icns
|
---|
848 |
|
---|
849 | $$(VirtualBox.app_0_OUTDIR)/Info.plist: $(PATH_SUB_CURRENT)/src/platform/darwin/Info.plist $(VBOX_VERSION_MK) | $$(@D)/
|
---|
850 | $(call MSG_GENERATE,VirtualBox.app,$<,$@)
|
---|
851 | $(QUIET)$(RM) -f $@
|
---|
852 | $(QUIET)$(SED) \
|
---|
853 | -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
|
---|
854 | -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
|
---|
855 | -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
|
---|
856 | -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
|
---|
857 | -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
|
---|
858 | -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
|
---|
859 | -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
|
---|
860 | $< > $@
|
---|
861 |
|
---|
862 | INSTALLS += VirtualBoxVM.app
|
---|
863 | VirtualBoxVM.app_INST = $(VirtualBox.app_INST)Resources/VirtualBoxVM.app/Contents/
|
---|
864 | VirtualBoxVM.app_MODE = 644
|
---|
865 | VirtualBoxVM.app_SOURCES = \
|
---|
866 | src/platform/darwin/VM-PkgInfo=>PkgInfo \
|
---|
867 | $(VirtualBoxVM.app_0_OUTDIR)/VM-Info.plist=>Info.plist
|
---|
868 | VirtualBoxVM.app_SYMLINKS = \
|
---|
869 | MacOS=>../../../MacOS/ \
|
---|
870 | Resources=>../../../Resources/
|
---|
871 |
|
---|
872 | $$(VirtualBoxVM.app_0_OUTDIR)/VM-Info.plist: $(PATH_SUB_CURRENT)/src/platform/darwin/VM-Info.plist $(VBOX_VERSION_MK) | $$(@D)/
|
---|
873 | $(call MSG_GENERATE,VirtualBoxVM.app,$<,$@)
|
---|
874 | $(QUIET)$(RM) -f $@
|
---|
875 | $(QUIET)$(SED) \
|
---|
876 | -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
|
---|
877 | -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
|
---|
878 | -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
|
---|
879 | -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
|
---|
880 | -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
|
---|
881 | -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
|
---|
882 | -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
|
---|
883 | --output $@ $<
|
---|
884 |
|
---|
885 | PROGRAMS += vmstarter
|
---|
886 | vmstarter_TEMPLATE = VBOXR3EXE
|
---|
887 | vmstarter_SOURCES = src/platform/darwin/vmstarter.mm
|
---|
888 | vmstarter_LDFLAGS += -framework AppKit
|
---|
889 | vmstarter_INST = $(INST_BIN)vmstarter
|
---|
890 |
|
---|
891 | INSTALLS += vmstarter.app
|
---|
892 | vmstarter.app_INST = $(VirtualBox.app_INST)Resources/vmstarter.app/Contents/
|
---|
893 | vmstarter.app_MODE = 644
|
---|
894 | vmstarter.app_SOURCES = \
|
---|
895 | src/platform/darwin/vmstarter-PkgInfo=>PkgInfo \
|
---|
896 | $(vmstarter.app_0_OUTDIR)/vmstarter-Info.plist=>Info.plist
|
---|
897 | vmstarter.app_SYMLINKS = \
|
---|
898 | MacOS=>../../../MacOS \
|
---|
899 | Resources=>../../../Resources
|
---|
900 |
|
---|
901 | $$(vmstarter.app_0_OUTDIR)/vmstarter-Info.plist: $(PATH_SUB_CURRENT)/src/platform/darwin/vmstarter-Info.plist $(VBOX_VERSION_MK) | $$(@D)/
|
---|
902 | $(call MSG_GENERATE,vmstarter.app,$<,$@)
|
---|
903 | $(QUIET)$(RM) -f $@
|
---|
904 | $(QUIET)$(SED) \
|
---|
905 | -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
|
---|
906 | -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
|
---|
907 | -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
|
---|
908 | -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
|
---|
909 | -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
|
---|
910 | -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
|
---|
911 | -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
|
---|
912 | --output $@ $<
|
---|
913 | endif # darwin
|
---|
914 |
|
---|
915 | #
|
---|
916 | # App for testing GL support
|
---|
917 | #
|
---|
918 | if defined(VBOX_WITH_VIDEOHWACCEL)
|
---|
919 | if1of ($(KBUILD_TARGET), win linux freebsd)
|
---|
920 | LIBRARIES += VBoxOGL2D
|
---|
921 | VBoxOGL2D_TEMPLATE = VBOXR3STATIC
|
---|
922 | VBoxOGL2D_USES = qt4
|
---|
923 | VBoxOGL2D_SDKS = QT4
|
---|
924 | 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
|
---|
925 | VBoxOGL2D_QT_MODULES += OpenGL
|
---|
926 | VBoxOGL2D_SOURCES = \
|
---|
927 | src/VBoxGLSupportInfo.cpp
|
---|
928 | VBoxOGL2D_INCS = include
|
---|
929 | endif
|
---|
930 | endif
|
---|
931 |
|
---|
932 | #
|
---|
933 | # Testcase for the darwin keyboard routines.
|
---|
934 | #
|
---|
935 | ifdef VBOX_WITH_TESTCASES
|
---|
936 | PROGRAMS.darwin += tstDarwinKeyboard
|
---|
937 | tstDarwinKeyboard_NAME = tstDarwinKeyboard
|
---|
938 | tstDarwinKeyboard_TEMPLATE = VBOXR3TSTEXE
|
---|
939 | tstDarwinKeyboard_DEFS.x86 = USE_HID_FOR_MODIFIERS
|
---|
940 | tstDarwinKeyboard_INCS = include
|
---|
941 | tstDarwinKeyboard_SOURCES = \
|
---|
942 | src/platform/darwin/tstDarwinKeyboard.cpp \
|
---|
943 | src/platform/darwin/DarwinKeyboard.cpp
|
---|
944 | tstDarwinKeyboard_SOURCES.amd64 = \
|
---|
945 | src/platform/darwin/CocoaEventHelper.mm
|
---|
946 | tstDarwinKeyboard_LDFLAGS = -framework IOKit -framework Carbon -framework AppKit
|
---|
947 | tstDarwinKeyboard_LIBS = \
|
---|
948 | $(LIB_RUNTIME)
|
---|
949 | endif
|
---|
950 |
|
---|
951 |
|
---|
952 | # Unset everything that was loaded from VBoxUI.pro.
|
---|
953 | TEMPLATE := $(SAVED_TEMPLATE)
|
---|
954 | SAVED_TEMPLATE :=
|
---|
955 | LANGUAGE :=
|
---|
956 | FORMS :=
|
---|
957 | TRANSLATIONS :=
|
---|
958 | IMAGES :=
|
---|
959 |
|
---|
960 |
|
---|
961 | # Commit the magic.
|
---|
962 | # (note: before custom rules that make usage of generated variables!).
|
---|
963 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
964 |
|
---|
965 | #
|
---|
966 | # Update all known NLS translation (.ts) files in the nls/ subdirectory.
|
---|
967 | #
|
---|
968 | # NOTE: This target is intended to be run only by the GUI maintainer shortly
|
---|
969 | # before a new product release. VirtualBox_xx_YY.ts is a template for new
|
---|
970 | # languages and should never be actually translated or installed.
|
---|
971 | #
|
---|
972 | # Use the checknls target for checking again common mistakes done by the
|
---|
973 | # translators.
|
---|
974 | #
|
---|
975 | # For Qt >= 4.6.0 it maybe necessary to add -I $(VBOX_GUI_INC_DIRS) to the
|
---|
976 | # lupdate call
|
---|
977 | #
|
---|
978 | #VirtualBox_QT_TRANSLATIONS = nls/VirtualBox_de.ts
|
---|
979 | checknls::
|
---|
980 | # Check for missing :/ in image paths
|
---|
981 | grep -i "src=[^:%]" $(filter-out nls/qt_%.ts,$(VirtualBox_QT_TRANSLATIONS))
|
---|
982 |
|
---|
983 | updatenls:: makeallnls nls/VirtualBox_en.ts
|
---|
984 |
|
---|
985 | makeallnls:: \
|
---|
986 | $(foreach header,$(VBOX_GUI_INC_DIRS),$(wildcard $(header)/*.h)) \
|
---|
987 | $(filter-out %.qrc,$(VirtualBox_SOURCES) $(VirtualBox_VBOX_EXTRA_NLS_SOURCES))
|
---|
988 | $(call MSG_L1,lupdate all languages (nls/*.ts))
|
---|
989 | $(QUIET)$(TOOL_QT4_LUPDATE) \
|
---|
990 | $^ \
|
---|
991 | -ts \
|
---|
992 | $(filter-out nls/VirtualBox_en.ts,$(filter-out nls/qt_%.ts,$(VirtualBox_QT_TRANSLATIONS))) \
|
---|
993 | nls/VirtualBox_xx_YY.ts
|
---|
994 |
|
---|
995 | # Create the English translation file. This is something special cause it will
|
---|
996 | # contain the plural forms only.
|
---|
997 | nls/VirtualBox_en.ts: \
|
---|
998 | $(foreach header,$(VBOX_GUI_INC_DIRS),$(wildcard $(header)/*.h)) \
|
---|
999 | $(filter-out %.qrc,$(VirtualBox_SOURCES) $(VirtualBox_VBOX_EXTRA_NLS_SOURCES))
|
---|
1000 | $(call MSG_L1,lupdate $@)
|
---|
1001 | $(QUIET)$(TOOL_QT4_LUPDATE) \
|
---|
1002 | $^ \
|
---|
1003 | -ts \
|
---|
1004 | $@
|
---|
1005 | $(QUIET)$(SED) -n -i -e \
|
---|
1006 | '/<context>/,/<\/context>/!p;/<context>/h;/<name>/H;/<message numerus="yes">/,/<\/message>/H;/<\/context>/{H;x;/<message/p}' \
|
---|
1007 | $@
|
---|
1008 |
|
---|