VirtualBox

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

Last change on this file since 31467 was 30868, checked in by vboxsync, 15 years ago

FE/Qt4: new VMDesktop view in selector window; file system restructure

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