VirtualBox

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

Last change on this file since 33785 was 33631, checked in by vboxsync, 14 years ago

FE/Qt: Async settings mechanism. Global and Machine settings reworked to use cache loaded and saved in parallel thread.

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