VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk@ 38476

Last change on this file since 38476 was 38476, checked in by vboxsync, 13 years ago

FE/Qt: Rework new version notifier to be a part of new UIUpdateManager class. Implement Extension Pack updater (new version check + download + update).

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

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette