VirtualBox

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

Last change on this file since 33579 was 33542, checked in by vboxsync, 14 years ago

FE/Qt: Disable this warning only for gcc. This warning produces false positives with QEvent::type() as of gcc-4.5

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